Creates an editor; use ContentBox.startContentEditing instead of calling this.
The box being edited.
Ends editing.
Deletes backward (Backspace): deletes the selection if any, otherwise the character before the caret (like type, the caret is read when its turn comes).
Deletes forward (Delete) (like type, the caret is read when its turn comes).
The selected range (character indexes, one \n between paragraphs); both are the caret position when nothing is selected.
Index after the last selected character.
Index of the first selected character.
The current full text (one \n between paragraphs).
Attributes of the selected text (the whole box when nothing is selected), same as ContentEdit.loadTextAttributes.
Adds a link to the selected text: places a link annotation opening url over the selection bounds (SetLinkUri) and returns it; throws when no text is selected.
Opens the link address (in a new window).
Select the native paragraph at an unrotated page point (pt), after queued edits.
Sets the selection (end defaults to the caret position); the caret is at end.
Optionalend: numberInserts at the caret (replacing the selection if any). The caret / selection is read when this operation's turn comes (not at call time): calling repeatedly without waiting (a script sending type('H'), type('e')...) still applies in call order.
Editor of a text content box: handles caret, selection, typing and deleting while the box is being edited.