From eb9813d52a0cc7316304459353191b73438aad63 Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Thu, 11 Apr 2019 14:41:47 -0300 Subject: [PATCH] Fix bug where HTML was being escaped when re-showing the dialog. --- js/plugins/reference_footnotes/dialogs/footnotes.js | 4 ++-- js/plugins/reference_footnotes/plugin.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/plugins/reference_footnotes/dialogs/footnotes.js b/js/plugins/reference_footnotes/dialogs/footnotes.js index dd91a43..a45674d 100644 --- a/js/plugins/reference_footnotes/dialogs/footnotes.js +++ b/js/plugins/reference_footnotes/dialogs/footnotes.js @@ -27,9 +27,9 @@ label: Drupal.t('Or add free-form footnote text :'), setup: function (element) { if (isEdit) { - var text = element.getText(); + var markup = element.getHtml(); - this.setValue(text); + this.setValue(markup); } } diff --git a/js/plugins/reference_footnotes/plugin.js b/js/plugins/reference_footnotes/plugin.js index f14aa11..2e25e4f 100644 --- a/js/plugins/reference_footnotes/plugin.js +++ b/js/plugins/reference_footnotes/plugin.js @@ -117,7 +117,7 @@ CKEDITOR.plugins.reference_footnotes = { } if (text && text.length > 0 ) { - realElement.setText(text); + realElement.setHtml(text); } realElement.setAttribute('value',value); if (page && page.length > 0) {