Editor

Editor

Getting Started

Import the editor and enable the features you need

svelte
Loading...

The content variable can also be used to load previously saved content.

To read content created in this editor, use readOnly mode

svelte
Loading...

Saving Content

To save content from the editor, set the export variable to true. This will give you the content in JSON and HTML format, which can be saved in a database or used as needed. The content can be accessed via $editorStore.content.

If any function should run immediately after content is exported, attach it to $editorStore.onExport()

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.

You will need to configure the editor with the appropriate API endpoints for image handling. They wll be directly used by the File Picker

svelte
Loading...
Edit Page

Last Updated: -


© 2026 @sierra-95/svelte-scaffold. All rights reserved.