refactoring
This commit is contained in:
@@ -3,18 +3,9 @@
|
|||||||
<menu-bar class="menubar" :editor="editor">
|
<menu-bar class="menubar" :editor="editor">
|
||||||
<template slot-scope="{ nodes, marks, commands }">
|
<template slot-scope="{ nodes, marks, commands }">
|
||||||
|
|
||||||
<button
|
|
||||||
class="menubar__button"
|
|
||||||
@click="commands.history"
|
|
||||||
v-if="commands.history"
|
|
||||||
>
|
|
||||||
⬅
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="menubar__button"
|
class="menubar__button"
|
||||||
@click="commands.undo"
|
@click="commands.undo"
|
||||||
v-if="commands.undo"
|
|
||||||
>
|
>
|
||||||
⬅
|
⬅
|
||||||
</button>
|
</button>
|
||||||
@@ -22,19 +13,10 @@
|
|||||||
<button
|
<button
|
||||||
class="menubar__button"
|
class="menubar__button"
|
||||||
@click="commands.redo"
|
@click="commands.redo"
|
||||||
v-if="commands.redo"
|
|
||||||
>
|
>
|
||||||
➡
|
➡
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
|
||||||
class="menubar__button"
|
|
||||||
@click="commands.undoRedo"
|
|
||||||
v-if="commands.undoRedo"
|
|
||||||
>
|
|
||||||
undoredo
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="menubar__button"
|
class="menubar__button"
|
||||||
:class="{ 'is-active': marks.bold.active() }"
|
:class="{ 'is-active': marks.bold.active() }"
|
||||||
|
|||||||
Reference in New Issue
Block a user