Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291721

CKEditorPluginCssInterface: Allow CKEditor plugins to add CSS to iframe CKEditor instances

$
0
0

Problem/Motivation

  • Some CKEditor plugins need additional CSS to function. E.g. image captions, alignment, etc.
  • Loading additional CSS in CKEditor iframe instances currently requires hook_ckeditor_css_alter() to be implemented.
  • This means a CKEditor plugin is not able to encompass everything it does: some CKEditor plugins need both a plugin implementation and a hook implementation.

Conclusion: this is a gap in the current API.

Proposed resolution

Fortunately, CKEditor plugins are already built on composed interfaces. So, the mere addition of a CKEditorPluginCssInterface will be sufficient. Any module is then free to adopt this. This is therefore a pure API addition, not even a feature addition, and can therefore go in 8.0: it does not have to wait for 8.1.

Remaining tasks

Do it.

User interface changes

None.

API changes

None. Pure API addition.

Data model changes

None.


Viewing all articles
Browse latest Browse all 291721

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>