From faed3b41010bbfd7a274bc30ced6781ddb115c54 Mon Sep 17 00:00:00 2001 From: Kalaivannan-Ganesan <93248069+Kalaivannan-Ganesan@users.noreply.github.com> Date: Wed, 12 Aug 2026 00:00:46 +0530 Subject: [PATCH 1/4] Resolved errors from open-document-by-address.md to resize-document-editor.md --- .../how-to/open-document-by-address.md | 26 ++++++------ .../javascript-es5/how-to/optimize-sfdt.md | 19 ++++----- .../how-to/override-the-keyboard-shortcuts.md | 26 ++++++------ .../how-to/read-only-default.md | 16 ++++---- .../how-to/resize-document-editor.md | 40 +++++++++---------- 5 files changed, 64 insertions(+), 63 deletions(-) diff --git a/Document-Processing/Word/Word-Processor/javascript-es5/how-to/open-document-by-address.md b/Document-Processing/Word/Word-Processor/javascript-es5/how-to/open-document-by-address.md index 8279254980..7eb2c4c682 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es5/how-to/open-document-by-address.md +++ b/Document-Processing/Word/Word-Processor/javascript-es5/how-to/open-document-by-address.md @@ -1,36 +1,36 @@ --- layout: post -title: Open document by address in JavaScript (ES5) Docx editor | Syncfusion -description: Learn here all about Open document by address in Syncfusion JavaScript (ES5) Document editor control of Syncfusion Essential JS 2 and more. +title: Open Document by Address in JavaScript (ES5) DOCX Editor | Syncfusion +description: Learn how to open a document from a URL in Syncfusion JavaScript (ES5) Document Editor using XMLHttpRequest to load SFDT content from the server side. platform: document-processing -control: Open document by address +control: Open a Document by Address documentation: ug domainurl: ##DomainURL## --- -# Open document by address in JavaScript (ES5) Document editor control +# Open Document by Address - JavaScript (ES5) Document Editor -## How to open a document from URL in DocumentEditor +## How to Open a Document from a URL in DocumentEditor -In this article, we are going to see how to open a document from URL in [JavaScript DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/javascript-docx-editor) (Document Editor) +In this article, we are going to see how to open a document from a URL in the [JavaScript DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/javascript-docx-editor) (Document Editor). -please refer below example for client-side code +Please refer to the example below for the client-side code. ```js -//Initialize Document Editor Container component. +// Initialize the Document Editor Container component. var container = new ej.documenteditor.DocumentEditorContainer(); container.appendTo('#DocumentEditorContainer'); document.getElementById('import').addEventListener('click', function () { var http = new XMLHttpRequest(); - //add your url in which you want to open document inside the "" + // Add the URL from which you want to open the document inside the "" var content = { fileUrl: "" }; - var baseurl = "/api/documenteditor/ImportFileURL"; - http.open("POST", baseurl, true); + var baseUrl = "/api/documenteditor/ImportFileURL"; + http.open("POST", baseUrl, true); http.setRequestHeader("Content-Type", "application/json;charset=UTF-8"); http.onreadystatechange = function () { if (http.readyState === 4) { if (http.status === 200 || http.status === 304) { - //open the SFDT text in Document Editor + // Open the SFDT text in the Document Editor container.documentEditor.open(http.responseText); } } @@ -39,7 +39,7 @@ document.getElementById('import').addEventListener('click', function () { }); ``` -please refer below example for server-side code +Please refer to the example below for the server-side code. ```c# [AcceptVerbs("Post")] diff --git a/Document-Processing/Word/Word-Processor/javascript-es5/how-to/optimize-sfdt.md b/Document-Processing/Word/Word-Processor/javascript-es5/how-to/optimize-sfdt.md index 6bb11f63b5..c6191386c5 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es5/how-to/optimize-sfdt.md +++ b/Document-Processing/Word/Word-Processor/javascript-es5/how-to/optimize-sfdt.md @@ -1,23 +1,24 @@ --- layout: post -title: Optimize sfdt in JavaScript (ES5) Document editor control | Syncfusion -description: Learn here all about Optimize sfdt in Syncfusion JavaScript (ES5) Document editor control of Syncfusion Essential JS 2 and more. +title: Optimize SFDT in JavaScript (ES5) DOCX Editor | Syncfusion +description: Learn how to optimize SFDT in Syncfusion JavaScript (ES5) Document Editor to reduce file size and enable faster client-server document transfer. platform: document-processing -control: Optimize sfdt +control: Optimize SFDT documentation: ug domainurl: ##DomainURL## --- -# Optimize sfdt in JavaScript (ES5) Document editor control +# Optimize SFDT in JavaScript (ES5) Document Editor -Starting from version v21.1.x, the SFDT file generated in Word Processor component is optimized by default to reduce the file size. All static keys are minified, and the final JSON string is compressed. This helps reduce the SFDT file size relative to a DOCX file and provides the following benefits, -* File transfer between client and server through the internet gets faster. +Starting from version v21.1.x, the SFDT file generated in the Document Editor component is optimized by default to reduce the file size. All static keys are minified, and the final JSON string is compressed. This helps reduce the SFDT file size relative to a DOCX file and provides the following benefits: +* File transfer between the client and server through the internet is faster. * The new optimized SFDT files require less storage space than the old SFDT files. -Hence, the optimized SFDT file can't be directly manipulated as JSON string. -> This feature comes with a public API to switch between the old and new optimized SFDT format, allowing backward compatibility. +Hence, the optimized SFDT file can't be directly manipulated as a JSON string. -As a backward compatibility to create older format SFDT files, refer the following code changes, +N> This feature comes with a public API to switch between the old and new optimized SFDT formats, allowing backward compatibility. + +For backward compatibility to create older-format SFDT files, refer to the following code changes:
| Client-side | {% tabs %} -{% highlight js tabtitle="Component Declaration"%} +{% highlight js tabtitle="Component Declaration" %} var documenteditorContainer = new ej.documenteditor.DocumentEditorContainer(); {% endhighlight %} {% endtabs %} | {% tabs %} -{% highlight js tabtitle="Component Declaration"%} +{% highlight js tabtitle="Component Declaration" %} var documenteditorContainer = new ej.documenteditor.DocumentEditorContainer({ documentEditorSettings: { optimizeSfdt: false } }); {% endhighlight %} {% endtabs %} @@ -45,7 +45,7 @@ var documenteditorContainer = new ej.documenteditor.DocumentEditorContainer({ do | Server-side C# | {% tabs %} -{% highlight c# tabtitle="Import"%} +{% highlight c# tabtitle="Import" %} WordDocument sfdtDocument = WordDocument.Load(stream, formatType); string sfdt = Newtonsoft.Json.JsonConvert.SerializeObject(sfdtDocument); {% endhighlight %} @@ -53,7 +53,7 @@ string sfdt = Newtonsoft.Json.JsonConvert.SerializeObject(sfdtDocument); | {% tabs %} -{% highlight c# tabtitle="Import"%} +{% highlight c# tabtitle="Import" %} WordDocument sfdtDocument = WordDocument.Load(stream, formatType); sfdtDocument.OptimizeSfdt = false; string sfdt = Newtonsoft.Json.JsonConvert.SerializeObject(sfdtDocument); @@ -65,14 +65,14 @@ string sfdt = Newtonsoft.Json.JsonConvert.SerializeObject(sfdtDocument); | Server-side Java | {% tabs %} -{% highlight java tabtitle="Import"%} +{% highlight java tabtitle="Import" %} String sfdtDocument = WordProcessorHelper.load(stream, formatType); {% endhighlight %} {% endtabs %} | {% tabs %} -{% highlight java tabtitle="Import"%} +{% highlight java tabtitle="Import" %} String sfdtDocument = WordProcessorHelper.load(stream, formatType, false); {% endhighlight %} {% endtabs %} @@ -90,7 +90,7 @@ To convert from older format SFDT from a new optimized SFDT file, refer the foll | Client-side | {% tabs %} -{% highlight js tabtitle="Component Declaration"%} +{% highlight js tabtitle="Component Declaration" %} var documenteditorContainer = new ej.documenteditor.DocumentEditorContainer({ documentEditorSettings: { optimizeSfdt: false } }); {% endhighlight %} {% endtabs %} @@ -100,7 +100,7 @@ var documenteditorContainer = new ej.documenteditor.DocumentEditorContainer({ do | Server-side C# | {% tabs %} -{% highlight c# tabtitle="Import"%} +{% highlight c# tabtitle="Import" %} using(Syncfusion.DocIO.DLS.WordDocument docIODocument = WordDocument.Save(optimizedSfdt)) { sfdtDocument = WordDocument.Load(docIODocument); sfdtDocument.OptimizeSfdt = false; @@ -114,7 +114,7 @@ using(Syncfusion.DocIO.DLS.WordDocument docIODocument = WordDocument.Save(optimi | Server-side Java | {% tabs %} -{% highlight java tabtitle="Import"%} +{% highlight java tabtitle="Import" %} WordDocument docIODocument = WordProcessorHelper.save(optimizedSfdt); String oldSfdt = WordProcessorHelper.load(docIODocument, false); {% endhighlight %} From 9a64893d8f18af435c98153a44d43ef85e5405d6 Mon Sep 17 00:00:00 2001 From: Kalaivannan-Ganesan <93248069+Kalaivannan-Ganesan@users.noreply.github.com> Date: Thu, 13 Aug 2026 13:23:53 +0530 Subject: [PATCH 4/4] Reverted the Front Matter changes --- .../javascript-es5/how-to/open-document-by-address.md | 6 +++--- .../Word-Processor/javascript-es5/how-to/optimize-sfdt.md | 6 +++--- .../how-to/override-the-keyboard-shortcuts.md | 6 +++--- .../javascript-es5/how-to/read-only-default.md | 6 +++--- .../javascript-es5/how-to/resize-document-editor.md | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Document-Processing/Word/Word-Processor/javascript-es5/how-to/open-document-by-address.md b/Document-Processing/Word/Word-Processor/javascript-es5/how-to/open-document-by-address.md index 7eb2c4c682..f15af7089c 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es5/how-to/open-document-by-address.md +++ b/Document-Processing/Word/Word-Processor/javascript-es5/how-to/open-document-by-address.md @@ -1,14 +1,14 @@ --- layout: post -title: Open Document by Address in JavaScript (ES5) DOCX Editor | Syncfusion -description: Learn how to open a document from a URL in Syncfusion JavaScript (ES5) Document Editor using XMLHttpRequest to load SFDT content from the server side. +title: Open document by address in JavaScript (ES5) Docx editor | Syncfusion +description: Learn here all about Open document by address in Syncfusion JavaScript (ES5) Document editor control of Syncfusion Essential JS 2 and more. platform: document-processing control: Open a Document by Address documentation: ug domainurl: ##DomainURL## --- -# Open Document by Address - JavaScript (ES5) Document Editor +# Open document by address in JavaScript (ES5) Document editor control ## How to Open a Document from a URL in DocumentEditor diff --git a/Document-Processing/Word/Word-Processor/javascript-es5/how-to/optimize-sfdt.md b/Document-Processing/Word/Word-Processor/javascript-es5/how-to/optimize-sfdt.md index 189b6af0df..b41aabafd6 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es5/how-to/optimize-sfdt.md +++ b/Document-Processing/Word/Word-Processor/javascript-es5/how-to/optimize-sfdt.md @@ -1,14 +1,14 @@ --- layout: post -title: Optimize SFDT in JavaScript (ES5) DOCX Editor | Syncfusion -description: Learn how to optimize SFDT in Syncfusion JavaScript (ES5) Document Editor to reduce file size and enable faster client-server document transfer. +title: Optimize sfdt in JavaScript (ES5) Document editor control | Syncfusion +description: Learn here all about Optimize sfdt in Syncfusion JavaScript (ES5) Document editor control of Syncfusion Essential JS 2 and more. platform: document-processing control: Optimize SFDT documentation: ug domainurl: ##DomainURL## --- -# Optimize SFDT in JavaScript (ES5) Document Editor +# Optimize sfdt in JavaScript (ES5) Document editor control Starting from version v21.1.x, the SFDT file generated in the Document Editor component is optimized by default to reduce the file size. All static keys are minified, and the final JSON string is compressed. This helps reduce the SFDT file size relative to a DOCX file and provides the following benefits: * File transfer between the client and server through the internet is faster. diff --git a/Document-Processing/Word/Word-Processor/javascript-es5/how-to/override-the-keyboard-shortcuts.md b/Document-Processing/Word/Word-Processor/javascript-es5/how-to/override-the-keyboard-shortcuts.md index 107fc4305b..95920668ba 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es5/how-to/override-the-keyboard-shortcuts.md +++ b/Document-Processing/Word/Word-Processor/javascript-es5/how-to/override-the-keyboard-shortcuts.md @@ -1,14 +1,14 @@ --- layout: post -title: Override Keyboard Shortcuts JavaScript (ES5) DOCX Editor | Syncfusion -description: Learn how to override keyboard shortcuts in Syncfusion JavaScript (ES5) Document Editor using the keyDown event and the isHandled property. +title: Override the keyboard shortcuts in JavaScript (ES5) | Syncfusion +description: Learn here all about Override the keyboard shortcuts in Syncfusion JavaScript (ES5) Document editor control of Syncfusion Essential JS 2 and more. platform: document-processing control: Override Keyboard Shortcuts documentation: ug domainurl: ##DomainURL## --- -# Override Keyboard Shortcuts in JavaScript (ES5) Document Editor +# Override the keyboard shortcuts in JavaScript (ES5) Document editor [JavaScript DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/javascript-docx-editor) (Document Editor) triggers the [`keyDown`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#keydown) event every time a key is pressed and provides an instance of [`DocumentEditorKeyDownEventArgs`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/documentEditorKeyDownEventArgs) as the event arguments. You can use the [`isHandled`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/documentEditorKeyDownEventArgs#ishandled) property to override the keyboard shortcut behavior. diff --git a/Document-Processing/Word/Word-Processor/javascript-es5/how-to/read-only-default.md b/Document-Processing/Word/Word-Processor/javascript-es5/how-to/read-only-default.md index f0e5c8ff94..93c0287ebb 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es5/how-to/read-only-default.md +++ b/Document-Processing/Word/Word-Processor/javascript-es5/how-to/read-only-default.md @@ -1,14 +1,14 @@ --- layout: post -title: Read-Only by Default in JavaScript (ES5) DOCX Editor | Syncfusion -description: Learn how to open a document in read-only mode by default in Syncfusion JavaScript (ES5) Document Editor using the restrictEditing and isReadOnly APIs. +title: Read only default in JavaScript (ES5) Document editor | Syncfusion +description: Learn here all about Read only default in Syncfusion JavaScript (ES5) Document editor control of Syncfusion Essential JS 2 and more. platform: document-processing control: Read-Only by Default documentation: ug domainurl: ##DomainURL## --- -# Read-Only by Default in JavaScript (ES5) Document Editor +# Read only default in JavaScript (ES5) Document editor In this article, we are going to see how to open a document in read-only mode by default in DocumentEditor and DocumentEditorContainer. diff --git a/Document-Processing/Word/Word-Processor/javascript-es5/how-to/resize-document-editor.md b/Document-Processing/Word/Word-Processor/javascript-es5/how-to/resize-document-editor.md index f94ed723ef..6eda6fa4dd 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es5/how-to/resize-document-editor.md +++ b/Document-Processing/Word/Word-Processor/javascript-es5/how-to/resize-document-editor.md @@ -1,14 +1,14 @@ --- layout: post -title: Resize Document Editor in JavaScript (ES5) DOCX Editor | Syncfusion -description: Learn how to resize the Document Editor in Syncfusion JavaScript (ES5) by changing the height and width properties or using the resize method. +title: Resize document editor in JavaScript (ES5) DOCX editor | Syncfusion +description: Learn here all about Resize document editor in Syncfusion JavaScript (ES5) Document editor control of Syncfusion Essential JS 2 and more. platform: document-processing control: Resize Document Editor documentation: ug domainurl: ##DomainURL## --- -# Resize Document Editor in JavaScript (ES5) Document Editor +# Resize document editor in JavaScript (ES5) Document editor control In this article, we are going to see how to change the height and width of the [JavaScript DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/javascript-docx-editor) (Document Editor). |