Skip to content

Documentation for SoEditor 1.2.1

Split views

Stacked and side-by-side layouts show two editing views of one canonical HTML document and share history. Enable Source before switching layouts.

Prefer stacked views on narrow screens. A split does not create independent copies: save using the same instance’s getData().

Switch to wysiwyg to leave the split. Later Source activations reuse the loaded runtime.

Checked code

ts
export async function split(editor: ClassicEditor) {
    await editor.setWorkspaceView('wysiwyg-source-horizontal');
    await editor.setWorkspaceView('wysiwyg-source-vertical');
    await editor.setWorkspaceView('wysiwyg');
}

Checked against the published types; see imports and types for imports.

Next steps

Examples · Configuration · Troubleshooting

HTML editing for website CMS · MIT