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',
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',