(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"
});
Was this article helpful? Yes - No
Well, that's awkward . Would you mind opening an issue or helping us out?
Thanks for the feedback!
Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.