TOAST UI Editor Basic 示例发布验证

用 TOAST UI Editor Basic 示例内容验证 Decap 后台 Markdown 编辑和发布链路。

阅读 -- 次 参与评论

这篇文章用于验收管理后台接入 TOAST UI Editor 后,Markdown 正文可以被正常编辑、保存、发布和渲染。

以下内容来自 TOAST UI Editor 的 Basic 示例。

image

Awesome Editor!

It has been released as opensource in 2018 and has continually evolved to receive 10k GitHub Stars.

Create Instance

You can create an instance with the following code and use getHtml() and getMarkdown() of the Editor.

const editor = new Editor(options);

See the table below for default options

More API information can be found in the document

nametypedescription
elHTMLElementcontainer element

Features

  • CommonMark + GFM Specifications
  • Live Preview
  • Scroll Sync
  • Auto Indent
  • Syntax Highlight
  1. Markdown
  2. Preview

Support Wrappers

  • Wrappers
    1. React
    2. Vue
    3. Ember

评论

使用 GitHub 登录参与讨论。