OptionalheightOptionalmin200px by default
OptionalinitialOptionalpreviewthe markdown preview in a tab or next to the editor; tab by default
Optionalinitialmarkdown by default
OptionaleventsOptionalhooksOptionallanguagethe UI language, whose locale must be imported first; en-US by default
Optionalusetrue by default
Optionaltoolbargroups of toolbar items, see docs/toolbar.md
Optionalhidehides the Markdown/WYSIWYG tabs
Optionalpluginsplugins, or [plugin, options] pairs
Optionalextendedlinks URLs written without <>, as GFM does, or with a custom parser
OptionalplaceholderOptionallinkadded to the links rendered from markdown
OptionalcustomOptionalcustomOptionalreferenceresolves link reference definitions ([label]: url)
Optionalcustomreplaces the default, DOMPurify-based sanitizer
Optionalpreviewhighlights the preview element at the cursor; true by default
Optionalcursorhighlights the cursor line in the markdown editor; true by default
Optionalfrontreads a --- block at the start as front matter
Optionalwidgetsee docs/widget.md
Optionalthemelight, dark or a custom theme, see docs/theming.md; light by default
Optionalautofocustrue by default
Optionalviewercreates a Viewer instead, with EditorCore.factory()
Optionalstripremoves inline styles from HTML pasted into the WYSIWYG editor
OptionaleditOptionaltoolbarwrap wraps the toolbar instead of moving the items that don't fit into a "More" menu
CSS height, toolbar included, e.g.
300px,100%orauto;300pxby default