diff --git a/docs/src/demos/Examples/Basic/index.vue b/docs/src/demos/Examples/Basic/index.vue index 0a351fd7..492d1e3a 100644 --- a/docs/src/demos/Examples/Basic/index.vue +++ b/docs/src/demos/Examples/Basic/index.vue @@ -19,7 +19,7 @@ clear nodes - + paragraph diff --git a/docs/src/demos/Examples/CollaborativeEditing/index.vue b/docs/src/demos/Examples/CollaborativeEditing/index.vue index fa3fbfbf..d1a6b695 100644 --- a/docs/src/demos/Examples/CollaborativeEditing/index.vue +++ b/docs/src/demos/Examples/CollaborativeEditing/index.vue @@ -19,7 +19,7 @@ clear nodes - + paragraph diff --git a/docs/src/demos/Examples/CollaborativeEditingWs/index.vue b/docs/src/demos/Examples/CollaborativeEditingWs/index.vue index 1a36f503..7c721e7e 100644 --- a/docs/src/demos/Examples/CollaborativeEditingWs/index.vue +++ b/docs/src/demos/Examples/CollaborativeEditingWs/index.vue @@ -19,7 +19,7 @@ clear nodes - + paragraph diff --git a/docs/src/demos/Examples/Formatting/index.vue b/docs/src/demos/Examples/Formatting/index.vue index 97b7a521..f113efd8 100644 --- a/docs/src/demos/Examples/Formatting/index.vue +++ b/docs/src/demos/Examples/Formatting/index.vue @@ -16,7 +16,7 @@ h3 - + paragraph diff --git a/packages/extension-paragraph/src/index.ts b/packages/extension-paragraph/src/index.ts index 961d08eb..ffe062c1 100644 --- a/packages/extension-paragraph/src/index.ts +++ b/packages/extension-paragraph/src/index.ts @@ -32,7 +32,7 @@ const Paragraph = Node.create({ /** * Toggle a paragraph */ - paragraph: (): Command => ({ commands }) => { + setParagraph: (): Command => ({ commands }) => { return commands.toggleBlockType('paragraph', 'paragraph') }, } @@ -40,7 +40,7 @@ const Paragraph = Node.create({ addKeyboardShortcuts() { return { - 'Mod-Alt-0': () => this.editor.commands.paragraph(), + 'Mod-Alt-0': () => this.editor.commands.setParagraph(), } }, })