add clear nodes button

This commit is contained in:
Philipp Kühn 2020-11-02 14:30:08 +01:00
parent 8f4abb720a
commit a97ffc41f4

View File

@ -14,7 +14,10 @@
code
</button>
<button @click="editor.chain().focus().removeMarks().run()">
clear format
clear marks
</button>
<button @click="editor.chain().focus().clearNodes().run()">
clear nodes
</button>
<button @click="editor.chain().focus().paragraph().run()" :class="{ 'is-active': editor.isActive('paragraph') }">
paragraph