rename demo, add more content
This commit is contained in:
@@ -126,15 +126,13 @@ const schema = getSchema([
|
||||
|
||||
## Generate HTML from ProseMirror JSON
|
||||
|
||||
If you need to render the content on the server side, e. g. for a blog post that was written with tiptap, you’ll probably need a way to do just that without an actual editor instance.
|
||||
If you need to render the content on the server side, for example to render a blog post which was written with tiptap, you’ll probably need a way to do just that without an actual editor instance. That’s what `generateHTML()` is for. It’s a utility function that renders HTML without an actual editor instance.
|
||||
|
||||
That’s what `generategetHTML()` is for. It’s a utility function that renders HTML without an actual editor instance.
|
||||
|
||||
:::warning Work in progress
|
||||
Currently, that works only in the browser (client side), but we plan to bring this to Node.js (to use it on the server side).
|
||||
:::info Browser-only rendering
|
||||
Import a lightweight implementation from `@tiptap/core` if you’re using the function in a browser context only.
|
||||
:::
|
||||
|
||||
<demo name="Api/Schema/GenerateHtml" highlight="6,29-33"/>
|
||||
<demo name="Api/Schema/GenerateHTML" highlight="6,29-33"/>
|
||||
|
||||
### Converting JSON<>HTML with PHP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user