Get your own copy
Don't hesitate! Just download and test it all by yourself for free!
// Removes all paragraphs in the active editor
tinyMCE.activeEditor.dom.remove(tinyMCE.activeEditor.dom.select('p'));
// Removes a element by id in the document
tinyMCE.DOM.remove('mydiv');
| Name | Type | Description |
|---|---|---|
| node | String/Element/Array | ID of element or DOM element object or array containing multiple elements/ids. |
| keep_children | Boolean | Optional state to keep children or not. If set to true all children will be placed at the location of the removed element. |
Search documentation.
Gavin.Douglas
I think DOM should be uncapitalized to 'dom' here:
// Removes a element by id in the document
tinyMCE.dom.remove('mydiv');
:)