Programmer's Guide > Interfaces > W3C Text interface > replaceWholeText method
  
replaceWholeText method
* 
This DOM Level 3 method is defined, but is currently unimplemented by Arbortext Editor.
Replaces the text of the current node and all logically-adjacent text nodes with the specified text. All logically-adjacent text nodes are removed including the current node unless it was the recipient of the replacement text.
This method returns the node which received the replacement text. The returned node is:
null, when the replacement text is the empty string;
the current node, except when the current node is read-only;
a new Text node of the same type (Text or CDATASection) as the current node inserted at the location of the replacement.
replaceWholeText(content )
Parameters
Stringcontent
The content of the replacing Text node.
Returns
Text. The Text node created with the specified content.
Throws
DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised if one of the Text nodes being replaced is readonly.