Interactive example

Structured JSON

Versioned document model validation and round trip. Edit the document and try the tools below.

Open full example

Classic Theme This example uses the compact Classic theme so the editor height follows its content without page-canvas whitespace.

Two native hosts make Editra distinctive: use either a <div> or synchronized <textarea> with the same API and sanitization.

Try this example as

The document model is validated before it can replace editor content.

Example code
Preparing configuration…