diff --git a/docs/src/demos/Marks/Highlight/index.spec.js b/docs/src/demos/Marks/Highlight/index.spec.js index 4a535fba..6a8447ad 100644 --- a/docs/src/demos/Marks/Highlight/index.spec.js +++ b/docs/src/demos/Marks/Highlight/index.spec.js @@ -24,7 +24,7 @@ context('/api/marks/highlight', () => { it('should highlight the text in a specific color', () => { cy.get('.ProseMirror').then(([{ editor }]) => { - editor.commands.highlight({ color: 'red' }) + editor.commands.toggleHighlight({ color: 'red' }) cy.get('.ProseMirror') .find('mark') @@ -39,7 +39,7 @@ context('/api/marks/highlight', () => { .chain() .setContent('
Example Text
') .selectAll() - .highlight({ color: 'rgb(255, 0, 0)' }) + .toggleHighlight({ color: 'rgb(255, 0, 0)' }) .run() cy.get('.ProseMirror') @@ -54,7 +54,7 @@ context('/api/marks/highlight', () => { .chain() .setContent('Example Text
') .selectAll() - .highlight({ color: 'rgb(255, 0, 0)' }) + .toggleHighlight({ color: 'rgb(255, 0, 0)' }) .run() cy.get('.ProseMirror') diff --git a/docs/src/demos/Marks/Highlight/index.vue b/docs/src/demos/Marks/Highlight/index.vue index 51df5e8f..aa45ff17 100644 --- a/docs/src/demos/Marks/Highlight/index.vue +++ b/docs/src/demos/Marks/Highlight/index.vue @@ -7,7 +7,7 @@ highlight (any)