From 4ba1d7c5f2d1ff8a2e47fdef7c0a2305c0b058af Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Tue, 1 Dec 2020 12:55:38 +0100 Subject: [PATCH] merge clear format buttons --- .../demos/Examples/CollaborativeEditing/MenuBar.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/src/demos/Examples/CollaborativeEditing/MenuBar.vue b/docs/src/demos/Examples/CollaborativeEditing/MenuBar.vue index 191a5192..94530804 100644 --- a/docs/src/demos/Examples/CollaborativeEditing/MenuBar.vue +++ b/docs/src/demos/Examples/CollaborativeEditing/MenuBar.vue @@ -48,13 +48,12 @@ export default { }, { icon: 'format-clear', - title: 'Clear Inline Format', - action: () => this.editor.chain().focus().unsetAllMarks().run(), - }, - { - icon: 'eraser-line', - title: 'Reset Format', - action: () => this.editor.chain().focus().clearNodes().run(), + title: 'Clear Format', + action: () => this.editor.chain() + .focus() + .clearNodes() + .unsetAllMarks() + .run(), }, { icon: 'paragraph',