SVeditor Docs
Getting Started

Choose an integration path

Pick ESM, CDN, or the online playground based on your stack and persistence needs.

Choose an integration path

SVeditor uses the same runtime everywhere. What changes is how you load it and where you save documents. Default to the ESM package when you have a bundler.

Decision table

Your situationPathNotes
React / Next.js / ViteESM packageDefault — @wztlink1013/sveditor
Next.js App RouterReact / Next.jsSSR-safe mount + stable options
No bundler (legacy HTML, CMS)CDNwindow.SVeditor
Try before building APIsPlaygroundOnline auto-save examples
Your own REST storageESM or CDN + Auto-saveRecommended persistence model

ESM package (default)

Best for: any new React or Next.js project.

  • Full TypeScript types for EditorOptions and extensionsOptions.
  • Same configuration shape as CDN — pick one loading path and keep it.
  • Requires npm install; see Installation.

Watch out: do not import the SDK in Server Components. Use client boundaries — ESM integration.

CDN (UMD)

Best for: hosts that cannot use a bundler.

  • No build step; React is bundled in UMD.
  • Pin versioned CDN URLs in production.

Configuration still uses SVeditor.create({ extensionsOptions: { ... } }). Upload and save callbacks call your HTTP endpoints.

Online playground

Best for: seeing auto-save, uploads, metadata, and AI wired end-to-end before you write backend routes.

See Sandbox.

Persistence models

ModelWho stores the bodyUse when
Static contentYou pass content each mountRead-only or preview
autoSaveYour onSaveContentSingle editor, debounced saves
autoSave + metaBody + separate meta callbacksBuilt-in title / cover UI

Reading order

  1. Installation
  2. ESM integration
  3. Quick start
  4. Auto-save

Next steps