Skip to content

Documentation for SoEditor 1.2.1

Toolbar

Start with the default CMS toolbar. Use toolbarLayout for collapsing, wrapping and sticky positioning, and customize individual items only for a real workflow.

Toolbar visibility is separate from runtime loading. Source, saving and preview require the appropriate optional entry and configuration. Hiding a control does not isolate its module.

After customization, check keyboard order, narrow layouts and current-format feedback.

Checked code

ts
export const configuration = {
    locale: 'zh-CN',
    ariaLabel: 'Article content',
    minHeight: 280,
    readonly: false,
    placeholder: 'Start writing…',
    toolbarLayout: { collapsible: true, overflow: 'wrap', sticky: true },
    onChange: ({ source }) => {
        console.info('Canonical HTML:', source);
    },
} satisfies CreateClassicEditorOptions;

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

Next steps

Examples · Configuration · Troubleshooting

HTML editing for website CMS · MIT