Skip to content

Interface: AdvancedProps ​

Props of <Advanced>: the editor plus KitAdvancedOptions.

Extends ​

Properties ​

PropertyTypeDescriptionInherited from
accept?readonly string[]Accepted image types for uploads. Default PNG, JPEG, GIF, WebP (never SVG).KitAdvancedOptions.accept
bubble?booleanThe formatting bubble next to selected text. Default: on, except on touch screens.KitAdvancedOptions.bubble
editorEditorThe editor to control. A different editor remounts the advanced UI.-
idPrefix?stringPrefix for element ids, needed when several editors share a page. Default: generated.KitAdvancedOptions.idPrefix
maxSize?numberLargest upload in bytes. Default 10 MB.KitAdvancedOptions.maxSize
mentions?(query) => | readonly KitMention[] | Promise<readonly KitMention[]>People for @ mentions, for what was typed after @. May be async. Off when left out.KitAdvancedOptions.mentions
messages?Partial<Messages>UI texts, e.g. uz from @writeon/ui/locales/uz. Default English.KitAdvancedOptions.messages
onUploadError?(error) => voidCalled for every refused or failed upload, after the kit has announced it.KitAdvancedOptions.onUploadError
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.KitAdvancedOptions.slash
toolbar?booleanAdd image, table, task list and code block buttons to the kit toolbar. Default true.KitAdvancedOptions.toolbar
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.KitAdvancedOptions.upload