(Requires: 3.0.2)

This option enables you to specify a class for the body of each editor instance. This class can then be used to do TinyMCE specific overrides in your content_css. There is also a specific mceForceColors class that can be used to override the text and background colors to be black and white.

Examples of usage of the body_class option

This will add the same class to all editors that gets created by the init call.

tinyMCE.init({
...
body_class : "my_class"
});

This will set specific classes on the bodies of specific editors.

tinyMCE.init({
...
body_class : "elm1=my_class,elm2=my_class"
});
User Image
  • 2011-02-14 03:34:27

edgeimpact

It would be good to have the facility to add more than one class like HTML allows you to in the format <div class="my_class1 my_class2 my_class3">~</div>.
Maybe:
body_class : "my_class1 my_class2 my_class3"
or
body_class : "elm1=my_class1 my_class2 my_class3,elm2=my_class4 my_class5 my_class6"
This will solve my immediate problem.