- Home
- Forum
- JavaScript - EJ 2
- Javasctip Document Editor is shown the document incorrectly
Javasctip Document Editor is shown the document incorrectly
The Document is shown all on the left hand side of the Document Editor (Pictures attached) it will not fill the control. After converting the docx file (its the same on multiple files) i'm showing the document using:
var container = new ej.documenteditor.DocumentEditorContainer({ width: "100%", height: "590px", serviceUrl: hostUrl, zIndex: 3000, documentEditorSettings: { showRuler: true } });
ej.documenteditor.DocumentEditorContainer.Inject(ej.documenteditor.Toolbar);
container.appendTo('#container');
container.documentEditor.open(JSON.stringify(content));
var currentDocument = args.fileDetails[0].name;
container.documentEditor.documentName = currentDocument.replace(".docx", "");
container.documentEditor.isReadOnly = false;
container.documentEditor.enableContextMenu = true;
container.showPropertiesPane = true;
container.resize();
Attachment: Zoomed_in_464f2000.png
Hi Andrew,
Greetings from Syncfusion support
We attempted to reproduce the issue, “document is shown all on the left hand side of the Document Editor” with the details provided on 30.2.7, but it is working fine. We shared the sample in which we have tried to reproduce the issue along with the video demonstration.
Sample: https://stackblitz.com/edit/wjhgwdkv-ak5plg7k?file=index.js,index.html
Please try the sample provided and revert with the below details. If you still need assistance. These details will be helpful for us to investigate further and assist you better.
We suspect that the reported issue is document specific, so please share the input document in which the issue could be reproduced
Detailed replication steps to reproduce the issue
Product Version details
Screenshots/ Video demonstrating the issue in detail.
Modified sample in which the issue could be reproducible
Code snippet for document to pdf exporting
Script errors (if any)
These details will help us investigate the issue thoroughly and provide a more accurate resolution.
Regards,
Akshaya
Attachment: ZoomRecording__bdf07020.zip
Thanks for your reply, I have found the issue. Whilst i was creating a standalone example for yourselves, I narrowed the issue down to the following css, this was being used by another component.
Hi Adrew,
Thank you for the update, and we appreciate you taking the time to investigate the issue further. It’s great to hear that you were able to identify the root cause caused by CSS from other components.
If you need any assistance, feel free to share the snippet or context, and we’ll be happy to help.
Regards,
Akshaya
- 3 Replies
- 2 Participants
-
AM Andrew Morgan
- Sep 3, 2025 04:27 PM UTC
- Sep 10, 2025 05:47 AM UTC