browser_select_editable_text
Selects words in a text field or rich-text editor so a following toolbar click (bold, color, link) applies to them, without changing focus or other content.
Instructions
Select words in a text field or editable area (a mail body, a rich-text editor), as a person drags over them, so a toolbar button (bold, colour, link) acts on them next: a click on it can follow in the same batch. Nothing else changes, except that a click giving it focus stays. Give one of select, from with to, or all. Copy the words from the element's snapshot value as for browser_input_text's before/after. The reply quotes the lines the selection is on, marked ⟦…⟧. Refused, nothing selected: not found, or in several places without occurrence (the places are listed); an end inside a picture, a list number or an @mention; across table cells where the editor keeps a selection in one cell (select cell by cell); over a picture with its own editable caption (click the picture instead); a password, read-only or disabled field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Where a from selection ends: the first place after from. | |
| all | No | All of the element's text (not the page). To select only your own part of a rich editor, use from/to. | |
| emsn | Yes | The field or editable area, from the snapshot. | |
| from | No | Select from these words through those of to, both included. | |
| tabId | No | Tab to act on. Defaults to the foreground tab of that window. | |
| select | No | Select these words. | |
| windowId | No | Window to act on. Defaults to the frontmost window. | |
| occurrence | No | Which place, from 1, of select's or from's words when they are in several; overlaps count. | |
| snapshotId | Yes | The snapshotId from the browser_take_snapshot you picked the emsn out of. An element keeps its emsn while the page stays (no navigation or reload), so with an emsn any snapshot of the current page is accepted; with x,y only the latest one is. A number whose element has gone is refused rather than clicked. | |
| toOccurrence | No | Which place of to's words after from, from 1. |