CKEditor: Class or ID for editor body

Although that part of the API wasn’t ported from 2.x at the time that this question was placed, now it’s easier to use the bodyId and bodyClass config options.

Of course, the explanation by nemisj is good and can be useful for other things, but you must remember that each time that you switch away from design (to source view), the iframe is destroyed, so you’ll need to reassign your attributes if you do it manually.

Leave a Comment