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