ej2 document editor Table format problem

I have docx with table: Image_1042_1743646035135

I use: 

<script src="~/js/ej2/documenteditorhelper.js"></script>


<script>

        function getAbsoluteURL() {

            return "@Url.Content("~/")";

        };

        window.baseurl = getAbsoluteURL();


        var documenteditor;

        document.addEventListener('DOMContentLoaded', function () {

            var documenteditorElement = document.getElementById("container");

            var container = documenteditorElement.ej2_instances[0];

            container.showPropertiesPane = true;

            container.documentEditorSettings.showRuler = true;

            documenteditor = container.documentEditor;


            documenteditor.isReadOnly= false;

            documenteditor.enableSelection= true;

            documenteditor.enableEditor= true;

            documenteditor.enableTableOptionsDialog= true;

            documenteditor.enableTablePropertiesDialog= true;

            documenteditor.enableBordersAndShadingDialog= true;



            documenteditorElement.ej2_instances[0].serviceUrl = window.baseurl + 'api/documenteditor/';

            documenteditor.serviceUrl = window.baseurl + 'api/documenteditor/';


        container.documentChange = function (args) {

            //updateDocumentTitle();

        };

        titleBarDiv = document.getElementById('documenteditor_titlebar');

        initComponentAndWireEvent();

    });


    </script>

But I get: Image_2635_1743646283697

What am i missing?


8 Replies

DS Dhanush Sekar Syncfusion Team April 3, 2025 02:39 PM UTC

Hi Andre,


We suspect that the reported problems might be due to the contents of the input Word document, which is used at your end. We need to investigate the contents of your input Word document to reproduce the exact problem on our end. So, could you please provide us with the input Word document that was used at your end? Thereby, we will analyze further and provide you with the appropriate solution at the earliest.


Regards,

Dhanush S



AN Andre replied to Dhanush Sekar April 7, 2025 01:33 AM UTC

Hi Dhanush,

Thank you for your response. Yes I understand, but the top image is from the full Syncfusion sample app, so it should be able to handle it.

The forum does not allow to attach the docx file. not the actual view.chtml file.

Will try and copy the scripts I have in the heading, seems it won.t let me..

What I am trying to get to, I must be missing a script file, but I have no idea where to look. I tried to add more information, but this forum dialog, wont post it.



DS Dhanush Sekar Syncfusion Team April 7, 2025 01:37 PM UTC

Hi Andre,


The forum allows the attachment of zip files. Therefore, you can compress the .docx file into a zip format and upload it.


Furthermore, please share the customization code for the Document Editor, as it will aid in further validation of the issue.


Regards,

Dhanush S



DS Dhanush Sekar Syncfusion Team April 7, 2025 01:37 PM UTC

Hi Andre,


The forum allows the attachment of zip files. Therefore, you can compress the .docx file into a zip format and upload it.


Furthermore, please share the customization code for the Document Editor, as it will aid in further validation of the issue.


Regards,

Dhanush S



DS Dhanush Sekar Syncfusion Team April 7, 2025 01:37 PM UTC

Hi Andre,


The forum allows the attachment of zip files. Therefore, you can compress the .docx file into a zip format and upload it.


Furthermore, please share the customization code for the Document Editor, as it will aid in further validation of the issue.


Regards,

Dhanush S



DS Dhanush Sekar Syncfusion Team April 7, 2025 01:37 PM UTC

Hi Andre,


The forum allows the attachment of zip files. Therefore, you can compress the .docx file into a zip format and upload it.


Furthermore, please share the customization code for the Document Editor, as it will aid in further validation of the issue.


Regards,

Dhanush S



AN Andre replied to Dhanush Sekar April 7, 2025 11:08 PM UTC

Hi Dhanush,

Attached zip has the document and the View, with the scripts

Hope that helps


Attachment: Voucher_Test_681ad802.zip


DS Dhanush Sekar Syncfusion Team April 8, 2025 01:39 PM UTC

Hi Andre,


We have checked the provided document and the Document editor customization. We couldn't replicate the issue from our end. Please refer to the sample below.

Sample:  T9fsiqs1 (forked) - StackBlitz


Regards,

Dhanush S


Loader.
Up arrow icon