diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index e813963192..42014a68ae 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -865,7 +865,7 @@ path += app + "/"; path += (config.type === "mobile" || isSafari_mobile) ? "mobile" - : config.type === "embedded" + : (config.type === "embedded" || (app=='documenteditor') && (config.document.permissions.fillForms===true) && (config.document.permissions.edit === false) && (config.editorConfig.mode !== 'view')) ? "embed" : "main";