Merge pull request #10 from ueberdosis/feature/add-paragraph-command

add paragraph command and keyboard shortcut
This commit is contained in:
Philipp Kühn
2020-09-24 20:45:12 +02:00
committed by GitHub
4 changed files with 27 additions and 5 deletions

View File

@@ -28,6 +28,9 @@
<button @click="editor.chain().focus().codeBlock().run()" :class="{ 'is-active': editor.isActive('codeBlock') }">
code block
</button>
<button @click="editor.chain().focus().paragraph().run()" :class="{ 'is-active': editor.isActive('paragraph') }">
paragraph
</button>
<button @click="editor.chain().focus().heading({ level: 1 }).run()" :class="{ 'is-active': editor.isActive('heading', { level: 1 }) }">
h1
</button>