diff --git a/docs/src/demos/Examples/Basic/index.vue b/docs/src/demos/Examples/Basic/index.vue index eae2fcc8..c68bb616 100644 --- a/docs/src/demos/Examples/Basic/index.vue +++ b/docs/src/demos/Examples/Basic/index.vue @@ -82,8 +82,6 @@ export default {
This editor is based on Prosemirror, fully extendable and renderless. You can easily add custom nodes as Vue components.
`, }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Examples/ExportHtmlOrJson/index.vue b/docs/src/demos/Examples/ExportHtmlOrJson/index.vue index c652f57a..fbb6bd27 100644 --- a/docs/src/demos/Examples/ExportHtmlOrJson/index.vue +++ b/docs/src/demos/Examples/ExportHtmlOrJson/index.vue @@ -54,8 +54,6 @@ export default { this.json = this.editor.json() this.html = this.editor.html() }) - - window.editor = this.editor }, methods: { diff --git a/docs/src/demos/Examples/Focus/index.vue b/docs/src/demos/Examples/Focus/index.vue index 58610fbd..14eddd53 100644 --- a/docs/src/demos/Examples/Focus/index.vue +++ b/docs/src/demos/Examples/Focus/index.vue @@ -47,8 +47,6 @@ export default { `, }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Examples/History/index.vue b/docs/src/demos/Examples/History/index.vue index 5c8a8cea..c7f014b6 100644 --- a/docs/src/demos/Examples/History/index.vue +++ b/docs/src/demos/Examples/History/index.vue @@ -38,8 +38,6 @@ export default { `, extensions: defaultExtensions(), }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Examples/MarkdownShortcuts/index.vue b/docs/src/demos/Examples/MarkdownShortcuts/index.vue index 5d59a9e6..d8555ab9 100644 --- a/docs/src/demos/Examples/MarkdownShortcuts/index.vue +++ b/docs/src/demos/Examples/MarkdownShortcuts/index.vue @@ -33,8 +33,6 @@ export default { `, extensions: defaultExtensions(), }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Examples/ReadOnly/index.vue b/docs/src/demos/Examples/ReadOnly/index.vue index 3d1135fb..57d8b801 100644 --- a/docs/src/demos/Examples/ReadOnly/index.vue +++ b/docs/src/demos/Examples/ReadOnly/index.vue @@ -33,8 +33,6 @@ export default { `, extensions: defaultExtensions(), }) - - window.editor = this.editor }, watch: { diff --git a/docs/src/demos/Examples/Simple/index.vue b/docs/src/demos/Examples/Simple/index.vue index a2f35b65..674564d3 100644 --- a/docs/src/demos/Examples/Simple/index.vue +++ b/docs/src/demos/Examples/Simple/index.vue @@ -29,8 +29,6 @@ export default { Text(), ], }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Extensions/Blockquote/index.vue b/docs/src/demos/Extensions/Blockquote/index.vue index 1eb70053..4400e641 100644 --- a/docs/src/demos/Extensions/Blockquote/index.vue +++ b/docs/src/demos/Extensions/Blockquote/index.vue @@ -42,8 +42,6 @@ export default {Albert Einstein
`, }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Extensions/Bold/index.vue b/docs/src/demos/Extensions/Bold/index.vue index fd96bf11..15a0b064 100644 --- a/docs/src/demos/Extensions/Bold/index.vue +++ b/docs/src/demos/Extensions/Bold/index.vue @@ -45,8 +45,6 @@ export default {Up to font weight 999!!!
`, }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Extensions/BulletList/index.vue b/docs/src/demos/Extensions/BulletList/index.vue index 0619a5db..96ee5dd1 100644 --- a/docs/src/demos/Extensions/BulletList/index.vue +++ b/docs/src/demos/Extensions/BulletList/index.vue @@ -44,8 +44,6 @@ export default { `, }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Extensions/Code/index.vue b/docs/src/demos/Extensions/Code/index.vue index 4a89e425..1fd678b7 100644 --- a/docs/src/demos/Extensions/Code/index.vue +++ b/docs/src/demos/Extensions/Code/index.vue @@ -40,8 +40,6 @@ export default {This is code.
Press Command/Ctrl + Enter to leave the fenced code block and continue typing in boring paragraphs. `, }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Extensions/Document/index.vue b/docs/src/demos/Extensions/Document/index.vue index 567e8b58..29f4efba 100644 --- a/docs/src/demos/Extensions/Document/index.vue +++ b/docs/src/demos/Extensions/Document/index.vue @@ -33,8 +33,6 @@ export default {
The Document extension is required. Though, you can write your own implementation, e. g. to give it custom name.
`, }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Extensions/HardBreak/index.vue b/docs/src/demos/Extensions/HardBreak/index.vue index 92d76959..abe1009c 100644 --- a/docs/src/demos/Extensions/HardBreak/index.vue +++ b/docs/src/demos/Extensions/HardBreak/index.vue @@ -48,8 +48,6 @@ export default { `, }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Extensions/Heading/index.vue b/docs/src/demos/Extensions/Heading/index.vue index 3be306eb..893259e5 100644 --- a/docs/src/demos/Extensions/Heading/index.vue +++ b/docs/src/demos/Extensions/Heading/index.vue @@ -50,8 +50,6 @@ export default {Edit this text and press undo to test this extension.
`, }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Extensions/HorizontalRule/index.vue b/docs/src/demos/Extensions/HorizontalRule/index.vue index 563169fe..88995efc 100644 --- a/docs/src/demos/Extensions/HorizontalRule/index.vue +++ b/docs/src/demos/Extensions/HorizontalRule/index.vue @@ -43,8 +43,6 @@ export default {But between those paragraphs are horizontal rules.
`, }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Extensions/Italic/index.vue b/docs/src/demos/Extensions/Italic/index.vue index d86c3c9a..4bb9ac4f 100644 --- a/docs/src/demos/Extensions/Italic/index.vue +++ b/docs/src/demos/Extensions/Italic/index.vue @@ -42,8 +42,6 @@ export default {This as well.
`, }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Extensions/Paragraph/index.vue b/docs/src/demos/Extensions/Paragraph/index.vue index 18796117..35fcb09f 100644 --- a/docs/src/demos/Extensions/Paragraph/index.vue +++ b/docs/src/demos/Extensions/Paragraph/index.vue @@ -33,8 +33,6 @@ export default {The Paragraph extension is not required, but it’s very likely you want to use it. It’s needed to write paragraphs of text. 🤓
`, }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Extensions/Strike/index.vue b/docs/src/demos/Extensions/Strike/index.vue index 67ad7e1d..4bb21f49 100644 --- a/docs/src/demos/Extensions/Strike/index.vue +++ b/docs/src/demos/Extensions/Strike/index.vue @@ -43,8 +43,6 @@ export default {This as well.
`, }) - - window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/demos/Extensions/Underline/index.vue b/docs/src/demos/Extensions/Underline/index.vue index 558d09cc..4c51c58e 100644 --- a/docs/src/demos/Extensions/Underline/index.vue +++ b/docs/src/demos/Extensions/Underline/index.vue @@ -41,8 +41,6 @@ export default {And this as well.
`, }) - - window.editor = this.editor }, beforeDestroy() {