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 currently active editor
tinyMCE.activeEditor.dom.addClass(tinyMCE.activeEditor.dom.select('p'), 'someclass');
// Adds a class to all spans that has the test class in the currently active editor
tinyMCE.activeEditor.dom.addClass(tinyMCE.activeEditor.dom.select('span.test'), 'someclass')
| Name | Type | Description |
|---|---|---|
| p | String | CSS level 1 pattern to select/find elements by. |
| s | Object | Optional root element/scope element to search in. |
Search documentation.