merge clear format buttons

This commit is contained in:
Hans Pagel 2020-12-01 12:55:38 +01:00
parent 845b99ae2a
commit 4ba1d7c5f2

View File

@ -48,13 +48,12 @@ export default {
}, },
{ {
icon: 'format-clear', icon: 'format-clear',
title: 'Clear Inline Format', title: 'Clear Format',
action: () => this.editor.chain().focus().unsetAllMarks().run(), action: () => this.editor.chain()
}, .focus()
{ .clearNodes()
icon: 'eraser-line', .unsetAllMarks()
title: 'Reset Format', .run(),
action: () => this.editor.chain().focus().clearNodes().run(),
}, },
{ {
icon: 'paragraph', icon: 'paragraph',