editor

Options

Every option createEditor accepts.

Every option is optional. With none, you get the board toolbar, Korean UI (English when the page language is English) and the light theme.

Content and size

OptionDefaultWhat it does
value''Initial HTML
placeholder''Hint shown while empty
height300Editing area height in px, or 'auto' to grow with content
minHeight / maxHeight-Bounds for 'auto'
resizabletrueDrag handle to resize
readOnlyfalseRead-only (toolbar hidden)
maxLength-Character limit; the status bar turns red and a maxlength event fires
statusbartrueCharacter and byte count

Toolbar and UI

OptionDefaultWhat it does
toolbar'board''basic' | 'board' | 'full' | 'minimal', a list of items, or false. See Toolbar
toolbarMode'more'Fold overflowing buttons into a ⋯ menu ('more') or wrap ('wrap')
toolbarStickytrueKeep the toolbar visible while scrolling
bubbleToolbartrueSmall floating toolbar over a selection (off on touch devices)
theme'light''light' | 'dark' | 'auto'
languagepage lang'ko' | 'en' | 'ja' | 'zh'
locale-Override individual UI strings
contentStyle-CSS for the editing area, so it matches your view page

Fonts and paragraphs

OptionDefaultWhat it does
fontFamiliesMalgun Gothic, Nanum Gothic, Pretendard …Font list
fontSizes8 9 10 11 12 14 16 18 20 24 28 36Font size list
fontSizeUnit'pt''pt' or 'px'
lineHeights100 130 160 180 200Line height list (%)
colorsbuilt-in paletteText and highlight palette

Typing helpers

OptionDefaultWhat it does
markdownShortcutstrue## , - , **bold** and friends
slashMenutrueCommand menu on / in an empty line
autosavefalsetrue or { key, interval }. Drafts are kept in the browser and offered back
templates-{ title, html, description? }[]
mentions-{ trigger: '@', search(q) }
shortcuts-{ keys: 'Mod+Shift+K', run(editor) }[]

Images and paste

OptionDefaultWhat it does
uploadImage-(file, { onProgress }) => Promise<url>. Without it images are inlined as base64
uploadUrl-Upload by URL instead; the JSON reply carries url or location
uploadHeaders / uploadField- / 'file'Request headers and form field name
imageMaxSize-Maximum size in bytes
imageAccept'image/*'File picker types
pasteMode'clean''clean' | 'plain' | 'keep'
allowedTags / allowedAttributesbuilt-in allow-listOverride the sanitizer rules
allowedIframeHosts-Extra iframe hosts besides the built-in video sites

Other

OptionDefaultWhat it does
plugins-See Plugins
telemetrytrueOnce a day, report only the domain and version to 82editor.com. false turns it off
onChange / onReady / onFocus / onBlur-Event shortcuts (Events)