Plugins Directory » Redmine PlantUML JS
|
|
Author: | hitoshi kuroyanagi |
|---|---|---|
| Website: | https://github.com/euledge/redmine_plantuml_js | |
| Code repository: | https://github.com/euledge/redmine_plantuml_js | |
| Registered on: | 2026-11-30 (about 16 hours ago) | |
| Current version: | 0.1.1 | |
| Compatible with: | Redmine 7.1.x, 7.0.x, 6.1.x, 6.0.x, 5.1.x, 5.0.x | |
| User ratings: |
Renders PlantUML diagrams directly in the browser using the official TeaVM + Viz.js JavaScript build (@plantuml/core).
Key Features¶
- No server-side dependencies: No Java, no Graphviz binary, and no external PlantUML server required.
- Offline / intranet ready: Bundles
@plantuml/core(MIT licensed) locally by default, with optional admin settings to switch to jsDelivr, unpkg, or a custom internal URL. - Supports both Wiki macros and code blocks:
- Wiki macro:
{{plantuml ... }}with optionaldark=true|falseandalign=left|center|rightarguments - Markdown / Textile code blocks:
plantumlandpumllanguage tags
- Wiki macro:
- On-demand loading: Loads
plantuml.jsandviz-global.jsonly on pages that contain PlantUML diagrams (and companion libraries such asthemes.js,openiconic.js, andemoji.jsonly when referenced). - Live preview & editor toolbar: Renders diagrams in Ajax / Turbo previews and adds a PlantUML template button to Redmine's
jsToolBar. - Security hardened: Strict client-side SVG sanitization (strips
<script>, SMIL elements, event handlers, external<image>/<use>/<style>references, and dangerous URL schemes) and client-side DoS limits. - Redmine 5.x, 6.x, and 7.x compatible: Works with both legacy
plugin_assetsand Rails Propshaft asset pipeline (Ruby 2.7–4.0, Rails 6.1–8.1).
Screenshots¶
Issue Rendering (Wiki Macro & Markdown Code Block + Viz.js)¶
Editor Toolbar Button¶
Plugin Configuration¶
Installation notes
1. Place the plugin into Redmine's `plugins/` directory as `redmine_plantuml_js` (the directory name must match the plugin ID):
`git clone https://github.com/euledge/redmine_plantuml_js.git plugins/redmine_plantuml_js`
2. (Redmine 6.x / 7.x production environments) Precompile assets if needed:
`RAILS_ENV=production bundle exec rake assets:precompile`
3. Restart Redmine. No database migrations are required.
4. Optionally configure asset source, dark mode, `PLANTUML_STDLIB_BASE`, and toolbar behavior under Administration → Plugins → Redmine PlantUML JS → Configure.
Changelog
0.1.1 (2026-12-01)
Compatible with Redmine 7.1.x, 7.0.x, 6.1.x, 6.0.x, 5.1.x, 5.0.x.
Highlights¶
- Renders PlantUML diagrams directly in the browser using the official TeaVM + Viz.js build (
@plantuml/corev1.2026.10) — no Java, Graphviz binary, or external PlantUML server required. - Bundled locally by default for offline / intranet environments, with optional admin settings for jsDelivr, unpkg, or custom URLs.
- Supports both
{{plantuml}}Wiki macros (withdarkandalignoptions) and Markdown / Textileplantuml/pumlcode blocks.
Fixes & Improvements (0.1.1)¶
- Fixed editor toolbar button injection across Redmine 5.x, 6.x, and 7.x (
wiki_toolbar_controller), including dynamically opened edit forms. - Fixed Redmine 6.x / 7.x
.pre-wrapper(code copy button wrapper) visibility so raw PlantUML sources are cleanly hidden after SVG rendering. - Added Simplified Chinese (
zh) and Traditional Chinese (zh-TW) locales in addition to English (en) and Japanese (ja). - Hardened client-side SVG sanitization (blocks
<script>, SMIL elements,<style>external imports, external<image>/<use>references, and dangerous URL schemes) and added DoS limits. - Verified end-to-end on Redmine 5.1, 6.1, and 7.0.3 (Ruby 4.0 / Rails 8.1).
0.1.0 (2026-12-01)
Compatible with Redmine 7.1.x, 7.0.x, 6.1.x, 6.0.x, 5.1.x, 5.0.x.


