Toolbar Presets
ZynText ships with three toolbar presets. Each preset determines which buttons and features appear in the toolbar.
Minimal
A compact toolbar for simple text formatting. Best for comments, short descriptions, and inline editors.
new ZynText(textarea, { toolbar: 'minimal' });
| Button | Command |
|---|---|
| Bold | bold |
| Italic | italic |
| Underline | underline |
| Bullet List | insertUnorderedList |
| Ordered List | insertOrderedList |
| Link | createLink |
Standard (default)
A well-rounded toolbar for general content editing. Includes headings, images, code blocks, and history.
new ZynText(textarea, { toolbar: 'standard' });
| Button / Group | Command |
|---|---|
| Headings dropdown (H1–H6, Paragraph) | formatBlock |
| Bold, Italic, Underline | bold / italic / underline |
| Strikethrough | strikeThrough |
| Clear Formatting | clearFormat |
| Link | createLink |
| Image | insertImage |
| Blockquote | blockquote |
| Code Block | codeBlock |
| Bullet List, Ordered List | insertUnorderedList / insertOrderedList |
| Indent, Outdent | indent / outdent |
| Horizontal Rule | insertHorizontalRule |
| Undo, Redo | undo / redo |
Full
The complete toolbar with all features: alignment, tables, fullscreen, and source view.
new ZynText(textarea, { toolbar: 'full' });
Includes everything from Standard plus:
| Button | Command |
|---|---|
| Align Left | justifyLeft |
| Align Center | justifyCenter |
| Align Right | justifyRight |
| Justify | justifyFull |
| Insert Table (grid picker) | insertTable |
| Fullscreen | fullscreen |
| View Source | toggleSource |
AI Tools Dropdown
When both aiEnabled: true and aiUrl are set, an AI dropdown is appended to the Standard and Full toolbars (not Minimal).
new ZynText(textarea, {
toolbar: 'standard',
aiEnabled: true,
aiUrl: '/api/ai/text'
});
| Action | Value sent to server |
|---|---|
| Improve Writing | improve |
| Fix Grammar | fix_grammar |
| Make Shorter | make_shorter |
| Make Longer | make_longer |
| Professional Tone | tone_professional |
| Casual Tone | tone_casual |
| Friendly Tone | tone_friendly |
| Summarize | summarize |
Plugins Activated Per Preset
| Plugin | Minimal | Standard | Full |
|---|---|---|---|
| FormatPlugin | Yes | Yes | Yes |
| ListPlugin | Yes | Yes | Yes |
| LinkPlugin | Yes | Yes | Yes |
| BlockPlugin | Yes | Yes | Yes |
| HistoryPlugin | Yes | Yes | Yes |
| ImagePlugin | Yes | Yes | Yes |
| ImageInteractionPlugin | Yes | Yes | Yes |
| UploadPlugin | If uploadUrl | If uploadUrl | If uploadUrl |
| AlignPlugin | — | Yes | Yes |
| TablePlugin | — | — | Yes |
| FullscreenPlugin | — | — | Yes |
| SourcePlugin | — | — | Yes |
| AiPlugin | — | If enabled | If enabled |