|
If SelectionHandlers is set, can it appear in the toolbar, as shown in the image below?
|
Replies: 2 comments 3 replies
|
Implemented in 478f911, so it'll be in the next pre-release build. A selection handler now takes a The value is the button's text. Unlike If the value starts with Icons are in the same format as There's a screenshot of both forms in the docs — Handlers without |





Implemented in 478f911, so it'll be in the next pre-release build.
A selection handler now takes a
SelectToolbarNameOrSvgvalue. When it's set, the handler also gets a button on the toolbar that pops up over a text selection:The value is the button's text. Unlike
Nameit's shown exactly as you type it — no&hot-key handling and no translation. Keep it short: the toolbar sits over what you're reading, and each handler you add makes it wider.If the value starts with
<svg, it's an SVG icon and is drawn instead of the text: