move clear format button to the end
This commit is contained in:
@@ -46,15 +46,6 @@ export default {
|
|||||||
action: () => this.editor.chain().focus().toggleCode().run(),
|
action: () => this.editor.chain().focus().toggleCode().run(),
|
||||||
isActive: () => this.editor.isActive('code'),
|
isActive: () => this.editor.isActive('code'),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
icon: 'format-clear',
|
|
||||||
title: 'Clear Format',
|
|
||||||
action: () => this.editor.chain()
|
|
||||||
.focus()
|
|
||||||
.clearNodes()
|
|
||||||
.unsetAllMarks()
|
|
||||||
.run(),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
icon: 'paragraph',
|
icon: 'paragraph',
|
||||||
title: 'Paragraph',
|
title: 'Paragraph',
|
||||||
@@ -131,6 +122,15 @@ export default {
|
|||||||
title: 'Hard Break',
|
title: 'Hard Break',
|
||||||
action: () => this.editor.chain().focus().setHardBreak().run(),
|
action: () => this.editor.chain().focus().setHardBreak().run(),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
icon: 'format-clear',
|
||||||
|
title: 'Clear Format',
|
||||||
|
action: () => this.editor.chain()
|
||||||
|
.focus()
|
||||||
|
.clearNodes()
|
||||||
|
.unsetAllMarks()
|
||||||
|
.run(),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
icon: 'arrow-go-back-line',
|
icon: 'arrow-go-back-line',
|
||||||
title: 'Undo',
|
title: 'Undo',
|
||||||
|
|||||||
Reference in New Issue
Block a user