Skip to content

Commit

Permalink
refactor(format painter menu): adjusted format painter menu display o…
Browse files Browse the repository at this point in the history
…rder
  • Loading branch information
wjw020206 committed Aug 18, 2024
1 parent e80bed6 commit a6acb5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { IButtonMenu, IDomEditor, t } from '@wangeditor-next/core'
import { SlateEditor } from '@wangeditor-next/editor'
import { FORMAT_PAINTER } from '../../../constants/icon-svg'
import { Element, Text } from 'slate'
import { Text } from 'slate'
import { clearAllMarks } from '../helper'

interface FormatPaintAttributes {
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/init-default-config/config/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {

export function genDefaultToolbarKeys() {
return [
'formatPainter',
'headerSelect',
// 'header1',
// 'header2',
Expand Down Expand Up @@ -83,6 +82,7 @@ export function genDefaultToolbarKeys() {
'undo',
'redo',
'|',
'formatPainter',
'fullScreen',
]
}
Expand Down

0 comments on commit a6acb5f

Please sign in to comment.