nsIAccessibleEditableText

Methods

setTextContents(text)

Replaces the text represented by this object by the given text.

insertText(text, position)

Inserts text at the specified position.

Parameters

text - text that is inserted.
position - index at which to insert the text.

copyText(startPos, endPos)

Copies the text range into the clipboard.

Parameters

startPos - start index of the text to moved into the clipboard.
endPos - end index of the text to moved into the clipboard.

cutText(startPos, endPos)

Deletes a range of text and copies it to the clipboard.

Parameters

startPos - start index of the text to be deleted.
endOffset - end index of the text to be deleted.

deleteText(startPos, endPos)

Deletes a range of text.

Parameters

startPos - start index of the text to be deleted.
endPos - end index of the text to be deleted.

pasteText(position)

Pastes text from the clipboard.

Parameters

position - index at which to insert the text from the system clipboard into the text represented by this object.