From 00d8958b72c9da208f56eba1bd7153757b0056a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Thu, 6 May 2021 18:41:22 +0200 Subject: [PATCH] docs: update content --- docs/src/demos/Examples/Book/index.vue | 6 ++- .../Examples/CollaborativeEditing/index.vue | 6 ++- .../demos/Examples/Default/React/index.jsx | 4 +- docs/src/demos/Examples/Default/Vue/index.vue | 4 +- docs/src/demos/Examples/Formatting/index.vue | 4 +- .../Examples/MarkdownShortcuts/index.vue | 4 +- docs/src/demos/Examples/Menus/React/index.jsx | 4 +- docs/src/demos/Examples/Menus/Vue/index.vue | 4 +- docs/src/demos/Examples/Tables/index.vue | 4 +- docs/src/demos/Experiments/Commands/index.vue | 4 +- docs/src/demos/Experiments/Details/index.vue | 4 +- docs/src/demos/Experiments/Embeds/index.vue | 4 +- .../Experiments/GlobalDragHandle/index.vue | 4 +- .../demos/Experiments/TrailingNode/index.vue | 4 +- .../src/demos/Experiments/WordBreak/index.vue | 4 +- .../Extensions/BubbleMenu/React/index.jsx | 4 +- .../demos/Extensions/BubbleMenu/Vue/index.vue | 4 +- .../Extensions/FloatingMenu/React/index.jsx | 4 +- .../Extensions/FloatingMenu/Vue/index.vue | 4 +- .../demos/Extensions/Placeholder/index.vue | 4 +- .../demos/Guide/Content/ExportHTML/index.vue | 6 ++- .../demos/Guide/Content/ExportJSON/index.vue | 6 ++- .../demos/Guide/Content/ReadOnly/index.vue | 6 ++- .../Guide/GettingStarted/VModel/Editor.vue | 6 ++- .../Guide/NodeViews/DragHandle/index.vue | 4 +- .../Guide/NodeViews/JavaScript/index.vue | 4 +- .../NodeViews/JavaScriptContent/index.vue | 4 +- .../Guide/NodeViews/ReactComponent/index.jsx | 4 +- .../NodeViews/ReactComponentContent/index.jsx | 4 +- .../Guide/NodeViews/TableOfContents/index.vue | 4 +- .../Guide/NodeViews/VueComponent/index.vue | 4 +- .../NodeViews/VueComponentContent/index.vue | 4 +- .../src/demos/Overview/Installation/index.vue | 6 ++- docs/src/docPages/api/editor.md | 50 ++++++++++++------- docs/src/docPages/api/extensions.md | 2 +- docs/src/docPages/api/nodes/document.md | 2 +- docs/src/docPages/api/nodes/paragraph.md | 2 +- docs/src/docPages/api/nodes/text.md | 2 +- docs/src/docPages/guide/configuration.md | 24 +++++---- docs/src/docPages/installation.md | 6 ++- docs/src/docPages/installation/alpine.md | 6 ++- docs/src/docPages/installation/cdn.md | 6 ++- docs/src/docPages/installation/livewire.md | 8 +-- docs/src/docPages/installation/nuxt.md | 6 ++- docs/src/docPages/installation/react.md | 6 ++- docs/src/docPages/installation/svelte.md | 6 ++- docs/src/docPages/installation/vue2.md | 6 ++- docs/src/docPages/installation/vue3.md | 18 ++++--- docs/src/pages/index.vue | 6 ++- 49 files changed, 180 insertions(+), 122 deletions(-) diff --git a/docs/src/demos/Examples/Book/index.vue b/docs/src/demos/Examples/Book/index.vue index 8d0848dc..b8a4e5d8 100644 --- a/docs/src/demos/Examples/Book/index.vue +++ b/docs/src/demos/Examples/Book/index.vue @@ -71,7 +71,7 @@ diff --git a/docs/src/docPages/installation/livewire.md b/docs/src/docPages/installation/livewire.md index e5edb2cb..f79ee51a 100644 --- a/docs/src/docPages/installation/livewire.md +++ b/docs/src/docPages/installation/livewire.md @@ -40,8 +40,8 @@ TODO ## index.js ```js -import { Editor } from "@tiptap/core" -import { defaultExtensions } from "@tiptap/starter-kit" +import { Editor } from '@tiptap/core' +import StarterKit from '@tiptap/starter-kit' window.setupEditor = function (content) { return { @@ -51,7 +51,9 @@ window.setupEditor = function (content) { init(element) { this.editor = new Editor({ element: element, - extensions: defaultExtensions(), + extensions: [ + StarterKit, + ], content: this.content, onUpdate: ({ editor }) => { this.content = editor.getHTML() diff --git a/docs/src/docPages/installation/nuxt.md b/docs/src/docPages/installation/nuxt.md index e7a5f5c4..e7a67c11 100644 --- a/docs/src/docPages/installation/nuxt.md +++ b/docs/src/docPages/installation/nuxt.md @@ -51,7 +51,7 @@ This is the fastest way to get tiptap up and running with Vue. It will give you