Closed qmfkdldks closed 3 years ago
Since slate.js content is already JSON format, we don't need to add additional serialization or deserialization methods.
https://docs.slatejs.org/walkthroughs/06-saving-to-a-database
const App = () => { return ( <VividEditor onChange={value => { console.log(value) }} onSave={value => { const content = JSON.stringify(value) localStorage.setItem('content', content) }} /> ) }
Example of documentation for the developers https://docs.slatejs.org/walkthroughs/06-saving-to-a-database
Issue / Motivation / Current Behavior
Since slate.js content is already JSON format, we don't need to add additional serialization or deserialization methods.
https://docs.slatejs.org/walkthroughs/06-saving-to-a-database
References
Example of documentation for the developers https://docs.slatejs.org/walkthroughs/06-saving-to-a-database
Acceptance Criteria