The clipboard switches selection mode on the basis of how data is added to it, and the mode remains in effect until data is added in a way that changes the mode.
Note that this property is independent of what the GUI is showing to the user. The property "remembers", so to speak, how the clipboard has been used.
Check whether a node can be added to this clipboard's data. Clipboards cannot contain heterogenous data. An attribute can be added only if the clipboard is empty or contains attributes. Another type of node can be added only if the clipboard does not contain attributes.
The node to check.
Whether the node can be added to this clipboard's data.
Clear the clipboard.
Note that this clears only the contents of this object. IT DOES NOT AFFECT THE BROWSER'S CLIPBOARD!
A deep copy of the tree in this clipboard.
Determines whether, in a paste operation, the tree that is stored in this clipboard, serialized, is equal to some text.
This can be used as an optimization to avoid parsing anew text
if the
tree in the clipboard is already a parsed representation of that text.
The text to test against.
Puts a span of nodes into the clipboard. This method switches the clipboard to the span mode.
Note that the clipboard is cleared before adding the nodes.
Puts a DOM node in the clipboard. This method switches the clipboard to unit mode.
Note that the clipboard is cleared before adding the node.
The node to put. This node becomes property of the clipboard after being added. If you want to keep it in another document, clone it first.
Add to the clipboard, rather than replace the contents.
Sets the selection mode of this clipboard.
Set the DOM clipboard data to reflect what is stored in this wed-internal clipboard. Note that any old data in the DOM clipboard data is cleared before setting the new data.
The object to set.
Generated using TypeDoc
An internal clipboard for wed editors.
Due to the limitations of the clipboard API, wed maintains an internal clipboard which allows it to transfer data in a way meaningful to wed.