Originally posted by **LodeStarLearning** February 9, 2023
I'm integrating SVG-Edit in a JavaFx application. The editor displays in a Chromium web browser inside a JavaFx dialog.
I can render SVG-Edit unresponsive to mouse clicks by:
adding Text
scaling Text
Exiting the browser with the text caret left inside the text element.
When I reopen the SVG graphic in SVG-Edit, no tool responds to mouse clicks until I re-enter the Text element and then click anywhere on the canvas in order to remove the text caret. Once I do that, everything responds normally.
When re-opening SVG-Edit, I attempt to reset the state with the following commands:
svgEditor.svgCanvas.clear();
svgEditor.svgCanvas.setResolution('960', '450');
svgEditor.updateCanvas(true);
Discussed in https://github.com/SVG-Edit/svgedit/discussions/885