Rich text / foldkit-richtext-dom/events

CONTROLS_ATTRIBUTE

const · packages/richtext-dom/src/events.ts:436

const CONTROLS_ATTRIBUTE: 'data-editor-controls'

Marks an element whose controls act on the editor: a toolbar, a menu of blocks. A press in one does not take the focus from the text, so the selection stays the browser's through it. A field in it (TYPED_IN) still takes the focus, since it is typed in.

In the guides