plantuml preview in markdown editor does not respect server settings #3583
Replies: 10 comments
-
|
The client renderer is using a fixed configuration and won't reflect the server renderer. This will be addressed in a future update to have the client use the exact same configuration as the server. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your reply. Does this mean that there is a way to configure the client renderer? How can I configure it? |
Beta Was this translation helpful? Give feedback.
-
|
No, it's not configurable. |
Beta Was this translation helpful? Give feedback.
-
|
Is a PR on this welcome or is somebody else working on this enhancement? |
Beta Was this translation helpful? Give feedback.
-
|
@AGrzes As long as the PR addresses the full rendering pipeline, and not just PlantUML. If you're interested on working on this enhancement, open a draft PR first to discuss the implementation, before writing any code. |
Beta Was this translation helpful? Give feedback.
-
|
GtiHub is not allowing me to open draft PR without any change in code so I wlll put my proposed changes here.
Is this plan OK? |
Beta Was this translation helpful? Give feedback.
-
|
Hi - from my point of view the PR #2219 is ready for review - please let me know if anything need to be improved. |
Beta Was this translation helpful? Give feedback.
-
|
Is there any update on this ? It could be great to be able to change the editor's plantuml instance when working on sensitive data |
Beta Was this translation helpful? Give feedback.
-
|
The error still occurs in 2.5.297 version (docker). I've tried to set up a plant uml server to render a diagram using import directive (included in my plant uml server), in view mode, the diagram is showed without problems, but when I edit the page, importing error occurs. Inspecting network chrome tab, in edit-view the plant uml server used is https://plantuml.requarks.io/svg, not the configured. |
Beta Was this translation helpful? Give feedback.
-
|
Still an issue in 2.5.301. This kind of defeats the purpose of self/internal hosting for those requests and their to be sent out to the internet. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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:
Host Info (please complete the following information):
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.
Beta Was this translation helpful? Give feedback.
All reactions