You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
How can I use this variable in src/main/webapp/js/diagramly/Editor.js to disable "Export as -> URL" feature?
/**
* Disables the export URL function.
*/
Editor.enableExportUrl = true;
a.
Set Editor.enableExportUrl = false; in src/main/webapp/js/diagramly/Editor.js
Call "npm start" (in parent drawio-desktop project)
There is no changes in drawio application - "Export as -> URL" feature is available.
b.
Set Editor.enableExportUrl = false; in src/main/webapp/js/diagramly/Editor.js
Call export DRAWIO_ENV=dev
Call "npm start" (in parent drawio-desktop project)
"Export as -> URL" feature is disabled in application (no menu entry).
c.
Set Editor.enableExportUrl = false; in src/main/webapp/js/diagramly/Editor.js
Call export DRAWIO_ENV=prod
Edit src/main/webapp/index.html - replace all checks of "if (urlParams['dev'] == '1')" to be true in any case.
Call "npm start" (in parent drawio-desktop project)
"Export as -> URL" feature is disabled in application (no menu entry).
Why does not it work in variant "a"? Is it a bug, or I don`t understand something?
low qualityBug report is not of sufficient quality
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello.
How can I use this variable in src/main/webapp/js/diagramly/Editor.js to disable "Export as -> URL" feature?
/**
* Disables the export URL function.
*/
Editor.enableExportUrl = true;
a.
b.
c.
Why does not it work in variant "a"? Is it a bug, or I don`t understand something?
Beta Was this translation helpful? Give feedback.
All reactions