Question: How to render a saved JSON editor state as static HTML?
See original GitHub issueIs it possible to save the editor state from JSON.stringify(editorState.toJSON());
and rehydrate it later but as read-only HTML instead displaying an editor? For example, using Lexical as a blog editor and rendering the output as a static post.
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:14 (5 by maintainers)
Top Results From Across the Web
How to render HTML string as real HTML? - Stack Overflow
First install the package by npm i --save react-render-html ... Within the JSX, it had to be picked from the Component's state. Component...
Read more >Draft-js - Saving data to the server - React Rocket
Draft.js is nice, but how on earth do I save data to the server? ... import React, { Component } from 'react'; import...
Read more >Server-Side Rendering (SSR) - Vue.js
Before using SSR for your app, the first question you should ask is whether you ... Pre-rendered pages are generated and served as...
Read more >ReactJS — A quick tutorial to build dynamic JSON based form.
In this article we will quickly build a dynamic form based on json data with events and states. Don't worry about the CSS...
Read more >JSON Editor TW5 demo — a non-linear personal web notebook
The json-editor can function even without a schema. The form can be dynamically created on the fly. <$jsoneditor jsonOutput="!!emptyschema-json"/>.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@trueadm Ok i’m getting the hang of it!
Here’s a better snippet for the others
I’d use the
@lexical/headless
package in this case, then you get the best if both worlds