From your first document to your product.
Connect the editor, customize tools and manage content through the API.
Your first HTML
from ViText.
Build, integration, Markdown and storage in one complete workflow.
Quick startThe @vitext-ru/editor package is available on npm. The browser distribution is available as an archive.
All three presets, including Pro, are included in free Community.
Getting started
Quick start
Add the ViText JavaScript WYSIWYG editor to a page without a bundler. Import Markdown, format text and export HTML.
JavaScript editor via script
Embed the ViText WYSIWYG editor in an HTML page — ready-to-use JavaScript, styles, lazy HTML/CSS and Markdown modules, and cleanup.
JavaScript editor via ESM
Install the ViText JavaScript editor from npm. ESM and CSS imports, Markdown and HTML, and instance cleanup.
Configuration
Document guides
Markdown to HTML
Import Markdown into ViText, edit text visually and export HTML. Supported syntax, Markdown source mode and conversion limits.
HTML, CSS and source editing
Automatic application, syntax checks and a separate document stylesheet.
Saving and restoring
Consistent JSON/CSS snapshots, events and application-owned storage.
Instance lifecycle
Mounting, lazy readiness, subscriptions and destroy.
Images and uploads
Checked addresses and an application-owned upload callback.
Tables
Insertion, contextual controls and GFM preservation.
Plugins
Connecting plugins
API 1, managed commands, menus, forms, status and cleanup.
Word count
Installation, behavior and limitations of the word count plugin.
Dirty-state indicator
Installation, behavior and limitations of the dirty-state indicator plugin.
Text case
Installation, behavior and limitations of the text case plugin.
Typography
Installation, behavior and limitations of the typography plugin.
Search and replace
Installation, behavior and limitations of the search and replace plugin.
Browser spellcheck
Installation, behavior and limitations of the browser spellcheck plugin.
Character limit
Installation, behavior and limitations of the character limit plugin.
API reference
ViText options
Constructor parameters, defaults and configuration validation.
ViText methods
Document access, mutation, UI, history and plugins.
Events
Payloads, applied revisions and subscription cleanup.
Document and ranges
HTML, JSON, CSS and revision-bearing positions.
Errors and warnings
Import reports, syntax errors, stale revisions and recovery.
Compatibility
Browser test profiles and limits of current support.
Content security
HTML cleanup, CSS policy and application responsibilities.