Skip to content

Interface: KitAdvancedOptions ​

Options for mountAdvanced().

Extended by ​

Properties ​

PropertyTypeDescription
accept?readonly string[]Accepted image types for uploads. Default PNG, JPEG, GIF, WebP (never SVG).
bubble?booleanThe formatting bubble next to selected text. Default: on, except on touch screens.
idPrefix?stringPrefix for element ids, needed when several editors share a page. Default: generated.
maxSize?numberLargest upload in bytes. Default 10 MB.
mentions?(query) => | readonly KitMention[] | Promise<readonly KitMention[]>People for @ mentions, for what was typed after @. May be async. Off when left out.
messages?Partial<Messages>UI texts, e.g. uz from @writeon/ui/locales/uz. Default English.
onUploadError?(error) => voidCalled for every refused or failed upload, after the kit has announced it.
slash?| boolean | ((defaults) => readonly SuggestionItem[])The / command menu. true (default) offers headings, lists, quote, code block, table and image; pass a function to change that list.
toolbar?booleanAdd image, table, task list and code block buttons to the kit toolbar. Default true.
upload?UploadFnYour image upload (see fetchUploader() / presignedUploader() in @writeon/advanced). Turns on drop, paste and "Upload from device". Without it, images are added by address only.