Skip to content

Type Editor


Type Editor / @type-editor/menu / menu-items/util/wrap-item

menu-items/util/wrap-item

Functions

FunctionDescription

wrapItem

Build a menu item for wrapping the selection in a given node type. Adds run and select properties to the ones present in options. options.attrs may be an object that provides attributes for the wrapping node.