docs: update mark examples

This commit is contained in:
Hans Pagel
2021-10-19 20:59:51 +02:00
parent d47b45cbc2
commit 4b1848917d
10 changed files with 98 additions and 31 deletions

View File

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