Skip to content

Type Editor


Type Editor / @type-editor/schema / util

util

Functions

FunctionDescription

addListNodes

Convenience function for adding list-related node types to a map specifying the nodes for a schema. Adds orderedList as 'ordered_list', bulletList as 'bullet_list', and listItem as 'list_item'.

itemContent determines the content expression for the list items. If you want the commands defined in this module to apply to your list structure, it should have a shape like 'paragraph block*' or 'paragraph (ordered_list | bullet_list)*'. listGroup can be given to assign a group name to the list node types, for example 'block'.