@techie_doubts/editor-plugin-uml
v3.1.0
Published
TOAST UI Editor : UML Plugin
Maintainers
Readme
TOAST UI Editor : UML Plugin
This is a plugin of TOAST UI Editor to render UML.

🚩 Table of Contents
📁 Bundle File Structure
Files Distributed on npm
- node_modules/
- @techie_doubts/
- editor-plugin-uml/
- dist/
- td-editor-plugin-uml.jsFiles Distributed on CDN
The bundle files include all dependencies of this plugin.
- uicdn.toast.com/
- editor-plugin-uml/
- latest/
- td-editor-plugin-uml.js
- td-editor-plugin-uml.min.js📦 Usage npm
To use the plugin, @techie_doubts/tui.editor.2026 must be installed.
Ref. Getting Started
Install
$ npm install @techie_doubts/editor-plugin-umlImport Plugin
ES Modules
import uml from '@techie_doubts/editor-plugin-uml';CommonJS
const uml = require('@techie_doubts/editor-plugin-uml');Create Instance
Basic
import Editor from '@techie_doubts/tui.editor.2026';
import uml from '@techie_doubts/editor-plugin-uml';
const editor = new Editor({
// ...
plugins: [uml]
});With Viewer
import Viewer from '@techie_doubts/tui.editor.2026/dist/toustui-editor-viewer';
import uml from '@techie_doubts/editor-plugin-uml';
const viewer = new Viewer({
// ...
plugins: [uml]
});or
import Editor from '@techie_doubts/tui.editor.2026';
import uml from '@techie_doubts/editor-plugin-uml';
const viewer = Editor.factory({
// ...
plugins: [uml],
viewer: true
});🗂 Usage CDN
To use the plugin, the CDN files(CSS, Script) of @techie_doubts/tui.editor.2026 must be included.
Include Files
...
<body>
...
<!-- Editor -->
<script src="https://uicdn.toast.com/editor/latest/td-editor-all.min.js"></script>
<!-- Editor's Plugin -->
<script src="https://uicdn.toast.com/editor-plugin-uml/latest/td-editor-plugin-uml.min.js"></script>
...
</body>
...Create Instance
Basic
const { Editor } = toastui;
const { uml } = Editor.plugin;
const editor = new Editor({
// ...
plugins: [uml]
});With Viewer
const Viewer = toastui.Editor;
const { uml } = Viewer.plugin;
const viewer = new Viewer({
// ...
plugins: [uml]
});or
const { Editor } = toastui;
const { uml } = Editor.plugin;
const viewer = Editor.factory({
// ...
plugins: [uml],
viewer: true
});[Optional] Use Plugin with Options
The uml plugin can set options when used. Just add the plugin function and options related to the plugin to the array([pluginFn, pluginOptions]) and push them to the plugins option of the editor.
The following option is available in the uml plugin.
| Name | Type | Default Value | Description |
| ------------- | -------- | ----------------------------------------- | ------------------------- |
| rendererURL | string | 'https://www.plantuml.com/plantuml/png/' | URL of plant uml renderer |
// ...
import Editor from '@techie_doubts/tui.editor.2026';
import uml from '@techie_doubts/editor-plugin-uml';
const umlOptions = {
rendererURL: // ...
};
const editor = new Editor({
// ...
plugins: [[uml, umlOptions]]
});