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.
Name | Description |
---|---|
@toast-ui/editor | Plain JavaScript component |
Name | Description |
---|---|
@toast-ui/react-editor | React wrapper component |
@toast-ui/vue-editor | Vue wrapper component |
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 |
TOAST UI Editor providesMarkdown mode andWYSIWYG mode. Depending on the type of use you want like production ofMarkdown or maybe to just edit theMarkdown. The TOAST UI Editor can be helpful for both the usage. It offersMarkdown mode andWYSIWYG mode, which can be switched any point in time.
CommonMark + GFM Specifications
TodayCommonMark is the de-factoMarkdown standard.GFM (GitHub Flavored Markdown) is another popular specification based onCommonMark - maintained byGitHub, which is theMarkdown mostly used. TOAST UI Editor follows bothCommonMark andGFM 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.
CommonMark and GFM are great, but we often need more abstraction. The TOAST UI Editor comes with powerfulPlugins in compliance with the Markdown syntax.
Five basic plugins are provided as follows, and can be downloaded and used with npm.
chart
: A code block marked as a 'chart' will renderTOAST UI Chart.code-syntax-highlight
: Highlight the code block area corresponding to the language provided byPrism.js.color-syntax
:table-merged-cell
:uml
: A code block marked as an 'uml' will renderUML diagrams.RegExp
with the widget node.Here are moreexamples and play with TOAST UI Editor!
![]() | ![]() | ![]() | ![]() | ![]() |
---|---|---|---|---|
Yes | 11+ | Yes | Yes | Yes |
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.
Forkmain
branch into your personal repository. Clone it to local computer. Install node modules. Before starting development, you should check to haveany 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 usesnpm workspace, so you need to set the environment based onnpm7. If subversion is used, dependencies must be installed by moving direct paths per package.
You can see your code is reflected as soon as you saving the codes by running a server. Don't miss adding test cases and then make green rights.
snowpack allows you to run a development server without bundling.
$ npm run serve editor
If testing of legacy browsers is required, the development server can still be run using awebpack.
$ npm run serve:ie editor
$ npm test editor
Before creating a PR, test and check for any errors. If there are no errors, then commit and push.
For more information, please refer to the Contributing section.