Interface: AdvancedProps
Props of <Advanced>: the editor plus KitAdvancedOptions.
Extends
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
accept? | readonly string[] | Accepted image types for uploads. Default PNG, JPEG, GIF, WebP (never SVG). | KitAdvancedOptions.accept |
bubble? | boolean | The formatting bubble next to selected text. Default: on, except on touch screens. | KitAdvancedOptions.bubble |
editor | Editor | The editor to control. A different editor remounts the advanced UI. | - |
idPrefix? | string | Prefix for element ids, needed when several editors share a page. Default: generated. | KitAdvancedOptions.idPrefix |
maxSize? | number | Largest 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) => void | Called 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? | boolean | Add image, table, task list and code block buttons to the kit toolbar. Default true. | KitAdvancedOptions.toolbar |
upload? | UploadFn | Your 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 |