Skip to content

Commit

Permalink
Merge pull request #25 from maijs/required-content
Browse files Browse the repository at this point in the history
Require only actually used attributes and classes in "requiredContent" property
  • Loading branch information
andykirk authored Sep 1, 2021
2 parents 468a36b + ffdc656 commit 3723748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion footnotes/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
editor.addCommand('footnotes', new CKEDITOR.dialogCommand('footnotesDialog', {
// @TODO: This needs work:
allowedContent: 'section[*](*);header[*](*);li[*];a[*];cite(*)[*];sup[*]',
requiredContent: 'section[*](*);header[*](*);li[*];a[*];cite(*)[*];sup[*]'
requiredContent: 'section(footnotes);header;li[id,data-footnote-id];a[href,id,rel];cite;sup[data-footnote-id]'
}));

// Create a toolbar button that executes the above command.
Expand Down

0 comments on commit 3723748

Please sign in to comment.