Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving imported draw.io file fails #267 #272

Merged
merged 2 commits into from
Jun 18, 2024
Merged

Saving imported draw.io file fails #267 #272

merged 2 commits into from
Jun 18, 2024

Conversation

oanalavinia
Copy link

  • copied method from a recent version of drawio to include a fix - in the old version of the method, when you import a diagram file on an empty diagram, they would unload the old XWikiFile and use LocalFile, and this breaks a lot of functionalities; this should be removed once we upgrade to a recent version of drawio
  • update setData too, since pages are already initialized at that point

* WIP: this is a version that works partially, there are still cases that need to be handled
* it is not working if you import on a empty diagram multiple pages, the first page is lost
* fix remained usecase, where the import was failing on empty diagram
* copied method from a recent version of drawio to include a fix - in the old version of the method, when you import a diagram file on an empty diagram, they would unload the old XWikiFile and use LocalFile, and this breaks a lot of functionalities
* update setData too, since pages are already initialized at that point
@oanalavinia oanalavinia merged commit 7df6671 into master Jun 18, 2024
@oanalavinia oanalavinia linked an issue Jun 18, 2024 that may be closed by this pull request
@oanalavinia oanalavinia deleted the issue267 branch October 30, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Saving imported draw.io file fails
1 participant