Draw.io source wont collapse when wrapped in HTML tag. #5037
Unanswered
deggle
asked this question in
Error / Bug Report
Replies: 1 comment 3 replies
-
|
Hey there, If you have 5+ complex diagrams in a page it is no longer a small thing... the whole page becomes a nightmare to navigate for edits. Disclaimer: the script works for my usage, I have no expierence in wiki.js development, so if it doesn't work for you or breaks things ... you've been warned about copying/pasting code without caution. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is either going to be a quickish thing to look at or a pain - if it's the latter, feel free to close this as it's not a major bug.
I often wrap Draw.io diagrams in HTML tags like this to center the diagram:
Which looks fine there - but when you save and come back to edit the code is correctly identified as a diagram (and editable, so all fine there) but it's fully expanded and won't collapse:
The workaround is to just cut and paste (or change and revert in some way) the opening HTML tag which causes a refresh and then it goes back. It's a small think - there are probably higher priorities!
Beta Was this translation helpful? Give feedback.
All reactions