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