Important changes to Tiny Cloud pricing > Find out more
Return to Website

body_id

(Requires: 3.0.2)

This option enables you to specify an id for the body of each editor instance. This id can then be used to do TinyMCE specific overrides in your content_css.

Examples of usage of the body_id option

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

tinyMCE.init({
    ...
    body_id : "my_id"
});

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

tinyMCE.init({
    ...
    body_id : "elm1=my_id,elm2=my_id2"
});

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.