Get your own copy
Don't hesitate! Just download and test it all by yourself for free!
// Adds a class to all paragraphs in the active editor
tinyMCE.activeEditor.dom.addClass(tinyMCE.activeEditor.dom.select('p'), 'myclass');
// Adds a class to a specific element in the current page
tinyMCE.DOM.addClass('mydiv', 'myclass');
| Name | Type | Description |
|---|---|---|
| Element | String/Element/Array | ID string or DOM element or array with elements or IDs. |
| c | String | Class name to add to each element. |
Search documentation.