Skip to content

Features ​

Everything comes from one import — ai-sparkwrite-editor (React) or ai-sparkwrite-editor/vue (Vue) — or all at once through RichTextKit. Register the extension in useEditor, place the control inside RichTextProvider. The Import column lists the per-feature subpath, an equivalent for bundlers that do not tree-shake. Options are passed with .configure({ ... }); every extension also accepts the shared toolbar, divider, spacer and shortcutKeys options.

Core ​

FeatureImportControlNotable options
RichTextKitai-sparkwrite-editor, ai-sparkwrite-editor/vueRichTextKit, RichTextKitToolbar, RichTextKitMenusone key per feature: false, or the extension's options
Provider, toolbar primitivesai-sparkwrite-editorRichTextProvider, RichTextToolbar, RichTextToolbarMore, RichTextToolbarButton …see Customization
Framework-agnostic coreai-sparkwrite-editor/core—extensions, paste rules, recorder, AI transport, translations; no React — see Frameworks
Vue 3 UIai-sparkwrite-editor/vueRichTextProvider, toolbar primitives, controls, bubble menus, dialogs, AI panel and composer, node viewssame stylesheet as the React controls; see Frameworks
Historyai-sparkwrite-editor/historyRichTextHistory (undo/redo)depth
Headingai-sparkwrite-editor/headingRichTextHeadinglevels; clicks in the gap above a block go to that block
Bold, Italic, Underline, Strike, Codeai-sparkwrite-editor/bold …RichTextBold …—
MoreMarkai-sparkwrite-editor/moremarkRichTextMoreMark (superscript, subscript)—
Color, Highlightai-sparkwrite-editor/color, ai-sparkwrite-editor/highlightRichTextColor, RichTextHighlightcolors
FontFamilyai-sparkwrite-editor/fontfamilyRichTextFontFamilyfontFamilyList; CJK, Devanagari, Bengali stacks shown by locale and document
FontSizeai-sparkwrite-editor/fontsizeRichTextFontSize (compact)fontSizes
LineHeightai-sparkwrite-editor/lineheightRichTextLineHeightlineHeights
TextAlignai-sparkwrite-editor/textalignRichTextTextAlignalignments, types
TextDirectionai-sparkwrite-editor/textdirectionRichTextTextDirectiondirections
Indentai-sparkwrite-editor/indentRichTextIndentminIndent, maxIndent
Clearai-sparkwrite-editor/clearRichTextClear (clear formatting)—
FormatPainterai-sparkwrite-editor/formatpainterRichTextFormatPainter—

Blocks ​

FeatureImportControlNotable options
BulletList, OrderedList, TaskListai-sparkwrite-editor/bulletlist …RichTextBulletList …—
Blockquoteai-sparkwrite-editor/blockquoteRichTextBlockquote—
CodeBlockai-sparkwrite-editor/codeblockRichTextCodeBlocklanguage picker node view, detectLanguageFn, GitHub light/dark palette; exports guessLanguage
Tableai-sparkwrite-editor/tableRichTextTable, RichTextBubbleTablerounded corners, insertParagraphAfterTable (click beside, ⌘/Ctrl+Enter, context menu)
Dividerai-sparkwrite-editor/dividerRichTextDividervariants (9 built in, editable text, numbered), defaultVariant, renderDivider, parseRules
Columnai-sparkwrite-editor/columnRichTextColumninsertColumns({ cols })
Calloutai-sparkwrite-editor/calloutRichTextCallout, RichTextBubbleCalloutnote, tip, important, warning, caution
Noticeai-sparkwrite-editor/noticeRichTextNotice, RichTextBubbleNoticeinfo, success, warning, tip — a coloured box of editable blocks
Detailsai-sparkwrite-editor/detailsRichTextDetailscollapsible block
TableOfContentsai-sparkwrite-editor/tableofcontentsRichTextTableOfContentslive outline node
HorizontalRuleai-sparkwrite-editor/horizontalruleRichTextHorizontalRulesuperseded by Divider; register one or the other

Media and embeds ​

FeatureImportControlNotable options
Imageai-sparkwrite-editor/imageRichTextImage, RichTextBubbleImageupload, acceptMimes, maxSize, resourceImage; cropping, captions, rotate; getImageChanges / markImagesSaved for deleted uploads
ImageGifai-sparkwrite-editor/imagegifRichTextImageGifGIPHY_API_KEY
Videoai-sparkwrite-editor/videoRichTextVideo, RichTextBubbleVideoupload, resourceVideo
Attachmentai-sparkwrite-editor/attachmentRichTextAttachmentupload
Embedai-sparkwrite-editor/iframeRichTextIframe, RichTextBubbleIframeYouTube, Vimeo, Bilibili, Loom, Spotify, Google Maps, Figma, Canva, Miro, CodePen, Gist, Google Docs/Sheets/Slides/Forms, Airtable… 35 services, or any page
Twitterai-sparkwrite-editor/twitterRichTextTwitterx.com and twitter.com links
Katexai-sparkwrite-editor/katexRichTextKatex, RichTextBubbleKatexloadKatex (lazy); AI "describe the formula"
Mermaidai-sparkwrite-editor/mermaidRichTextMermaid, RichTextBubbleMermaidAI "describe the diagram"
Excalidrawai-sparkwrite-editor/excalidrawRichTextExcalidraw, RichTextBubbleExcalidraw—
Drawerai-sparkwrite-editor/drawerRichTextDrawer, RichTextBubbleDrawerfreehand drawing
Emojiai-sparkwrite-editor/emojiRichTextEmojilazy emoji data
Mentionai-sparkwrite-editor/mention—suggestion
Linkai-sparkwrite-editor/linkRichTextLink, RichTextBubbleLink (hover)openOnClick, autolink

Writing aids ​

FeatureImportControlNotable options
AIai-sparkwrite-editor/aiRichTextAI (toolbar button), RichTextAIComposer (dock under the editor), RichTextAIImprove (selection menu), /ai slash entries, Space on an empty lineendpoint (one URL on your backend), generate(request, onChunk), stream, spaceTrigger, documentContext, translateLanguages, renderResult, components.Panel; writeWithAI streams Markdown into the document as real nodes
AI autocompleteai-sparkwrite-editor/ai (AIAutocomplete)ghost text after a pause; Tab accepts, Escape dismissesenabled, delay, minChars, contextChars, maxTokens, prompt; toggleAIAutocomplete()
SlashCommandai-sparkwrite-editor/slashcommandSlashCommandListcommandList, hiddenUntilSearched
RichPasteai-sparkwrite-editor/richpaste—wordLists, codeBlocks, detectLanguage
MarkdownPasteai-sparkwrite-editor/markdownpaste—pasted markdown text becomes content
SearchAndReplaceai-sparkwrite-editor/searchandreplaceRichTextSearchAndReplace—
ShortMessageai-sparkwrite-editor/shortmessage—shortcut, messages (text expansion)
Recorderai-sparkwrite-editor/recorder—autoStart, recordSelection, onEntry; replayRecording
CodeViewai-sparkwrite-editor/codeviewRichTextCodeViewedit the HTML source

Import and export ​

FeatureImportControlNotable options
ImportWordai-sparkwrite-editor/importwordRichTextImportWordupload for embedded images
ExportWordai-sparkwrite-editor/exportwordRichTextExportWord—
ExportPdfai-sparkwrite-editor/exportpdfRichTextExportPdfprints with the editor stylesheet
ExportMarkdownai-sparkwrite-editor/exportmarkdownRichTextExportMarkdownnodes without a markdown form fall back to HTML

Bubble menus ​

Imported individually from ai-sparkwrite-editor/bubble/<name>: text, table, media (image), video, link, callout, notice, drawer, excalidraw, iframe, katex, mermaid, drag-handle. See Bubble menus.

Languages ​

ai-sparkwrite-editor/locales/<code> for en, zh_CN, hi, es, fr, bn, pt_BR, ru, id, de, ja, tr, vi, ko, it, hu_HU, fi. See Internationalization.

Theme ​

ai-sparkwrite-editor/theme exports themeActions (setTheme, setBorderRadius, accent colour) and CODE_THEME. Styles come from ai-sparkwrite-editor/style.css; the root element carries the ai-sparkwrite-editor class.

Made with ❤️