A newer version of this page is available.
Switch to the current version.
RichEditDocument.activeSubDocument Property
Provides the information about the active sub-document.
Declaration
readonly activeSubDocument: SubDocument
Property Value
Type | Description |
---|---|
SubDocument | A SubDocument object storing information about the essential document functionality. |
Remarks
//Gets the selected text
var firstSelectedInterval = richEdit.selection.intervals[0];
var selectedText = richEdit.document.activeSubDocument.text.substr(firstSelectedInterval.start, firstSelectedInterval.length);
See Also
Feedback