Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cycleccc/wangEditor-next
Browse files Browse the repository at this point in the history
  • Loading branch information
cycleccc committed Aug 7, 2024
2 parents ef5afee + 08dd5fc commit ddf75e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/basic-modules/__tests__/color/color-menus.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,11 @@ describe('color menus', () => {
it('should handle click event and remove mark from editor', () => {
const menu = new ColorMenu()
const textEditor = createEditor({
content: [{ type: 'paragraph', children: [{ text: 'hello', color: '#000' }] }],
content: [{ type: 'paragraph', children: [{ text: 'hello', color: 'rgb(120, 6, 80)' }] }],
})

textEditor.select([])
editor.addMark('color', 'rgb(120, 6, 80)')
const panelContent = menu.getPanelContentElem(textEditor)
document.body.appendChild(panelContent)

Expand Down

0 comments on commit ddf75e4

Please sign in to comment.