Utility function for wrapInElement.
A tree updater through which to update the DOM tree.
The text node to split.
Where to split the node
A caret location marking where the split occurred.
Insert an element in a wed data tree.
A tree updater through which to update the DOM tree.
The parent of the new node.
Offset in the parent where to insert the new node.
The URI of the namespace to use for the new element.
The name of the new element.
An object whose fields will become attributes for the new element.
The new element.
Makes an element appropriate for a wed data tree.
The document for which to make the element.
The URI of the namespace to use for the new element.
The name of the new element.
An object whose fields will become attributes for the new element.
The new element.
This function merges an element with a next element of the same name. For the operation to go forward, the element must have a next sibling and this sibling must have the same name as the element being merged.
The editor on which we are to perform the transformation.
The element to merge with next.
This function merges an element with a previous element of the same name. For the operation to go forward, the element must have a previous sibling and this sibling must have the same name as the element being merged.
The editor on which we are to perform the transformation.
The element to merge with previous.
Remove markup from the current selection. This turns mixed content into pure text. The selection must be well-formed, otherwise the transformation is aborted.
The editor for which we are doing the transformation.
This function splits a node at the position of the caret. If the caret is not inside the node or its descendants, an exception is raised.
The editor on which we are to perform the transformation.
The node to split.
This function swaps an element with a next element of the same name. For the operation to go forward, the element must have a next sibling and this sibling must have the same name as the element being merged.
The editor on which we are to perform the transformation.
The element to swap with next.
This function swaps an element with a previous element of the same name. For the operation to go forward, the element must have a previous sibling and this sibling must have the same name as the element being merged.
The editor on which we are to perform the transformation.
The element to swap with previous.
Replaces an element with its contents.
A tree updater through which to update the DOM tree.
The element to unwrap.
The contents of the element.
Wraps a well-formed span in a new element. This span can contain text and element nodes.
A tree updater through which to update the DOM tree.
The node where to start wrapping.
The offset where to start wrapping.
The node where to end wrapping.
The offset where to end wrapping.
The URI of the namespace to use for the new element.
The name of the new element.
The new element.
Wraps a span of text in a new element.
A tree updater through which to update the DOM tree.
The DOM node where to wrap. Must be a text node.
The offset in the node. This parameter specifies where to start wrapping.
Offset in the node. This parameter specifies where to end wrapping.
The URI of the namespace to use for the new element.
The name of the wrapping element.
An object whose fields will become attributes for the new element.
The new element.
Generated using TypeDoc
The editor.
The data for the transformation.