Rich text / foldkit-mixins-richtext
FormattingItem
type · packages/mixins-richtext/src/formatting.ts:101
type FormattingItem<Message = never> =
| Exclude<PlacedItem<Message>, 'more'>
| {
readonly low: Exclude<PlacedItem<Message>, 'separator' | 'more'>
}One control, in the order drawn. A mark is a mark of the document's vocabulary, by name: the
toolbar cannot know which marks an application declared, so it lists none by itself beyond
standardFormattingItems'. A control is the application's own. { low: item } is a control
that gives way when the bar is compact: it is not drawn in the bar then, and is listed in the
"More" menu the bar ends with instead, in its order, with its name, pressed and unavailable
states. A low control that opens a popup of its own (style, insert, link, or an
application control with a popup) has no form in that menu, so a compact bar leaves it out.