-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
plantuml preview in markdown editor does not respect server settings #2167
Description
Describe the bug
When the plantuml server in admin:rendering:markdown-html:plantuml is set to a custom server, the rendered page uses that server. But the plantuml preview in the markdown editor still uses https://plantuml.requarks.io. This causes the editor to not be able to display plantuml preview if works offline.
To Reproduce
Steps to reproduce the behavior:
- Create a docker installation of wiki.js with plantuml server.
- Configure the wiki to use http://localhost:8080 for plantuml server.
- Disconnect the host from the Internet.
- Create a plantuml diagram in the markdown editor.
- See the preview displays "uml_diagram" instead of the preview.
Host Info (please complete the following information):
- OS: Docker
- Wiki.js version: 2.4.107
- Database engine: sqlite 3.11
Additional context
Use developer tools of firefox on the preview shows that the url of the plantuml diagram points to "https://plantuml.requarks.io" while the url of the diagram in the rendered page points to "http://localhost:8080". The source code of plantuml.js of the markdown editor shows that it does accept a server configuration. So it might be a regession.