Hi,

I'm theming my site and I've run into the following issue: for some reason, I can drag & expand the editor beyond the width of the content pane. I can easily fix it by putting a max-width: 100% on the editor's span.

Now comes the problem: there is no way to globally recognize the editor's span. Sometimes it appears as cke_1, sometimes as cke_2, etc.. I don't want to hunt down all cases.

Could you please inject a general "cke_editor" class into the editor's span?

Thanks,

Tal

Comments

dczepierga’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,
U can add your own class to editor body by using this config option: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.body...

U can add this in CKEditor profile -> Custom Javascript configuration ("Advanced settings" section), after paste config.bodyClass there it should appear on each textarea with editor body which u use with this profile...

Pls write does it help or not. If not I will try to help u in other way :)

Greetings

sutharsan’s picture

Status: Postponed (maintainer needs more info) » Fixed

For anyone who wants to do this too. I found this article helpfull in adding a class to the body:
http://fuseinteractive.ca/blog/wysiwyg-module-ckeditor-taming-beast#cust...

mkesicki’s picture

@Sutharsan,
this tracker is about CKEditor module not Wysiwyg module.

sutharsan’s picture

@michal_cksource, oops. Thats what happens if I'm too stressed ;)

dczepierga’s picture

Status: Fixed » Closed (works as designed)