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' });
ButtonCommand
Boldbold
Italicitalic
Underlineunderline
Bullet ListinsertUnorderedList
Ordered ListinsertOrderedList
LinkcreateLink

Standard (default)

A well-rounded toolbar for general content editing. Includes headings, images, code blocks, and history.

new ZynText(textarea, { toolbar: 'standard' });
Button / GroupCommand
Headings dropdown (H1–H6, Paragraph)formatBlock
Bold, Italic, Underlinebold / italic / underline
StrikethroughstrikeThrough
Clear FormattingclearFormat
LinkcreateLink
ImageinsertImage
Blockquoteblockquote
Code BlockcodeBlock
Bullet List, Ordered ListinsertUnorderedList / insertOrderedList
Indent, Outdentindent / outdent
Horizontal RuleinsertHorizontalRule
Undo, Redoundo / redo

Full

The complete toolbar with all features: alignment, tables, fullscreen, and source view.

new ZynText(textarea, { toolbar: 'full' });

Includes everything from Standard plus:

ButtonCommand
Align LeftjustifyLeft
Align CenterjustifyCenter
Align RightjustifyRight
JustifyjustifyFull
Insert Table (grid picker)insertTable
Fullscreenfullscreen
View SourcetoggleSource

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'
});
ActionValue sent to server
Improve Writingimprove
Fix Grammarfix_grammar
Make Shortermake_shorter
Make Longermake_longer
Professional Tonetone_professional
Casual Tonetone_casual
Friendly Tonetone_friendly
Summarizesummarize

Plugins Activated Per Preset

PluginMinimalStandardFull
FormatPluginYesYesYes
ListPluginYesYesYes
LinkPluginYesYesYes
BlockPluginYesYesYes
HistoryPluginYesYesYes
ImagePluginYesYesYes
ImageInteractionPluginYesYesYes
UploadPluginIf uploadUrlIf uploadUrlIf uploadUrl
AlignPlugin—YesYes
TablePlugin——Yes
FullscreenPlugin——Yes
SourcePlugin——Yes
AiPlugin—If enabledIf enabled