Skip to content

Commit

Permalink
Merge pull request backdrop#13 from backdrop/1.x
Browse files Browse the repository at this point in the history
update
  • Loading branch information
herbdool committed Oct 13, 2020
2 parents 7d9c52a + 846f4d4 commit f86f6dc
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -168,6 +168,9 @@ CKEDITOR.plugins.add('backdropimagecaption', {
var figure = new CKEDITOR.htmlParser.element('figure');
caption = new CKEDITOR.htmlParser.fragment.fromHtml(caption, 'figcaption');

var captionFilter = new CKEDITOR.filter(widgetDefinition.editables.caption.allowedContent);
captionFilter.applyTo(caption);

// Use Backdrop's data-placeholder attribute to insert a CSS-based,
// translation-ready placeholder for empty captions. Note that it
// also must to be done for new instances (see
Expand Down

0 comments on commit f86f6dc

Please sign in to comment.