Selectors
Selectors are pure functions that act like shortcuts for deriving state from the editor context.
Selectors are commonly used for creating behaviors and toolbar components.
Create a behavior Custom behaviors let you control how the editor reacts to events and input.
Customize the toolbar Create custom toolbar components for your editor.
Condition selectors
Condition selectors return a truth response if the condition is met.
- isActiveAnnotation
- isActiveDecorator
- isActiveListItem
- isActiveStyle
- isSelectionCollapsed
- isSelectionExpanded
Getters
Getter type selectors retrieve information from the editor context.
- getActiveListItem
- getActiveStyle
- getSelectedSpans
- getSelectionText
- getBlockTextBefore
- getFocusBlock
- getFocusListBlock
- getFocusTextBlock
- getFocusBlockObjects
- getFocusChild
- getFocusSpan
- getFirstBlock
- getLastBlock
- getSelectedBlocks
- getSelectionStartBlock
- getSelectionEndBlock
- getPreviousBlock
- getNextBlock