Skip to content

plantuml preview in markdown editor does not respect server settings  #2167

@ProgramFan

Description

@ProgramFan

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:

  1. Create a docker installation of wiki.js with plantuml server.
  2. Configure the wiki to use http://localhost:8080 for plantuml server.
  3. Disconnect the host from the Internet.
  4. Create a plantuml diagram in the markdown editor.
  5. 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions