Hi,
I use CKEditor with Drupal.
I would like to allow all content to the editor.
But for img tag, I would like the sizes (height and width) in attribute (no in style attribute).
So I do this :
config.allowedContent = true; config.extraAllowedContent ='img[src,width,height,alt,title]';
But with that, all attribute for img is allowed. And sizes are put in style tag.
If I use allowedContent to specified this rule, I have to list all rules... And I would like to avoid that.
Do you have a solution ?
TIA !
This will be possible in
This will be possible in CKEditor 4.4 (it is ready, but we postponed release after easter). 4.4 will introduce config.disallowedContent property so you'll be possible to do something like this:
Then editor will start transforming styles into attributes. However, note that editor does this on input and output - the image dialog still inserts images with styles.
If you want to switch to attributes completely then the new Enhanced Image plugin maybe the way.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Thx for reply !
Thx for reply !
I can't wait the next release so I have to list all content that I allow. But good news !
The Enhanced Image plugin for Drupal is not efficient for me.
[CLOSED]