diff --git a/static/app.js b/static/app.js index ddc1657..2b2568c 100644 --- a/static/app.js +++ b/static/app.js @@ -661,8 +661,9 @@ function showModal(body, title, size = '') {

${title}

` : ''; + const sizeStyle = size === 'xlarge' ? 'max-width:1400px;width:95vw' : size === 'large' ? 'max-width:1000px' : ''; overlay.innerHTML = ` - -
+

Changes are saved automatically. Click "Save" to force-save, or "Close Editor" to return to the template list.

`; - showModal(body, '', 'large'); + showModal(body, '', 'xlarge'); // Load ONLYOFFICE API script dynamically const scriptUrl = onlyofficeUrl + '/web-apps/apps/api/documents/api.js'; @@ -308,7 +308,7 @@ async function openOnlyofficeEditor(templateId, templateName) { onlyofficeEditorInstance = new DocsAPI.DocEditor('onlyoffice-editor-container', { ...config, width: '100%', - height: '600px', + height: '100%', events: { onAppReady: function() { console.log('ONLYOFFICE editor ready');