TinyMCE:API/tinymce.dom.DOMUtils/split

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Method: split

Summary

Splits an element into two new elements and places the specified split element or element between the new ones. For example splitting the paragraph at the bold element in this example <p>abc<b>abc</b>123</p> would produce <p>abc</p><b>abc</b><p>123</p>.

Syntax

<Node> split(<Node> pe, <Node> e, <Node> re)

Parameters

pe
Parent element to split.
e
Element to split at.
re
Optional replacement element to replace the split element by.

Returns

Returns the split element or the replacement element if that is specified.

Personal tools