轻舟翻译TOAST UI editor(tui.editor)独家中文文档!
该编辑器允许你使用Markdown或所见即所得模式编辑文本,并且支持预法高亮,同步滚动,实时预览,图标等功能。
The Editor allows you to edit your Markdown documents using text or WYSIWYG and comes with Syntax Highlighting, Scroll-Sync, Live Preview, and Chart features.
TOAST UI编辑器提供Markdown和所见即所得两种模式,可以在任何时候自由切换。
今天CommonMark规范
是Markdown事实上的标准。此外GFM (GitHub风格的Markdown预法) 式另一个流行的规范,它也是基于CommonMark,它由Github维护,这是最常用的Markdown语法。TOAST UI Editor符合它两者的规范,使用TOAST UI Editor可以轻松打开和创建Markdown文档。
实时预览:编辑 Markdown,同时立即呈现处HTML,所见即所得。
同步滚动:在 Markdown编辑框和预览框之间同步滚动,你不需要单独滚动浏览。
语法高亮:可以立即检查分解标记的语法。
表格:通过表格的上下文菜单,可以添加或删除表格的列或行,还可以在单元格中排列文本。
自定义块编辑器:可以通过内部编辑器编辑自定义块区域。
复制和粘贴:粘贴来自浏览器、屏幕截图、excel、powerpoint等的任何内容。
2018年开源 ,在github获得 10k ⭐️ Stars.
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
name | type | description |
---|---|---|
el | HTMLElement |
container element |
- Wrappers
- [x] React
- [x] Vue
- [ ] Ember