WebAPI/KeboardIME: Difference between revisions

Jump to navigation Jump to search
m
m (set the parameter of endComposition as optional)
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 offset The offset from the cursor position where the range starts. Defaults to 0.
       * @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] offset, [optional] length);
     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.
Confirmed users
58

edits

Navigation menu