Browse Source

Fix bug where HTML was being escaped when re-showing the dialog.

8.x-1.x
Alexander O'Neill 6 years ago
parent
commit
eb9813d52a
  1. 4
      js/plugins/reference_footnotes/dialogs/footnotes.js
  2. 2
      js/plugins/reference_footnotes/plugin.js

4
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);
}
}

2
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) {

Loading…
Cancel
Save