mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-28 15:49:23 +08:00
merge clear format buttons
This commit is contained in:
parent
845b99ae2a
commit
4ba1d7c5f2
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user