add removeMarks command

This commit is contained in:
Philipp Kühn
2020-04-10 22:34:49 +02:00
parent bd4fe7e5e3
commit 42a8f46011
3 changed files with 32 additions and 0 deletions

View File

@@ -1,6 +1,9 @@
<template>
<div>
<div v-if="editor">
<button @click="editor.focus().removeMarks()">
clear formatting
</button>
<button @click="editor.focus().undo()">
undo
</button>