add underline commands

This commit is contained in:
Philipp Kühn
2020-11-17 21:52:16 +01:00
parent 3ea2711aef
commit 8195cbd91d
2 changed files with 18 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div v-if="editor">
<button @click="editor.chain().focus().underline().run()" :class="{ 'is-active': editor.isActive('underline') }">
<button @click="editor.chain().focus().toggleUnderline().run()" :class="{ 'is-active': editor.isActive('underline') }">
underline
</button>