Skip to content

Commit d3f303c

Browse files
Merge pull request #1 from DiligenceVault/footnote-as-superscript
show footnote as supersript and the content in the tooltip
2 parents 5123a05 + beb73c5 commit d3f303c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tinymce4.x/footnotes/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tinymce.PluginManager.add('footnotes', function(editor) {
4242
fixFootnoteContent = (function () {
4343
return encodeURIComponent(newfootnoteContent);
4444
}()),
45-
htmlTemplate = '<span class="fnoteWrap" id="#wk_ft{FOOTNOTE_INDEX}" contenteditable="false"><button type="button" class="fnoteBtn" data-content="'+fixFootnoteContent+'">{FOOTNOTE_INDEX}</button></span>&nbsp;',
45+
htmlTemplate = '<span class="fnoteWrap" id="#wk_ft{FOOTNOTE_INDEX}" contenteditable="false"><sup class="fnoteBtn" title="'+newfootnoteContent+'" data-content="'+fixFootnoteContent+'">{FOOTNOTE_INDEX}</sup></span>&nbsp;',
4646
totalFootNote = editor.getDoc().querySelectorAll('.fnoteBtn'),
4747
totalCount = totalFootNote.length,
4848
html;

tinymce4.x/footnotes/plugin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)