TuiEditor编辑器

移植于https://ui.toast.com/tui-editor


Options参数

参数名类型描述默认值
HeightstringEditor's height style value. Height is applied as border-box ex) '300px', '100%', 'auto'
MinHeightstringEditor's min-height style value in pixel ex) '300px'
PreviewStylestringMarkdown editor's preview style (tab, vertical)tab
InitialEditTypestringInitial editor type (markdown, wysiwyg)markdown
Languagestringlanguagezh-CN
PreviewHighlightbool?Highlight a preview element corresponds to the cursor position in the markdwon editortrue
UseCommandShortcutbool?whether use keyboard shortcuts to perform commandstrue
UseDefaultHTMLSanitizerbool?use default htmlSanitizertrue
UsageStatisticsbool?send hostname to google analyticsfalse
ToolbarItemsIEnumerable<string>toolbar items.[heading,bold,italic,strike,divider,hr,quote,divider,ul,ol,task,indent,outdent,divider,table,image,link,divider,code,codeblock]
Heightbool
HideModeSwitchbool?hide mode switch tab bartrue
PlaceholderstringThe placeholder text of the editable element.
FrontMatterbool?whether use the front mattertrue
Viewerbool?是否是预览器false

文档