From 67c33644d3baa2d5283f3f1353064288d9278bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Sat, 18 Sep 2021 23:01:30 +0200 Subject: [PATCH] fix some demos with hidden source --- docs/api/extensions/collaboration-cursor.md | 3 +-- docs/api/extensions/collaboration.md | 3 --- docs/guide/menus.md | 6 +++--- docs/guide/output.md | 4 ++-- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/api/extensions/collaboration-cursor.md b/docs/api/extensions/collaboration-cursor.md index 8b084a6a..be06ed13 100644 --- a/docs/api/extensions/collaboration-cursor.md +++ b/docs/api/extensions/collaboration-cursor.md @@ -40,6 +40,5 @@ This extension requires the [`Collaboration`](/api/extensions/collaboration) ext :::warning Public The content of this editor is shared with other users. ::: - - + diff --git a/docs/api/extensions/collaboration.md b/docs/api/extensions/collaboration.md index e88d91c5..e3766fe0 100644 --- a/docs/api/extensions/collaboration.md +++ b/docs/api/extensions/collaboration.md @@ -49,7 +49,4 @@ yarn add @tiptap/extension-collaboration yjs y-websocket The content of this editor is shared with other users. ::: - - - diff --git a/docs/guide/menus.md b/docs/guide/menus.md index 2d60ab71..8eb9c947 100644 --- a/docs/guide/menus.md +++ b/docs/guide/menus.md @@ -5,7 +5,7 @@ tableOfContents: true # Create menus ## Introduction -tiptap comes very raw, but that’s a good thing. You have full control about the appearance of it. +tiptap comes very raw, but that’s a good thing. You have full control about the appearance of it. When we say full control, we mean it. You can (and have to) build a menu on your own. We help you to wire everything up. @@ -18,12 +18,12 @@ A fixed menu, for example on top of the editor, can be anything. We don’t prov ### Bubble menu The [bubble menu](/api/extensions/bubble-menu) appears when selecting text. Markup and styling is totally up to you. - + ### Floating menu The [floating menu](/api/extensions/floating-menu) appears in empty lines. Markup and styling is totally up to you. - + ### Slash commands (work in progress) It’s not an official extension yet, but [there’s an experiment you can use to add what we call slash commands](/experiments/commands). It allows you to start a new line with `/` and will bring up a popup to select which node should be added. diff --git a/docs/guide/output.md b/docs/guide/output.md index 5b52a479..84a80cc2 100644 --- a/docs/guide/output.md +++ b/docs/guide/output.md @@ -42,7 +42,7 @@ editor.commands.setContent({ Here is an interactive example where you can see that in action: - + ### Option 2: HTML HTML can be easily rendered in other places, for example in emails and it’s wildly used, so it’s probably easier to switch the editor at some point. Anyway, every editor instance provides a method to get HTML from the current document: @@ -66,7 +66,7 @@ editor.commands.setContent(`

Example Text

`) Use this interactive example to fiddle around: - + ### Option 3: Y.js Our editor has top notch support for Y.js, which is amazing to add features like [realtime collaboration, offline editing, or syncing between devices](/guide/collaborative-editing).