Skip to content

Type Editor


Type Editor / @type-editor/menu / menu-bar-plugin / menuBarPlugin

Function: menuBarPlugin()

ts
function menuBarPlugin(options): Plugin_2;

Defined in: packages/menu/src/menu-bar-plugin.ts:20

A plugin that will place a menu bar above the editor. Note that this involves wrapping the editor in an additional <div>.

The menu bar can optionally float at the top of the viewport when the editor is scrolled partially out of view (on non-iOS devices).

Parameters

ParameterTypeDescription
optionsMenuBarOptionsConfiguration options for the menu bar

Returns

Plugin_2

A ProseMirror plugin that manages the menu bar