Bold BI®Unlock stunning dashboards with Bold BI®: 35+ widgets, 150+ data sources, AI agent & more. Try it for free!
I have docx with table:
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:
What am i missing?
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
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.
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
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
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
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
Hi Dhanush,
Attached zip has the document and the View, with the scripts
Hope that helps
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
Thank you Dhanush
I think I finally may be on the right track. Its not a syncfusion script/style missing but some other third-party overwriting it.
I removed my (Razor) layout (as per your sample) and it works now. I can try re-introducing what I may need, and see what breaks it and take it from there.
Kind regards
Andre'
Hi Andre,
Thanks for the update.
Please let us know if you need any further assistance.
Regards,
Dhanush S