From 64f80050883cf9e1055eb502bbcbb2d82a94dc50 Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Thu, 11 Apr 2019 05:15:41 -0300 Subject: [PATCH] Support HTML in footnotes. --- js/plugins/reference_footnotes/plugin.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/js/plugins/reference_footnotes/plugin.js b/js/plugins/reference_footnotes/plugin.js index 41f2e90..f14aa11 100644 --- a/js/plugins/reference_footnotes/plugin.js +++ b/js/plugins/reference_footnotes/plugin.js @@ -26,8 +26,22 @@ ); }, + beforeInit: function( editor ) + { + // Adapt some critical editor configuration for better support + // of BBCode environment. + var config = editor.config; + CKEDITOR.tools.extend( config, + { + enterMode : CKEDITOR.ENTER_BR, + basicEntities: false, + entities : false, + fillEmptyBlocks : false + }, true ); + }, init: function( editor ) { + editor.addCommand('createreferencefootnotes', new CKEDITOR.dialogCommand('createreferencefootnotes', { allowedContent: 'fn[value]' }));