tui.editor README

The project's README from github.com/nhn/tui.editor. As one markdown file: README.md.

TOAST UI Editor

GFM Markdown and WYSIWYG Editor - Productive and Extensible

github release version npm version license PRs welcome code with hearth by NHN Cloud

🚩 Table of Contents

📦 Packages

TOAST UI Editor

Name Description
@toast-ui/editor Plain JavaScript component

TOAST UI Editor's Wrappers

Name Description
@toast-ui/react-editor React wrapper component
@toast-ui/vue-editor Vue wrapper component

TOAST UI Editor's Plugins

Name Description
@toast-ui/editor-plugin-chart Plugin to render chart
@toast-ui/editor-plugin-code-syntax-highlight Plugin to highlight code syntax
@toast-ui/editor-plugin-color-syntax Plugin to color editing text
@toast-ui/editor-plugin-table-merged-cell Plugin to merge table columns
@toast-ui/editor-plugin-uml Plugin to render UML

🤖 Why TOAST UI Editor?

TOAST UI Editor provides Markdown mode and WYSIWYG mode. Depending on the type of use you want like production of Markdown or maybe to just edit the Markdown. The TOAST UI Editor can be helpful for both the usage. It offers Markdown mode and WYSIWYG mode, which can be switched any point in time.

Productive Markdown Mode

markdown

CommonMark + GFM Specifications

Today CommonMark is the de-facto Markdown standard. GFM (GitHub Flavored Markdown) is another popular specification based on CommonMark - maintained by GitHub, which is the Markdown mostly used. TOAST UI Editor follows both CommonMark and GFM specifications. Write documents with ease using productive tools provided by TOAST UI Editor and you can easily open the produced document wherever the specifications are supported.

Easy WYSIWYG Mode

wysiwyg

UI

Use of Various Extended Functions - Plugins

plugin

CommonMark and GFM are great, but we often need more abstraction. The TOAST UI Editor comes with powerful Plugins in compliance with the Markdown syntax.

Five basic plugins are provided as follows, and can be downloaded and used with npm.

🎨 Features

🐾 Examples

Here are more examples and play with TOAST UI Editor!

🌏 Browser Support

Chrome Chrome IE Internet Explorer Edge Edge Safari Safari Firefox Firefox
Yes 11+ Yes Yes Yes

🔧 Pull Request Steps

TOAST UI products are open source, so you can create a pull request(PR) after you fix issues. Run npm scripts and develop yourself with the following process.

Setup

Fork main branch into your personal repository. Clone it to local computer. Install node modules. Before starting development, you should check if there are any errors.

$ git clone https://github.com/{your-personal-repo}/tui.editor.git
$ npm install
$ npm run build toastmark
$ npm run test editor

TOAST UI Editor uses npm workspace, so you need to set the environment based on npm7. If subversion is used, dependencies must be installed by moving direct paths per package.

Develop

You can see your code reflected as soon as you save the code by running a server. Don't miss adding test cases and then make green rights.

Run snowpack-dev-server

snowpack allows you to run a development server without bundling.

$ npm run serve editor

Run webpack-dev-server

If testing of legacy browsers is required, the development server can still be run using a webpack.

$ npm run serve:ie editor

Run test

$ npm test editor

Pull Request

Before uploading your PR, run test one last time to check if there are any errors. If it has no errors, commit and then push it!

For more information on PR's steps, please see links in the Contributing section.

💬 Contributing

🍞 TOAST UI Family

🚀 Used By

📜 License

This software is licensed under the MIT © NHN Cloud.

tui.editor (nhn/tui.editor)

Searching Database…

18K ·GitHub
archived
这是什么?TOAST UI Editor 是一个开源的网页 Markdown 编辑器,同时提供 Markdown 模式和所见即所得模式,并可通过插件扩展图表、UML 和代码高亮等功能。
它是框架、库,还是现成的应用?它是一个前端组件库,而不是应用:核心是纯 JavaScript 的 @toast-ui/editor 包,另外还有 React 和 Vue 的官方封装。
怎么把它加到我的项目里?从 npm 安装 @toast-ui/editor,或者使用 @toast-ui/react-editor 和 @toast-ui/vue-editor 这两个封装;五个官方插件也都可以用同样的方式通过 npm 安装。
这个项目还在积极开发吗?不是了——GitHub 仓库已经归档并且只读,不会再有新功能和修复;已发布的 npm 包可以照常继续使用。
它支持哪些浏览器?支持 Chrome、Edge、Safari 和 Firefox,还包括 Internet Explorer 11 及以上版本。
我可以在商业项目里用吗?可以——它采用 MIT 许可证,可以免费商用;版权持有者是 NHN Cloud。
我能只用它来展示 Markdown,不需要编辑功能吗?可以——Viewer 模式只渲染 Markdown 内容,不提供编辑区域。
我能从 Excel 或 PowerPoint 等其他应用粘贴内容吗?可以——你可以粘贴浏览器里的任何内容、截图、Excel、PowerPoint 等,并在编辑器里继续编辑。
界面有其他语言版本吗?它自带 20 种界面翻译,包括韩语、日语、中文、德语、俄语和法语,还可以通过 i18n 配置添加你自己的翻译。
我能自己写插件吗?可以——除了五个官方插件之外,Custom Block 让你通过编写自己的解析逻辑来定义 Markdown 不支持的节点,官方还提供了创建自定义插件的示例。
Creator
nhn
Size
80.6 MB
Stars
18K
Age
11y
Commits · 90 Days