Editor
Saving/ Extracting/ Exporting Content
To save or extract content from the editor, set the export prop to true. This will give you the content in JSON and HTML format, which can be saved in a database or used as needed.
This can be accessed via $editorStore.content.
If any function should run immediately after content is exported, attach it to $editorStore.onExport()
Loading Content
The content variable can also be used to load previously saved content.
The JSON content is important because it preserves all styling and content from the editor, and can be saved in a database.
svelte
Loading...Read only
To read content created in this editor, use readOnly mode
svelte
Loading...Inserting Images
The editor primarily uses File Picker to handle multiple image uploads and insertions. An input has also been provided to key in image URLs manually.
svelte
Loading...Edit Page