diff --git a/src/main/js/wiki/components/Markdown.js b/src/main/js/wiki/components/Markdown.js index b36aa9a8..535d69d3 100644 --- a/src/main/js/wiki/components/Markdown.js +++ b/src/main/js/wiki/components/Markdown.js @@ -2,7 +2,6 @@ import React from 'react'; import injectSheet from 'react-jss'; -import Viewer from 'tui-editor/dist/tui-editor-Viewer'; import Editor from 'tui-editor/dist/tui-editor-Editor'; import 'tui-editor/dist/tui-editor-extTable'; import 'tui-editor/dist/tui-editor-extScrollSync'; @@ -29,7 +28,7 @@ class Markdown extends React.Component { viewer: true, initialEditType: 'markdown', initialValue: this.props.content, - exts: ['colorSyntax', 'uml', 'chart', 'mark', 'table', 'taskCounter', 'history'], + exts: ['colorSyntax', {name: 'uml', rendererURL: '/plantuml/png/'}, 'chart', 'mark', 'table', 'taskCounter', 'history'], }); } diff --git a/src/main/js/wiki/components/MarkdownEditor.js b/src/main/js/wiki/components/MarkdownEditor.js index 3b845e9b..816242a2 100644 --- a/src/main/js/wiki/components/MarkdownEditor.js +++ b/src/main/js/wiki/components/MarkdownEditor.js @@ -53,7 +53,7 @@ class MarkdownEditor extends Component { previewStyle: 'vertical', initialEditType: 'markdown', initialValue: this.props.content, - exts: ['scrollSync', 'colorSyntax', 'uml', 'chart', 'mark', 'table', 'taskCounter'] + exts: ['scrollSync', 'colorSyntax', {name: 'uml', rendererURL: '/plantuml/png/'}, 'chart', 'mark', 'table', 'taskCounter'] }); }