Feature presets

Simple, Base and Pro are three interfaces of one free Community library.

1.0.0-beta.6 · Local build · desktop

Supported presets

PresetFeatures
simpleText formatting, compact toolbar; no source modes, images, tables, fullscreen, tool menus, plugins or status bar
baseAll visual tools, images, tables, HTML, fullscreen and tool menus; compact status/table controls; no Markdown/CSS panel or plugins
proAll visual tools, HTML/Markdown/CSS, plugins, tool menus and a comfortable status bar

All three presets are included in Community. The library defaults to pro; the builder starts with base. The six feature categories are Images, Tables, HTML, CSS, Markdown and Plugins. CSS depends on HTML. Fullscreen is a selectable toolbar tool.

Toolbar defaults

The site's demos now use the builder's initial tool order and separators. Tools stay individually selectable; only overflow moves them into the *** menu. Tables expose their contextual controls when active. Presets do not change the document schema or produce differently sized builds.

Validate configuration

Use features to disable optional tools within the preset's limits. Invalid or unsupported configurations throw TypeError. The old min/mid/max values are rejected. Toolbar, builder.

const editor = new ViText('#editor', {
  preset: 'base',
  features: { images: false },
  toolbar: ['bold', 'italic', 'link', 'bulletList']
});

Search documentation

No results. Try different words.

All documentation