diff --git a/docs/src/demos/Examples/Focus/index.vue b/docs/src/demos/Examples/Focus/index.vue index c7c08a5f..d2e65384 100644 --- a/docs/src/demos/Examples/Focus/index.vue +++ b/docs/src/demos/Examples/Focus/index.vue @@ -31,16 +31,16 @@ export default { mounted() { this.editor = new Editor({ extensions: [ - new Document(), - new History(), - new Paragraph(), - new Text(), - new Bold(), - new Italic(), - new Code(), - new CodeBlock(), - new Heading(), - new Focus({ + Document(), + History(), + Paragraph(), + Text(), + Bold(), + Italic(), + Code(), + CodeBlock(), + Heading(), + Focus({ className: 'has-focus', nested: true, }), diff --git a/docs/src/demos/Examples/Simple/index.vue b/docs/src/demos/Examples/Simple/index.vue index 1f442f70..01387fdd 100644 --- a/docs/src/demos/Examples/Simple/index.vue +++ b/docs/src/demos/Examples/Simple/index.vue @@ -24,9 +24,9 @@ export default { this.editor = new Editor({ content: '

This is a radically reduced version of tiptap for minimalisits. It has only support for a document, paragraphs and text, that’s it.

', extensions: [ - new Document(), - new Paragraph(), - new Text(), + Document(), + Paragraph(), + Text(), ], }) diff --git a/docs/src/demos/ExtensionConfiguration/index.vue b/docs/src/demos/ExtensionConfiguration/index.vue index 3a7b5cbd..e060ebfe 100644 --- a/docs/src/demos/ExtensionConfiguration/index.vue +++ b/docs/src/demos/ExtensionConfiguration/index.vue @@ -26,10 +26,10 @@ export default { this.editor = new Editor({ content: '

I’m running tiptap with Vue.js. This demo is interactive, try to edit the text.

', extensions: [ - new Document(), - new Paragraph(), - new Text(), - new Bold(), + Document(), + Paragraph(), + Text(), + Bold(), ], }) }, diff --git a/docs/src/demos/Extensions/Bold/index.vue b/docs/src/demos/Extensions/Bold/index.vue index 7416151b..fd96bf11 100644 --- a/docs/src/demos/Extensions/Bold/index.vue +++ b/docs/src/demos/Extensions/Bold/index.vue @@ -30,10 +30,10 @@ export default { mounted() { this.editor = new Editor({ extensions: [ - new Document(), - new Paragraph(), - new Text(), - new Bold(), + Document(), + Paragraph(), + Text(), + Bold(), ], content: `

This isn’t bold.

diff --git a/docs/src/demos/Extensions/Code/index.vue b/docs/src/demos/Extensions/Code/index.vue index 4f51c0cd..4a89e425 100644 --- a/docs/src/demos/Extensions/Code/index.vue +++ b/docs/src/demos/Extensions/Code/index.vue @@ -30,10 +30,10 @@ export default { mounted() { this.editor = new Editor({ extensions: [ - new Document(), - new Paragraph(), - new Text(), - new Code(), + Document(), + Paragraph(), + Text(), + Code(), ], content: `

This isn’t code.

diff --git a/docs/src/demos/Extensions/History/index.vue b/docs/src/demos/Extensions/History/index.vue index 95b72d4d..40f022c5 100644 --- a/docs/src/demos/Extensions/History/index.vue +++ b/docs/src/demos/Extensions/History/index.vue @@ -33,10 +33,10 @@ export default { mounted() { this.editor = new Editor({ extensions: [ - new Document(), - new Paragraph(), - new Text(), - new History(), + Document(), + Paragraph(), + Text(), + History(), ], content: `

Edit this text and press undo to test this extension.

diff --git a/docs/src/demos/Extensions/Italic/index.vue b/docs/src/demos/Extensions/Italic/index.vue index 65e46a82..d86c3c9a 100644 --- a/docs/src/demos/Extensions/Italic/index.vue +++ b/docs/src/demos/Extensions/Italic/index.vue @@ -30,10 +30,10 @@ export default { mounted() { this.editor = new Editor({ extensions: [ - new Document(), - new Paragraph(), - new Text(), - new Italic(), + Document(), + Paragraph(), + Text(), + Italic(), ], content: `

This isn’t italic.

diff --git a/docs/src/demos/Guide/BuildYourEditor/index.vue b/docs/src/demos/Guide/BuildYourEditor/index.vue index 60534007..7aafa12d 100644 --- a/docs/src/demos/Guide/BuildYourEditor/index.vue +++ b/docs/src/demos/Guide/BuildYourEditor/index.vue @@ -55,15 +55,15 @@ export default { this.editor = new Editor({ content: '

Hey there!

This editor is based on Prosemirror, fully extendable and renderless. You can easily add custom nodes as Vue components.

', extensions: [ - new Document(), - new Paragraph(), - new Text(), - new CodeBlock(), - new History(), - new Bold(), - new Italic(), - new Code(), - new Heading(), + Document(), + Paragraph(), + Text(), + CodeBlock(), + History(), + Bold(), + Italic(), + Code(), + Heading(), ], }) }, diff --git a/docs/src/docPages/api/extensions/blockquote.md b/docs/src/docPages/api/extensions/blockquote.md index 0e899d1f..bb26f119 100644 --- a/docs/src/docPages/api/extensions/blockquote.md +++ b/docs/src/docPages/api/extensions/blockquote.md @@ -39,7 +39,7 @@ export default { return { editor: new Editor({ extensions: [ - new Blockquote(), + Blockquote(), ], content: `
diff --git a/docs/src/docPages/api/extensions/bullet-list.md b/docs/src/docPages/api/extensions/bullet-list.md index d547079b..124a5a46 100644 --- a/docs/src/docPages/api/extensions/bullet-list.md +++ b/docs/src/docPages/api/extensions/bullet-list.md @@ -43,7 +43,7 @@ export default { return { editor: new Editor({ extensions: [ - new BulletList(), + BulletList(), ], content: `