Skip to content

Commit

Permalink
Merge pull request #19 from simogeo/patch-1
Browse files Browse the repository at this point in the history
fix test on footnotesHeaderEls
  • Loading branch information
andykirk committed Nov 30, 2015
2 parents f024e36 + 571b196 commit 52ffb74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions footnotes/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@

if ($footnotes.length == 0) {
var header_title = editor.config.footnotesTitle ? editor.config.footnotesTitle : 'Footnotes';
var header_els = ['<h2>', '</h2>'];//editor.config.footnotesPrefix
if (editor.config.footnotesTitle) {
var header_els = ['<h2>', '</h2>'];//editor.config.editor.config.footnotesHeaderEls
if (editor.config.footnotesHeaderEls) {
header_els = editor.config.footnotesHeaderEls;
}
var container = '<section class="footnotes"><header>' + header_els[0] + header_title + header_els[1] + '</header><ol>' + footnote + '</ol></section>';
Expand Down Expand Up @@ -314,4 +314,4 @@
editor.fire('unlockSnapshot');
}
});
}(window.jQuery));
}(window.jQuery));

0 comments on commit 52ffb74

Please sign in to comment.