everything is broken

This commit is contained in:
Hans Pagel
2020-10-12 17:58:30 +02:00
parent 7ad63a2921
commit 9a1bc8a8b1
2 changed files with 15 additions and 2 deletions

View File

@@ -1,5 +1,11 @@
<template>
<div v-if="editor">
<button
@click="editor.chain().focus().highlight().run()"
:class="{ 'is-active': editor.isActive('highlight') }"
>
highlight (any)
</button>
<button
@click="editor.chain().focus().highlight({
color: ''
@@ -10,6 +16,9 @@
>
highlight (default)
</button>
<button @click="editor.chain().focus().highlight({ color: 'red' }).run()" :class="{ 'is-active': editor.isActive('highlight', { color: 'red' }) }">
"red"
</button>
<button @click="editor.chain().focus().highlight({ color: '#ffa8a8' }).run()" :class="{ 'is-active': editor.isActive('highlight', { color: '#ffa8a8' }) }">
red
</button>