TinyMCE:API/tinymce.dom.DOMUtils/split
From Moxiecode Documentation Wiki
Contents |
[edit]
Method: split
[edit]
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>.
[edit]
Syntax
<Node> split(<Node> pe, <Node> e, <Node> re)
[edit]
Parameters
- pe
- Parent element to split.
- e
- Element to split at.
- re
- Optional replacement element to replace the split element by.
[edit]
Returns
Returns the split element or the replacement element if that is specified.
