jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
41.25k stars 7.65k forks source link

Draw io could not open an *.svg from the command line C:\Program Files\draw.io\draw.io.exe "%1" #3235

Closed denisbeelog closed 1 year ago

denisbeelog commented 1 year ago

Describe the bug Draw io could not open an *.svg from the command line C:\Program Files\draw.io\draw.io.exe "%1"

To Reproduce Open Drawio with the fonction ShellAPI.ShellExecute(0,'Open',pc_selectionner,pchar('"'+strpas(Self.file_to_open_with)+'"'),pchar(ExtractFileDir(Self.file_to_open_with)),SW_NORMAL); with ab Svg file it's not open it.

Expected behavior open the *.svg files by parsin the command line at setup or other extension who is available.

Screenshots image

draw.io version (In the Help->About menu of the draw.io editor): diagrams.net 20.6.1

Desktop (please complete the following information):

denisbeelog commented 1 year ago

Exemple of *.SVG files : North America

davidjgraph commented 1 year ago

https://github.com/jgraph/drawio/blob/dev/README.md:

"draw.io is a diagramming or whiteboarding application.... It is not an SVG editing app..."

denisbeelog commented 1 year ago

Yes but the open file function display that Draw.io is able to open SVG file, so wwhy not open also an SVG file from the command line.

alderg commented 1 year ago

We only open .drawio.svg files which have embedded diagram data. SVG files can only be imported into existing diagrams as images.