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
| Option | Default | What 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' |
resizable | true | Drag handle to resize |
readOnly | false | Read-only (the toolbar stays, but commands that change content do nothing) |
maxLength | - | Character limit; the status bar turns red and a maxlength event fires |
statusbar | true | Character and byte count |
enterMode | 'p' | 'br': Enter breaks the line (<br>) and Shift+Enter starts a paragraph. Lists and headings keep their Enter |
confirmLeave | false | Ask before leaving the page with unsaved changes (isDirty() · markClean()) |
revisions | this session | true or { key, max: 20, interval: 60000 } — keep earlier versions in the browser to compare and restore |
dragHandle | true | Grip left of each block to drag it (hidden on touch screens; Alt+Shift+↑/↓ always works) |
imageTray | false | Photo strip under the editor: jump to, reorder by dragging, delete, put back removed uploads |
| Option | Default | What 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) |
toolbarSticky | true | Keep the toolbar visible while scrolling |
bubbleToolbar | true | Small floating toolbar over a selection (off on touch devices) |
theme | 'light' | 'light' | 'dark' | 'auto' |
language | page 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
| Option | Default | What it does |
|---|
fontFamilies | Malgun Gothic, Nanum Gothic, Pretendard … | Font list |
fontSizes | 8 9 10 11 12 14 16 18 20 24 28 36 | Font size list |
fontSizeUnit | 'pt' | 'pt' or 'px' |
lineHeights | 100 130 160 180 200 | Line height list (%) |
colors | built-in palette | Text and highlight palette |
Typing helpers
| Option | Default | What it does |
|---|
markdownShortcuts | true | ## , - , **bold** and friends |
slashMenu | true | Command menu on / in an empty line |
autosave | false | true 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) }[] |
autoLink | true | Typed web and e-mail addresses become links after a space or Enter (Ctrl+Z right away undoes it) |
autoReplace | true | (c)→©, ->→→, (주)→㈜ and more. An object adds rules; '' turns one off |
markdownPaste | true | Pasted 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
| Option | Default | What 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 |
responsiveOutput | true | Saved images get max-width:100%; height:auto and their natural size, tables a box that scrolls sideways, so posts fit phones without your CSS |
lazyImages | true | Saved 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 / allowedAttributes | built-in allow-list | Override 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
| Option | Default | What it does |
|---|
plugins | - | See Plugins |
telemetry | true | Once a day, report only the domain and version to 82editor.com. false turns it off |
onChange / onReady / onFocus / onBlur | - | Event shortcuts (Events) |