add paragraph command

This commit is contained in:
Philipp Kühn
2020-11-18 12:29:24 +01:00
parent e526c788c9
commit ab5e144a5f
5 changed files with 6 additions and 6 deletions

View File

@@ -16,7 +16,7 @@
<button @click="editor.chain().focus().toggleHeading({ level: 3 }).run()" :class="{ 'is-active': editor.isActive('heading', { level: 3 }) }">
h3
</button>
<button @click="editor.chain().focus().paragraph().run()" :class="{ 'is-active': editor.isActive('paragraph') }">
<button @click="editor.chain().focus().setParagraph().run()" :class="{ 'is-active': editor.isActive('paragraph') }">
paragraph
</button>
<button @click="editor.chain().focus().textAlign('left').run()">