TinyMCE:API/tinymce.dom.DOMUtils/replace

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Method: replace

Summary

Replaces the specified element or elements with a specified new element. The new element will be cloned if multiple elements are being replaced.

Syntax

<void> replace(<Element> n, <Element/String/Array> o, <bool> k)

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.
Personal tools