editor

Docs › Reference

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'Start writing…'Hint shown while empty (defaults to the locale text)
height-Editing area height in px (scrolls when full). Unset: at least 300px (minHeight) and grows with content. 'auto' grows between minHeight and maxHeight
minHeight / maxHeight-Bounds for 'auto'
resizabletrueDrag handle to resize
readOnlyfalseRead-only (the toolbar stays, but commands that change content do nothing)
maxLength-Character limit; the status bar turns red and a maxlength event fires
statusbartrueCharacter and byte count
enterMode'p''br': Enter breaks the line (<br>) and Shift+Enter starts a paragraph. Lists and headings keep their Enter
confirmLeavefalseAsk before leaving the page with unsaved changes (isDirty() · markClean())
revisionsthis sessiontrue or { key, max: 20, interval: 60000 } — keep earlier versions in the browser to compare and restore
dragHandletrueGrip left of each block to drag it (hidden on touch screens; Alt+Shift+↑/↓ always works)
imageTrayfalsePhoto strip under the editor: jump to, reorder by dragging, delete, put back removed uploads

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')
toolbarDensity'normal''compact' packs toolbar icons and groups tightly (phones too, with 32px tap targets)
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) }[]
autoLinktrueTyped web and e-mail addresses become links after a space or Enter (Ctrl+Z right away undoes it)
autoReplacetrue(c)→©, ->→→, (주)→㈜ and more. An object adds rules; '' turns one off
markdownPastetruePasted Markdown (headings, lists, tables, code) becomes formatting; the message offers "paste as text"
styles-{ title, block?, inline?, className?, style? }[] — a style menu for your site's classes (only those classes survive in the saved HTML)
mergeTags-{ label, value: '{{name}}' }[] — chips while editing, plain text when saved, for your server to fill in. Typing one makes a chip too

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 (checked after shrinking)
imageResize{ maxWidth: 1600 }JPEG/PNG/WebP wider than this are shrunk in the browser before upload (quality 0.85). format: 'webp' uploads everything as WebP. false keeps originals. iPhone HEIC photos become JPEG where the browser can read them (Safari)
imageAccept'image/*,.heic,.heif'File picker types
responsiveOutputtrueSaved images get max-width:100%; height:auto and their natural size, tables a box that scrolls sideways, so posts fit phones without your CSS
lazyImagestrueSaved images after the first get loading="lazy"
linkRel-rel added to every saved web link, e.g. 'nofollow ugc' for visitors' posts
pasteMode'clean''clean' | 'plain' | 'keep'
allowedTags / allowedAttributesbuilt-in allow-listOverride the sanitizer rules
allowedIframeHosts-Extra iframe sites besides the video sites and Google Maps ('host' or 'host/path'). Dropped iframes are reported in a message
fetchLinkMeta-(url) => Promise<{ title, description?, image?, siteName? }> — title and picture for link cards (read the page on your server)
uploadFile-(file, { onProgress }) => Promise<url> — attachments; without it, uploadUrl is used
fileMaxSize / fileAccept-Largest attachment (bytes) and types (e.g. '.pdf,.hwp,.zip')

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)