add highlight commands

This commit is contained in:
Philipp Kühn
2020-11-17 21:59:04 +01:00
parent f9025775ca
commit 34a25c7ea0
6 changed files with 22 additions and 10 deletions

View File

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