diff --git a/schema/plugin.json b/schema/plugin.json index c7f6e74..1bcc608 100644 --- a/schema/plugin.json +++ b/schema/plugin.json @@ -23,18 +23,23 @@ "description": "URL parameters for the drawio iframe https://desk.draw.io/support/solutions/articles/16000042546-supported-url-parameters", "$ref": "#/definitions/drawio-url-params", "default": { - "stealth": 1, "gapi": 0, - "od": 0, - "tr": 0, "gl": 0, - "noExitBtn": 1 + "noExitBtn": 1, + "od": 0, + "stealth": 1, + "tr": 0, + "ui": "min" } }, "drawioConfig": { "description": "Configuration options sent to each drawio editor. https://desk.draw.io/support/solutions/articles/16000058316", "$ref": "#/definitions/drawio-config", - "default": {} + "default": { + "compressXML": false, + "showStartScreen": false, + "override": true + } } }, "definitions": { diff --git a/src/editor.ts b/src/editor.ts index 9315040..b0d0e73 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -45,25 +45,6 @@ const CORE_EMBED_PARAMS = { configure: 1, }; -/** - * Default embed params, mostly to turn off third-party javascript - */ -const DEFAULT_EMBED_PARAMS = { - gapi: 0, // google - od: 0, // onedrive - tr: 0, // trello - gl: 0, // gitlab - stealth: 1, // just to be sure - noExitBtn: 1, // looks/acts weird -}; - -const DEFAULT_CONFIG = { - compressXml: false, // bigger size, _maybe_ diffable - debug: DEBUG, // a lot going on - showStartScreen: false, // looks weird - override: true, // might help -}; - /** * Additional capabilities to allow to sandbox */ @@ -210,10 +191,9 @@ export class DrawioWidget extends DocumentWidget