improve highlight toggling

This commit is contained in:
Hans Pagel
2020-10-05 17:26:34 +02:00
parent 1d5d1f7c6e
commit 3b01b5b219
3 changed files with 11 additions and 3 deletions

View File

@@ -1,7 +1,9 @@
<template>
<div v-if="editor">
<button
@click="editor.chain().focus().highlight().run()"
@click="editor.chain().focus().highlight({
color: ''
}).run()"
:class="{ 'is-active': editor.isActive('highlight', {
color: ''
}) }"