fix some demos with hidden source

This commit is contained in:
Philipp Kühn
2021-09-18 23:01:30 +02:00
parent 80b859be8e
commit 67c33644d3
4 changed files with 6 additions and 10 deletions

View File

@@ -42,7 +42,7 @@ editor.commands.setContent({
Here is an interactive example where you can see that in action:
<tiptap-demo name="GuideContent/ExportJSON" hideSource></tiptap-demo>
<tiptap-demo name="GuideContent/ExportJSON" hide-source></tiptap-demo>
### Option 2: HTML
HTML can be easily rendered in other places, for example in emails and its wildly used, so its 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(`<p>Example Text</p>`)
Use this interactive example to fiddle around:
<tiptap-demo name="GuideContent/ExportHTML" hideSource></tiptap-demo>
<tiptap-demo name="GuideContent/ExportHTML" hide-source></tiptap-demo>
### 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).