Get your own copy
Don't hesitate! Just download and test it all by yourself for free!
// Sets the outer HTML of all paragraphs in the active editor
tinyMCE.activeEditor.dom.setOuterHTML(tinyMCE.activeEditor.dom.select('p'), '<div>some html</div>');
// Sets the outer HTML of a element by id in the document
tinyMCE.DOM.setOuterHTML('mydiv', '<div>some html</div>');
| Name | Type | Description |
|---|---|---|
| e | Element/String/Array | DOM element, element id string or array of elements/ids to set outer HTML on. |
| h | Object | HTML code to set as outer value for the element. |
| d | Document | Optional document scope to use in this process defaults to the document of the DOM class. |
Search documentation.