TinyMCE:API/tinymce.dom.DOMUtils/replace
From Moxiecode Documentation Wiki
Contents |
[edit]
Method: replace
[edit]
Summary
Replaces the specified element or elements with a specified new element. The new element will be cloned if multiple elements are being replaced.
[edit]
Syntax
<void> replace(<Element> n, <Element/String/Array> o, <bool> k)
[edit]
Parameters
- n
- New element to replace old ones with.
- o
- Element DOM node, element id or array of elements or ids to replace.
- k
- Optional keep children state, if set to true child nodes from the old object will be added to new ones.
