Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a custom plugin that wraps selected text/words in p element with custom class. However when I toggle "Source" the class attribute is gone. Same thing happen when I edit existing node, all the class disappeared.
Plugin structure:
qna
* icons
* qna.png
* css
* qna.css
* plugin.js
Any idea?
Comment | File | Size | Author |
---|---|---|---|
advanceoption.png | 13.38 KB | stoickthevast | |
cleanupandoutput.png | 16.66 KB | stoickthevast | |
plugin.js_.txt | 896 bytes | stoickthevast | |
hook_ckeditor_plugin.txt | 383 bytes | stoickthevast |
Comments
Comment #0.0
stoickthevast CreditAttribution: stoickthevast commentedAdded plugin structure
Comment #1
wwalc CreditAttribution: wwalc commentedCheck this comment. Read this blog post. The plugin must be ACF - compatible or you should disable ACF in CKEditor 4.1.
Comment #2.0
(not verified) CreditAttribution: commentedAdded more info.