From 605c02f991948a41a7409e11b25acca3941c26f6 Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Fri, 26 Oct 2018 13:36:51 -0300 Subject: [PATCH] Allow user to unset custom note value. --- js/plugins/reference_footnotes/plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/plugins/reference_footnotes/plugin.js b/js/plugins/reference_footnotes/plugin.js index 4c66904..84fbe0d 100644 --- a/js/plugins/reference_footnotes/plugin.js +++ b/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);