Browse Source

Allow user to unset custom note value.

mla_citations
Alexander O'Neill 6 years ago
parent
commit
605c02f991
  1. 6
      js/plugins/reference_footnotes/plugin.js

6
js/plugins/reference_footnotes/plugin.js

@ -102,10 +102,10 @@ CKEDITOR.plugins.reference_footnotes = {
realElement = origElement;
}
if (text && text.length > 0 )
if (text && text.length > 0 ) {
realElement.setText(text);
if (value && value.length > 0 )
realElement.setAttribute('value',value);
}
realElement.setAttribute('value',value);
var fakeElement = editor.createFakeElement( realElement , 'cke_reference_footnote', 'hiddenfield', false );
editor.insertElement(fakeElement);

Loading…
Cancel
Save