Gathering detailed insights and metrics for @toast-ui/editor
Gathering detailed insights and metrics for @toast-ui/editor
Gathering detailed insights and metrics for @toast-ui/editor
Gathering detailed insights and metrics for @toast-ui/editor
🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
npm install @toast-ui/editor
Typescript
Module System
Node Version
NPM Version
TypeScript (85.81%)
CSS (4.99%)
JavaScript (4.96%)
HTML (4.13%)
Vue (0.11%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
17,601 Stars
361 Commits
1,814 Forks
227 Watchers
56 Branches
115 Contributors
Updated on Jul 15, 2025
Latest Version
3.2.2
Package Id
@toast-ui/editor@3.2.2
Unpacked Size
3.12 MB
Size
809.55 kB
File Count
69
NPM Version
7.7.6
Node Version
15.14.0
Published on
Feb 17, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
TOAST UI products apply Google Analytics (GA) to collect statistics on the use of open source, in order to identify how widely TOAST UI Editor is used throughout the world. It also serves as important index to determine the future course of projects. location.hostname
(e.g. ui.toast.com) is to be collected and the sole purpose is nothing but to measure statistics on the usage.
To disable GA, use the following usageStatistics
option when creating the instance.
1const options = { 2 // ... 3 usageStatistics: false 4}; 5 6const editor = new Editor(options);
You can also see the older versions of API page on the releases page.
TOAST UI products can be used by using the package manager or downloading the source directly. However, we highly recommend using the package manager.
TOAST UI products are registered in two package managers, npm. You can conveniently install it using the commands provided by the package manager. When using npm, be sure to use it in the environment Node.js is installed.
1$ npm install --save @toast-ui/editor # Latest Version 2$ npm install --save @toast-ui/editor@<version> # Specific Version
TOAST UI products are available over the CDN powered by NHN Cloud.
You can use the CDN as below.
1... 2<body> 3 ... 4 <script src="https://uicdn.toast.com/editor/latest/toastui-editor-all.min.js"></script> 5</body> 6...
If you want to use a specific version, use the tag name instead of latest
in the url's path.
The CDN directory has the following structure:
- uicdn.toast.com/
├─ editor/
│ ├─ latest/
│ │ ├─ toastui-editor-all.js
│ │ ├─ toastui-editor-all.min.js
│ │ ├─ toastui-editor-viewer.js
│ │ ├─ toastui-editor-viewer.min.js
│ │ ├─ toastui-editor.css
│ │ ├─ toastui-editor.min.css
│ │ ├─ toastui-editor-viewer.css
│ │ ├─ toastui-editor-viewer.min.css
│ │ ├─ toastui-editor-only.css
│ │ ├─ toastui-editor-only.min.css
│ │ └─ theme/
│ │ ├─ toastui-editor-dark.css
│ │ └─ toastui-editor-dark.min.css
│ │ └─ i18n/
│ │ └─ ...
│ ├─ 2.0.0/
│ │ └─ ...
First, you need to add the container element where TOAST UI Editor (henceforth referred to as 'Editor') will be created.
1... 2<body> 3 <div id="editor"></div> 4</body> 5...
The editor can be used by creating an instance with the constructor function. To get the constructor function, you should import the module using one of the following ways depending on your environment.
1import Editor from '@toast-ui/editor';
1const Editor = require('@toast-ui/editor');
1const Editor = toastui.Editor;
Then, you need to add the CSS files needed for the Editor. Import CSS files in node environment, and add it to html file when using CDN.
1import '@toast-ui/editor/dist/toastui-editor.css'; // Editor's Style
1... 2<head> 3 ... 4 <!-- Editor's Style --> 5 <link rel="stylesheet" href="https://uicdn.toast.com/editor/latest/toastui-editor.min.css" /> 6</head> 7...
Finally you can create an instance with options and call various API after creating an instance.
1const editor = new Editor({ 2 el: document.querySelector('#editor'), 3 height: '500px', 4 initialEditType: 'markdown', 5 previewStyle: 'vertical' 6}); 7 8editor.getMarkdown();
height
: Height in string or auto ex) 300px
| auto
initialEditType
: Initial type to show markdown
| wysiwyg
initialValue
: Initial value. Set Markdown stringpreviewStyle
: Preview style of Markdown mode tab
| vertical
usageStatistics
: Let us know the hostname. We want to learn from you how you are using the Editor. You are free to disable it. true
| false
Find out more options here.
0/10
Summary
Cross-Site Scripting in @toast-ui/editor
Affected Versions
< 2.2.0
Patched Versions
2.2.0
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 9/30 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
92 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More