diff --git a/memento-note/components/tiptap-callout-extension.tsx b/memento-note/components/tiptap-callout-extension.tsx index 056ee35..f85ce99 100644 --- a/memento-note/components/tiptap-callout-extension.tsx +++ b/memento-note/components/tiptap-callout-extension.tsx @@ -163,16 +163,6 @@ export const CalloutExtension = Node.create({ addNodeView() { return ReactNodeViewRenderer(CalloutView) }, - - addKeyboardShortcuts() { - return { - 'Mod-Alt-C': () => this.editor.commands.insertContent({ - type: this.name, - attrs: { type: 'info' }, - content: [{ type: 'paragraph' }], - }), - } - }, }) export function insertCalloutBlock(editor: any, type: CalloutType = 'info') { diff --git a/memento-note/components/tiptap-columns-extension.tsx b/memento-note/components/tiptap-columns-extension.tsx index 4730556..c2b099a 100644 --- a/memento-note/components/tiptap-columns-extension.tsx +++ b/memento-note/components/tiptap-columns-extension.tsx @@ -83,19 +83,6 @@ export const ColumnsExtension = Node.create({ }, } }, - - addKeyboardShortcuts() { - return { - 'Mod-Alt-L': () => this.editor.commands.insertContent({ - type: this.name, - attrs: { cols: 2 }, - content: [ - { type: 'column', attrs: { index: 0 }, content: [{ type: 'paragraph' }] }, - { type: 'column', attrs: { index: 1 }, content: [{ type: 'paragraph' }] }, - ], - }), - } - }, }) function addOrDeleteCol(state: EditorState, dispatch?: (tr: Transaction) => void, type?: 'addBefore' | 'addAfter' | 'delete'): boolean { diff --git a/memento-note/components/tiptap-math-extension.tsx b/memento-note/components/tiptap-math-extension.tsx index 1568b11..7a488c2 100644 --- a/memento-note/components/tiptap-math-extension.tsx +++ b/memento-note/components/tiptap-math-extension.tsx @@ -295,14 +295,7 @@ export const MathEquationExtension = Node.create({ }, ] }, - - addKeyboardShortcuts() { - return { - 'Mod-Shift-M': () => this.editor.commands.insertContent({ - type: this.name, - attrs: { latex: '' }, - }), - } +}) }, }) diff --git a/memento-note/components/tiptap-outline-extension.tsx b/memento-note/components/tiptap-outline-extension.tsx index 8afb00e..6ba297f 100644 --- a/memento-note/components/tiptap-outline-extension.tsx +++ b/memento-note/components/tiptap-outline-extension.tsx @@ -134,14 +134,6 @@ export const OutlineExtension = Node.create({ addNodeView() { return ReactNodeViewRenderer(OutlineView) }, - - addKeyboardShortcuts() { - return { - 'Mod-Alt-O': () => this.editor.commands.insertContent({ - type: this.name, - }), - } - }, }) export function insertOutlineBlock(editor: any) { diff --git a/memento-note/components/tiptap-toggle-extension.tsx b/memento-note/components/tiptap-toggle-extension.tsx index e419f53..6093853 100644 --- a/memento-note/components/tiptap-toggle-extension.tsx +++ b/memento-note/components/tiptap-toggle-extension.tsx @@ -130,16 +130,6 @@ export const ToggleExtension = Node.create({ addNodeView() { return ReactNodeViewRenderer(ToggleView) }, - - addKeyboardShortcuts() { - return { - 'Mod-Shift-T': () => this.editor.commands.insertContent({ - type: this.name, - attrs: { opened: true }, - content: [{ type: 'paragraph' }], - }), - } - }, }) export function insertToggleBlock(editor: any) {