mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-08-06 13:38:49 +08:00
fix focus
This commit is contained in:
parent
2ef2b09c0d
commit
748131637c
@ -1,16 +1,16 @@
|
||||
<template>
|
||||
<div>
|
||||
<div v-if="editor">
|
||||
<button @click="editor.undo().focus()">
|
||||
<button @click="editor.focus().undo()">
|
||||
undo
|
||||
</button>
|
||||
<button @click="editor.redo().focus()">
|
||||
<button @click="editor.focus().redo()">
|
||||
redo
|
||||
</button>
|
||||
<button @click="editor.bold().focus()" :class="{ 'is-active': editor.isActive('bold') }">
|
||||
<button @click="editor.focus().bold()" :class="{ 'is-active': editor.isActive('bold') }">
|
||||
bold
|
||||
</button>
|
||||
<button @click="editor.italic().focus()" :class="{ 'is-active': editor.isActive('italic') }">
|
||||
<button @click="editor.focus().italic()" :class="{ 'is-active': editor.isActive('italic') }">
|
||||
italic
|
||||
</button>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user