Confirmed users
58
edits
m (set the parameter of endComposition as optional) |
m (→Proposed API) |
||
Line 285: | Line 285: | ||
/* | /* | ||
* Get specified range of text content from the input field. | * Get specified range of text content from the input field. | ||
* @param | * @param start The start position of the range. Defaults to 0. | ||
* @param length The range length. Defaults to the end of the text. | * @param length The range length. Defaults to the end of the text. | ||
*/ | */ | ||
Promise<DOMString> getText([optional] | Promise<DOMString> getText([optional] start, [optional] length); | ||
// The start and stop position of the selection. | // The start and stop position of the selection. | ||
Line 297: | Line 297: | ||
readonly attribute DOMString textBeforeCursor; | readonly attribute DOMString textBeforeCursor; | ||
readonly attribute DOMString textAfterCursor; | readonly attribute DOMString textAfterCursor; | ||
/* | /* | ||
* Set the selection range of the the editable text. | * Set the selection range of the the editable text. |