/syncfusion-javascript:syncfusion-javascript-modern-rich-text-editorfrom Syncfusion JavaScript UI Controls
Implement the Syncfusion JavaScript Modern Rich Text Editor (RichTextEditorUI) in a Vite-based TypeScript project. Covers setup, toolbar configuration, inline formatting, lists, tables, images, links, block formats, slash commands, events, methods, and accessibility.
Ships in Syncfusion JavaScript UI Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The Syncfusion JavaScript Modern Rich Text Editor (RichTextEditorUI from @syncfusion/ej2-richtexteditor-ui) is a WYSIWYG control for creating, editing, and formatting rich text content in a Vite-based TypeScript project. This skill documents every public surface the component exposes — toolbar configuration, inline and block formatting, lists, tables, images, links, slash commands, events, methods, and accessibility — and points to dedicated reference files for each topic.
Use this skill when you need to:
change, created, destroyed, focus, blur, actionBegin, actionComplete).save, focusIn, focusOut, getDocument, getHtml, getText, updateToolbarItems).📄 Read: references/getting-started.md
24.13.0 or higher)npm create vite@latest my-app -- --template vanilla-ts)@syncfusion/ej2-richtexteditor-ui and a theme package@import '../node_modules/@syncfusion/ej2-tailwind3-theme/styles/richtexteditor-ui/index.css';)new RichTextEditorUI({}).appendTo('#editor')npm run devvalue), content format (valueFormat: 'html' | 'json')toolbarSettings.items and imageSettingsValueFormat, InteractionSettings, InteractionSettingsModel, RichTextEditorUIModel, EditorDocument, BlockNode, InlineNode, EditorMark, CustomNodeAttributeType, CustomNodeContent, CustomNodeGroup, CustomNodeName, DialogType, EditorComponentEventArgs (under the ## API references section of this file)📄 Read: references/toolbar.md
toolbarSettings.items (built-in identifiers and '|' separators)toolbarSettings.type ('Auto', 'Expanded', 'Scrollable', 'MultiRow') and toolbarSettings.position ('Top', 'Bottom')toolbarSettings.enableFloating, toolbarSettings.floatingOffset)Paragraph, Heading 1–Heading 4, Quote, CodeBlock, HorizontalLine, Callout) wired through toolbarSettings.items and slashCommandSettings.itemsactionId, presentation fields, and routing through toolbarSettings.itemClickedtoolbarSettings.itemClicked and toolbarSettings.updatedToolbarStatus eventstoolbarSettings.keyBindingseditor.updateToolbarItems(updates)AlignmentCommandBuilder, HorizontalRuleCommandBuilder, FormattingStateService, EditorKeyBindingAction, QuickToolbarSettings, QuickToolbarSettingsModel, ToolbarSettings, ToolbarItemClickedEventArgs, ToolbarSettingsModel, AddToolbarItem, BuiltInToolbarItemConfig, CustomToolbarItem, BuiltInToolbarItem, ToolbarItem, ToolbarItemUpdate, ToolbarPosition, ToolbarType, DisableToolbarItem, EnableToolbarItem, HideToolbarItem, ShowToolbarItem, RemoveToolbarItem, StaticFunctions (under the ## API references section of this file)📄 Read: references/formatting.md
fontColor, backgroundColor) with ColorCommand { color: string } payload; empty string removes the markfontSize().size(string), fontName().family(string))fontFamily.items; Google font supportfontSize.itemsPicker / Palette modes, columns, default, and modeSwitcherClearFormat toolbar item and clearFormat fluent commandeditor.commands().<builder>().apply()ColorCommandBuilder, CommandExecutor, FontFamilyCommandBuilder, FontSizeCommandBuilder, ToggleCommandBuilder, BackgroundColor, FontColor, BackgroundColorModel, FontColorModel, ColorModeType, ColorPickerType, FontFamily, FontSize, Format, FontFamilyModel, FontSizeModel, FormatModel, FontFamilyItem, FontSizeItem, TextAlignment (under the ## API references section of this file)📄 Read: references/block-quote.md
blockQuote command — toggles a <blockquote> on the current selection (no payload)QuoteBlockquotetoolbarSettings.items and slashCommandSettings.items📄 Read: references/callout.md
Info, Success, Warning, Error, NoteCallout split-button toolbar item (exposes all five variants together)Info, Success, Warning, Error, Note)callout command with CalloutCommand payload ({ callout: 'info' | 'success' | 'warning' | 'error' | 'note' })CalloutCommandBuilder (under the ## API references section of this file)📄 Read: references/codeblock.md
codeBlock command — inserts a <pre> block with optional language annotationCodeBlockCommand payload ({ language: string })CodeBlockCtrl+Shift+B (Windows) / ⌘ ⇧ B (macOS) keyboard shortcutCodeBlockCommandBuilder (under the ## API references section of this file)📄 Read: references/collapsible.md
Collapsible Paragraph, Collapsible Heading 1–Collapsible Heading 4CollapsibleCommandBuilder (under the ## API references section of this file)collapsible command with ToggleCollapsiblePayload ({ triggerType: 'paragraph' | 'heading', level?: 1 | 2 | 3 | 4 })📄 Read: references/table.md
Table, slash command /table, shortcut Ctrl+Shift+E)tableSettings.resizeHeader, Row, Column, CellBackgroundColor, Align, VerticalAlign, RemoveTableSettings, TableSettingsModel, TableQuickToolbarItem (under the ## API references section of this file)📄 Read: references/image.md
imageSettings.allowedTypes, imageSettings.maxFileSize, imageSettings.saveFormat ('Blob' or 'Base64')imageSettings.dimension (width, height, minWidth, maxWidth, minHeight, maxHeight)'inline' default, 'break' block)resize default true)AltText, Caption, Align, Display, WrapText, Dimension, Replace, Remove<figure> + <figcaption>)'left', 'right', 'none') and alignment options ('left', 'center', 'right', 'none')uploadUrl, imageUrl, removeUrl; the UploadFiles form field nameCtrl+Shift+I (Windows) / ⌘ ⇧ I (macOS) keyboard shortcutImageSettings, ImageDisplayMode, ImageSaveFormat, ImageSettingsModel, ImageQuickToolbarItem (under the ## API references section of this file)📄 Read: references/file-upload.md
beforeFileDrop (BeforeFileDropEventArgs)fileSelected (FileSelectedEventArgs)beforeFileUpload (BeforeFileUploadEventArgs), fileUploading (FileUploadingEventArgs), fileUploadSuccess (FileUploadSuccessEventArgs), fileUploadFailed (FileUploadFailedEventArgs)fileRemoving (FileRemovingEventArgs)source: 'Image'; the source discriminant identifies the editor feature the upload is foruploadUrl, imageUrl, removeUrl, UploadFiles, saveFormat: 'Blob' | 'Base64') live under image.md → ImageSettingsBeforeFileDropEventArgs, BeforeFileUploadEventArgs, FileRemovingEventArgs, FileSelectedEventArgs, FileUploadFailedEventArgs, FileUploadSuccessEventArgs, FileUploadingEventArgs (under the ## API references section of this file)📄 Read: references/links.md
linkSettings.linkOnPaste, linkSettings.defaultTarget, linkSettings.autoPrependProtocol, linkSettings.defaultProtocol, linkSettings.allowedProtocols['http', 'https', 'mailto', 'tel']defaultTarget: '_blank' and supported target values ('', '_self', '_blank', '_parent', '_top')linkOnPaste flowsms, ftp) and restricting to a single protocolquickToolbarSettings.link) with Open, Copy, Edit, Remove, separator, and CustomToolbarItemtoolbarSettings.itemClickedCtrl+K (Windows) / ⌘ K (macOS) keyboard shortcutLinkCommandBuilder, LinkSettings, LinkSettingsModel, LinkQuickToolbarItem (under the ## API references section of this file)📄 Read: references/lists.md
listSettings.numberFormatListItems and listSettings.bulletFormatListItemslistSettings.checklistType ('Square' default, 'Circle')'decimal', 'lower-alpha', 'upper-alpha', 'lower-roman', 'upper-roman', 'lower-greek')'disc', 'circle', 'square')numberedList, bulletList, toggleTaskList, setListStyleListCommandBuilder, ListStyleCommandBuilder, ChecklistCommandBuilder, CustomFormatListItem, ListSettings, BulletFormatList, NumberFormatList, BulletFormatListItem, NumberFormatListItem, ListSettingsModel (under the ## API references section of this file)📄 Read: references/features.md
slashCommandSettings.enable (default disabled)RichTextEditorUI.Inject(SlashCommand) module injectionParagraph, Heading 1–Heading 4, NumberedList, BulletList, Checklist, Blockquote, Info, Warning, Error, Success, Note, Collapsible Paragraph, Collapsible Heading 1–Collapsible Heading 4, Link, Image, Tableitems array: restrict, reorder, add custom itemspopupWidth, popupHeightISlashCommandItem (text, command, iconCss, description, type)itemSelect event with SlashCommandItemSelectArgs (isInteracted, item, itemData, originalEvent, cancel)ISlashCommandItem, SlashCommandItemSelectArgs, SlashCommandItems, SlashCommandSettings, SlashCommandType, SlashCommandSettingsModel (under the ## API references section of this file)📄 Read: references/editor-events.md
change event with ChangeEventArgs (action, affectedNodes)created eventdestroyed eventfocus and blur eventsactionBegin eventactionComplete eventChangeEventArgs, UpdatedToolbarStatusEventArgs, itemClickEventArgs, BeforeDialogCloseEventArgs, BeforeDialogOpenEventArgs, BeforePopupCloseEventArgs, BeforePopupOpenEventArgs (under the ## API references section of this file)📄 Read: references/editor-methods.md
save — persist current editor content into the value propertyfocusIn — move focus into the editable areafocusOut — remove focus from the editable areagetDocument — return the current editor documentgetHtml — return the current editor content as an HTML stringgetText — return the current editor content as plain textupdateToolbarItems — apply a batch of toolbar item updatesimport { RichTextEditorUI } from '@syncfusion/ej2-richtexteditor-ui';
const editor: RichTextEditorUI = new RichTextEditorUI({
value: '<p>Getting started with the Rich Text Editor UI.</p>',
valueFormat: 'html',
toolbarSettings: {
items: ['Bold', 'Italic', 'Underline', '|', 'Formats', 'Alignment', '|', 'Link', 'Image', 'Table', '|', 'Undo', 'Redo']
},
imageSettings: {
allowedTypes: ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.webp'],
maxFileSize: 30000000,
uploadUrl: 'https://services.syncfusion.com/js/production/api/RichTextEditor/SaveFile',
imageUrl: 'https://services.syncfusion.com/js/production/RichTextEditor/'
},
placeholder: 'Type something.'
});
editor.appendTo('#editor');
src/index.html)<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Syncfusion JavaScript Modern Rich Text Editor</title>
</head>
<body>
<div id="editor"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
src/style.css)@import '../node_modules/@syncfusion/ej2-tailwind3-theme/styles/richtexteditor-ui/index.css';
Get the structured document:
const doc = editor.getDocument();
Serialize to HTML:
const html: string = editor.getHtml();
Get plain text:
const text: string = editor.getText();
Persist the current content into value:
editor.save();
import { RichTextEditorUI } from '@syncfusion/ej2-richtexteditor-ui';
const editor: RichTextEditorUI = new RichTextEditorUI({
toolbarSettings: {
items: ['Bold', 'Italic', 'Underline', 'Strikethrough', '|', 'Formats', 'Alignment', 'BulletList', 'NumberedList', '|', 'Link', 'Image', 'Table', '|', 'Undo', 'Redo'],
type: 'MultiRow',
position: 'Top',
enableFloating: true,
floatingOffset: 0
}
});
editor.appendTo('#editor');
editor.commands().bold().apply();
editor.commands().italic().apply();
editor.commands().fontColor().color('#DC2626').apply();
editor.commands().fontSize().size('16px').apply();
editor.commands().clearFormat().apply();
import { RichTextEditorUI } from '@syncfusion/ej2-richtexteditor-ui';
const editor: RichTextEditorUI = new RichTextEditorUI({
toolbarSettings: {
items: ['Bold', 'Italic', 'Underline', '|', 'Link', 'Image', 'Table', 'CodeBlock', '|', 'Undo', 'Redo'],
keyBindings: {
link: 'ctrl+alt+k',
image: 'ctrl+alt+i',
'code-block': 'ctrl+shift+c'
}
}
});
editor.appendTo('#editor');
import { RichTextEditorUI, SlashCommand } from '@syncfusion/ej2-richtexteditor-ui';
RichTextEditorUI.Inject(SlashCommand);
const editor: RichTextEditorUI = new RichTextEditorUI({
slashCommandSettings: {
enable: true,
items: ['Paragraph', 'Heading 1', 'Heading 2', 'Heading 3', 'BulletList', 'NumberedList']
}
});
editor.appendTo('#editor');
import { RichTextEditorUI, ChangeEventArgs } from '@syncfusion/ej2-richtexteditor-ui';
const editor: RichTextEditorUI = new RichTextEditorUI({
change: (args: ChangeEventArgs) => {
console.log('Action:', args.action);
}
});
editor.appendTo('#editor');
new RichTextEditorUI({...}).editor.appendTo('#editor').editor.destroy() (safe to call more than once).valueFormat: 'json' is the default — the editor stores content using its structured document model.valueFormat: 'html' stores content as an HTML string.editor.getDocument() returns the structured document; editor.getHtml() returns the HTML string.toolbarSettings.items configures the buttons that sit at the top or bottom of the editor.quickToolbarSettings configures the contextual popups for text, image, link, and table selections.slashCommandSettings.items configures the /-triggered popup.editor.commands().<builder>().<setter>().apply().actionBegin / actionComplete events for any source — toolbar click, slash command, or programmatic invocation.Some features are standalone modules that must be injected before the editor is constructed:
RichTextEditorUI.Inject(SlashCommand) enables the slash-command popup.The injection is a one-time, side-effect-only call. Subsequent new RichTextEditorUI({...}) calls do not need to re-inject.
| Option | Type | Default | Purpose |
|---|---|---|---|
value | string | — | Initial HTML content. Use with valueFormat: 'html'. |
valueFormat | 'json' | 'html' | 'json' | Storage format for value. |
width | string | number | — | Editor width (CSS string or numeric pixels). |
placeholder | string | — | Instructional text shown when the editor is empty. |
toolbarSettings | ToolbarSettings | — | Toolbar items, layout, floating behavior, click handlers, and key bindings. |
quickToolbarSettings | QuickToolbarSettings | — | Quick-toolbar popups for text, image, link, and table selections. |
slashCommandSettings | SlashCommandSettings | — | Slash-command popup items, size, and selection handler. |
fontFamily | FontFamilySettings | — | items array of { text, value } for the font-family dropdown. |
fontSize | FontSizeSettings | — | items array of { text, value } for the font-size dropdown. |
fontColor | ColorSettings | — | default, mode, columns, modeSwitcher. |
backgroundColor | ColorSettings | — | default, mode, columns, modeSwitcher. |
imageSettings | ImageSettings | — | allowedTypes, maxFileSize, saveFormat, uploadUrl, imageUrl, removeUrl, dimension, resize. |
linkSettings | LinkSettings | — | linkOnPaste, defaultTarget, autoPrependProtocol, defaultProtocol, allowedProtocols. |
tableSettings | TableSettings | — | resize toggle. |
listSettings | ListSettings | — | numberFormatListItems, bulletFormatListItems, checklistType. |
| Event | Purpose |
|---|---|
change | Called when editor content changes (insertion, deletion, formatting). |
created | Called when the editor is fully initialized and rendered. |
destroyed | Called when the editor is destroyed. |
focus | Called when the editor receives focus. |
blur | Called when the editor loses focus. |
actionBegin | Called before an editor action executes. |
actionComplete | Called after an editor action completes. |
toolbarSettings.itemClicked | Called whenever any toolbar button is clicked (main or quick toolbar). |
toolbarSettings.updatedToolbarStatus | Called after the toolbar syncs its visual state with the current selection. |
slashCommandSettings.itemSelect | Called when the user picks an item from the slash-command popup. |
references/block-quote.md (opens in a new tab)references/callout.md (opens in a new tab)references/codeblock.md (opens in a new tab)references/collapsible.md (opens in a new tab)references/editor-events.md (opens in a new tab)references/editor-methods.md (opens in a new tab)references/features.md (opens in a new tab)references/file-upload.md (opens in a new tab)references/formatting.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/image.md (opens in a new tab)references/links.md (opens in a new tab)references/lists.md (opens in a new tab)references/table.md (opens in a new tab)references/toolbar.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-javascriptOther plugins' skills for the same job
67 skills in this plugin
/syncfusion-javascript-3d-chartCreate interactive 3D charts in Syncfusion TypeScript and JavaScript. Immediately use this skill when user needs to build 3D visualizations, render 3D column/bar charts, configure 3D rotation and depth, visualize data in three dimensions, customize 3D chart appearance, handle 3D interactions, or implement advanced 3D features. Works with TypeScript (webpack/module-based) and JavaScript (CDN/ES5)./syncfusion-javascript-accordionBuild collapsible navigation panels with the Syncfusion TypeScript Accordion component. Use this skill when implementing vertical accordion menus, expanding/collapsing content panels, multi-step wizards, data-driven panels with dynamic content, tabbed navigation alternatives, or nested hierarchical content structures. Covers initialization, expand modes, animations, icons, templates, styling, data binding, and advanced use cases like form wizards./syncfusion-javascript-accumulation-chartImplements Syncfusion JavaScript accumulation charts (Pie, Doughnut, Funnel, Pyramid) for proportional and percentage-based visualizations. Use when displaying categorical or proportional data. Covers legend and label configuration, interactivity, accessibility, and customization. Works with TypeScript (modules) and JavaScript (CDN/ES5).