setOuterHTML

public function setOuterHTML(e:Element/String/Array, h:Object, d:Document):void
Sets the specified outer HTML on a element or elements.

Examples

// 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>');

Params

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.