Open ane-gabriela opened 1 month ago
This happens only when using inline editing mode, and it's not only for the first time you add a diagram macro (that links to a diagram with links), but every time you inline edit a page with such diagrams. Basically, the view you had in edit mode, with a diagram image instead of the actual diagram, is preserved until you refresh the page. From what I understand, this is the expected behavior, since inline editing tries to transition from edit to view smoothly. @mflorea can you confirm this is the expected behavior, or should I look more into it?
Steps to reproduce:
Create a diagram "Diagram-1"
Add some shapes
In one or 2 of the shapes add some text
Select a word and link it to another page in the wiki
Select another word and link it to an external URL
![DiagramWithLinks](https://github.com/xwikisas/application-diagram/assets/40691112/98361ad5-bf39-4e8b-826e-4bec192e8430)
Create a new simple page
Edit it and click on Insert > Other Macros
Search for Diagram Macro
In the "Reference" Field type the name of the existing diagram page (e.g. Diagram.Diagram-1.WebHome)
Uncheck "Cached"
Click Submit
Click on Save & View
Expected results: The diagram appears with the selected links.
Actual results: The diagram appears with no links, the user needs to refresh the page 1or 2 times to see the links.
After Save & View![ResultDiagram1](https://github.com/xwikisas/application-diagram/assets/40691112/eccf1fa9-5c29-4d97-8192-a81feb2ffe7d)
After Refresh![AfterRefreshDiagram](https://github.com/xwikisas/application-diagram/assets/40691112/76dcaab4-e4ad-420d-97c8-7617ee90c2ea)
Environment: Windows 11, Chrome 125, Cloud XWiki 15.10.8, Diagram Application (Pro) 1.20.4