Skip to content

Commit

Permalink
fix test on footnotesHeaderEls
Browse files Browse the repository at this point in the history
  • Loading branch information
simogeo committed Oct 5, 2015
1 parent f024e36 commit 571b196
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 571b196

Please sign in to comment.