interface ExtendedMenuItem {
    spec: MenuItemSpec & {
        enabled?: boolean;
        run: (
            state: EditorState,
            dispatch: (tr: Transaction) => void,
            view: EditorView,
            event: Event,
        ) => void;
    };
}

Hierarchy

  • MenuItem
    • ExtendedMenuItem

Properties

Properties

spec: MenuItemSpec & {
    enabled?: boolean;
    run: (
        state: EditorState,
        dispatch: (tr: Transaction) => void,
        view: EditorView,
        event: Event,
    ) => void;
}

The spec used to create this item.