Browse Source

Allow user to unset custom note value.

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

4
js/plugins/reference_footnotes/plugin.js

@ -102,9 +102,9 @@ CKEDITOR.plugins.reference_footnotes = {
realElement = origElement; realElement = origElement;
} }
if (text && text.length > 0 ) if (text && text.length > 0 ) {
realElement.setText(text); 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 ); var fakeElement = editor.createFakeElement( realElement , 'cke_reference_footnote', 'hiddenfield', false );

Loading…
Cancel
Save