javascript - Ckeditor 4.4.7 Enhanced Image plugin: figcaption with tags -
i want use p , span tags make styled caption:
<figure> <img ... /> <figcaption> <p><span class="styled">caption1</span></p> <p>caption2</p> </figcaption> </figure> how that?
you can change enhanced image caption's settings when editor being loaded:
editor.on( 'pluginsloaded', function() { editor.widgets.registered.image.editables.caption.allowedcontent = 'p; span(!styled)'; } ); this code changes nestededitable.allowedcontent setting allow paragraphs , spans styled class.
Comments
Post a Comment