fix: use explicit 800px height for ONLYOFFICE editor

This commit is contained in:
root
2026-07-16 11:08:27 +00:00
parent 677252c807
commit 665ba83503

View File

@@ -282,7 +282,7 @@ async function openOnlyofficeEditor(templateId, templateName) {
<button class="btn btn-sm btn-danger" onclick="closeOnlyofficeEditor()">Close Editor</button>
</div>
</div>
<div id="onlyoffice-editor-container" style="width:100%;height:85vh;border:1px solid var(--border);border-radius:8px;overflow:hidden"></div>
<div id="onlyoffice-editor-container" style="width:100%;height:800px;border:1px solid var(--border);border-radius:8px;overflow:hidden"></div>
<p class="text-muted text-sm mt-8">Changes are saved automatically. Click "Save" to force-save, or "Close Editor" to return to the template list.</p>
`;
showModal(body, '', 'xlarge');
@@ -308,7 +308,7 @@ async function openOnlyofficeEditor(templateId, templateName) {
onlyofficeEditorInstance = new DocsAPI.DocEditor('onlyoffice-editor-container', {
...config,
width: '100%',
height: '100%',
height: '800px',
events: {
onAppReady: function() {
console.log('ONLYOFFICE editor ready');