diff --git a/docs/src/demos/Api/Schema/GenerateHTML/index.vue b/docs/src/demos/Api/Schema/GenerateHTML/index.vue index b0a6eda4..1fa55904 100644 --- a/docs/src/demos/Api/Schema/GenerateHTML/index.vue +++ b/docs/src/demos/Api/Schema/GenerateHTML/index.vue @@ -27,9 +27,9 @@ export default { mounted() { this.html = generateHTML(this.json, [ - Document(), - Paragraph(), - Text(), + Document, + Paragraph, + Text, ]) }, } diff --git a/docs/src/demos/Examples/CollaborativeEditing/index.vue b/docs/src/demos/Examples/CollaborativeEditing/index.vue index 36403f81..f1be445c 100644 --- a/docs/src/demos/Examples/CollaborativeEditing/index.vue +++ b/docs/src/demos/Examples/CollaborativeEditing/index.vue @@ -135,11 +135,11 @@ export default { this.editor = new Editor({ extensions: [ ...defaultExtensions(), - Collaboration({ + Collaboration.set({ provider: this.provider, type: this.type, }), - CollaborationCursor({ + CollaborationCursor.set({ provider: this.provider, name: this.name, color: this.color, diff --git a/docs/src/demos/Examples/Formatting/index.vue b/docs/src/demos/Examples/Formatting/index.vue index ce9c2a99..a42d1dbd 100644 --- a/docs/src/demos/Examples/Formatting/index.vue +++ b/docs/src/demos/Examples/Formatting/index.vue @@ -61,16 +61,16 @@ export default { mounted() { this.editor = new Editor({ extensions: [ - Document(), - Paragraph(), - Text(), - Heading({ + Document, + Paragraph, + Text, + Heading.set({ level: [1, 2, 3], }), - Bold(), - Italic(), - TextAlign(), - HardBreak(), + Bold, + Italic, + TextAlign, + HardBreak, ], content: `

Girls Just Want to Have Fun (Cyndi Lauper)

diff --git a/docs/src/demos/Examples/Links/index.vue b/docs/src/demos/Examples/Links/index.vue index 933dd0f8..6bb39c7d 100644 --- a/docs/src/demos/Examples/Links/index.vue +++ b/docs/src/demos/Examples/Links/index.vue @@ -32,10 +32,10 @@ export default { mounted() { this.editor = new Editor({ extensions: [ - Document(), - Paragraph(), - Text(), - Link(), + Document, + Paragraph, + Text, + Link, ], content: `

diff --git a/docs/src/demos/Examples/MarkdownShortcuts/index.vue b/docs/src/demos/Examples/MarkdownShortcuts/index.vue index 5bd851c1..c5f69fb3 100644 --- a/docs/src/demos/Examples/MarkdownShortcuts/index.vue +++ b/docs/src/demos/Examples/MarkdownShortcuts/index.vue @@ -37,7 +37,7 @@ export default { `, extensions: [ ...defaultExtensions(), - Highlight(), + Highlight, ], }) }, diff --git a/docs/src/demos/Examples/Minimalist/index.vue b/docs/src/demos/Examples/Minimalist/index.vue index 8f53dc21..8eeccee3 100644 --- a/docs/src/demos/Examples/Minimalist/index.vue +++ b/docs/src/demos/Examples/Minimalist/index.vue @@ -22,9 +22,9 @@ export default { mounted() { this.editor = new Editor({ extensions: [ - Document(), - Paragraph(), - Text(), + Document, + Paragraph, + Text, ], content: `

diff --git a/docs/src/demos/Examples/TodoApp/index.vue b/docs/src/demos/Examples/TodoApp/index.vue index 702d9499..f72fd71a 100644 --- a/docs/src/demos/Examples/TodoApp/index.vue +++ b/docs/src/demos/Examples/TodoApp/index.vue @@ -35,11 +35,11 @@ export default { mounted() { this.editor = new Editor({ extensions: [ - CustomDocument(), - Paragraph(), - Text(), - TaskList(), - CustomTaskItem(), + CustomDocument, + Paragraph, + Text, + TaskList, + CustomTaskItem, ], content: `