Fix absolute wrapper for DocumentEditor
All checks were successful
Automated Container Build / build-and-push (push) Successful in 37s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 37s
This commit is contained in:
parent
121bbf4b52
commit
82a19442d7
1 changed files with 11 additions and 9 deletions
|
|
@ -132,15 +132,17 @@ export default function OnlyOfficeEditor({ file, type, onClose }: OnlyOfficeEdit
|
|||
<p className="mt-4 text-xs text-gray-500">Check if your OnlyOffice server is running and accessible at the configured URL.</p>
|
||||
</div>
|
||||
) : (
|
||||
<DocumentEditor
|
||||
id="docxEditor"
|
||||
documentServerUrl={docServerUrl}
|
||||
config={config}
|
||||
events_onDocumentReady={onDocumentReady}
|
||||
onLoadComponentError={onLoadComponentError}
|
||||
height="100%"
|
||||
width="100%"
|
||||
/>
|
||||
<div className="absolute inset-0">
|
||||
<DocumentEditor
|
||||
id="docxEditor"
|
||||
documentServerUrl={docServerUrl}
|
||||
config={config}
|
||||
events_onDocumentReady={onDocumentReady}
|
||||
onLoadComponentError={onLoadComponentError}
|
||||
height="100%"
|
||||
width="100%"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Reference in a new issue