Editor

Scaffold Editor I did all this for you. You’re welcome

  1. Getting Started
  2. 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...
  3. Saving Content
  4. To export content from the editor, set export.start to true. Once the export is complete, the content is available through $editorStore.content in both JSON and HTML formats. You can then store it in a database or use it as needed.

    Because the editor is built with Tiptap, some presentation styles are not included in the exported HTML or JSON. These styles are also provided through $editorStore.content, allowing you to apply them when rendering or sending the content elsewhere.

    svelte
    Loading...
  5. Inserting Images
  6. The editor uses File Picker to handle multiple image uploads and insertions. An input has also been provided to key in image URLs manually.

    You can control mode of insertion using $editorStore.insertImageMode array, and by default, all modes are enabled.

    See the example below.

    svelte
    Loading...

    To use File Picker, additional configuration is required. Read more

  7. Supported styles
  8. Some of the supported styling options include width and width

    svelte
    Loading...
Edit Page

Last Updated: -


Previous

Next

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