Skip to content
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
---
layout: post
title: Global Local in Syncfusion Document Editor Component
description: Learn here all about Global Local in Syncfusion Document Editor component of Syncfusion Essential JS 2 and more.
title: Global Local in Syncfusion DOCX Editor Component
description: Learn here all about Global Local in Syncfusion DOCX Editor component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Global Local
documentation: ug
---


# Globalization in ASP.NET Core in Document Editor Component
# Globalization in ASP.NET Core DOCX Editor Component

## Localization

The [`Localization`](https://ej2.syncfusion.com/aspnetcore/documentation/common/localization) library allows to localize default text content of the DocumentEditor. The [ASP.NET Core DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/asp-net-core-docx-editor) (Document Editor) component has static text on some features (like find & replace, context-menu, dialogs) that can be changed to other cultures (Arabic, Deutsch, French, etc.) by defining the locale value and translation object. Refer the sample link [RTL](https://ej2.syncfusion.com/aspnetcore/DocumentEditor/RightToLeft#/material).
The [`Localization`](https://ej2.syncfusion.com/aspnetcore/documentation/common/localization) library allows you to localize the default text content of the Document Editor. The [ASP.NET Core DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/asp-net-core-docx-editor) (Document Editor) component has static text on some features (such as find & replace, context menu, and dialogs) that can be changed to other cultures (Arabic, German, French, and more) by defining the locale value and translation object. To see the editor rendered with right-to-left flow, refer to the [Right-to-Left (RTL) sample](https://ej2.syncfusion.com/aspnetcore/DocumentEditor/RightToLeft#/material).

N> Refer the [Locale](https://github.com/syncfusion/ej2-locale).

## Document Editor
## DOCX Editor

The following list of properties and its values are used in the document editor.
The following list of properties and its values are used in the DOCX Editor.

Locale keywords |Text
-----|-----
Expand Down Expand Up @@ -162,7 +162,7 @@ Leading zero | Leading zero
Bullet | Bullet
Ordinal | Ordinal
Ordinal Text | Ordinal Text
For East | For East
Far East | Far East
No Restart | No Restart
Font | Font
Font style | Font style
Expand All @@ -184,7 +184,7 @@ Open Hyperlink | Open Hyperlink
Copy Hyperlink | Copy Hyperlink
Remove Hyperlink | Remove Hyperlink
Paragraph | Paragraph
Linked Style | Linked(Paragraph and Character)
Linked Style | Linked (Paragraph and Character)
Character | Character
Merge Cells | Merge Cells
Insert Above | Insert Above
Expand Down Expand Up @@ -363,9 +363,9 @@ Reject Changes | Reject Changes
User | User
View | View

## Document Editor Container
## DOCX Editor Container

The following list of properties and its values are used in the document editor container.
The following list of properties and its values are used in the DOCX Editor container.

Locale keywords |Text
-----|-----
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
layout: post
title: Header Footer in Document Editor Component | Syncfusion
description: Learn here all about Header Footer in Syncfusion Document Editor component of Syncfusion Essential JS 2 and more.
title: Header Footer in DOCX Editor Component | Syncfusion
description: Learn here all about Header Footer in Syncfusion DOCX Editor component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Header Footer
documentation: ug
---


# Headers and Footers in Document Editor Component
# Headers and Footers in ASP.NET Core DOCX Editor Component

[ASP.NET Core DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/asp-net-core-docx-editor) (Document Editor) supports headers and footers in its document. Each section in the document can have the following types of headers and footers:

Expand Down Expand Up @@ -57,11 +57,11 @@ In case the document has different header and footer types, such as different fi
container.documentEditor.selection.sectionFormat.firstPageHeader.linkToPrevious = false;
container.documentEditor.selection.sectionFormat.firstPageFooter.linkToPrevious = false;
//Even page
container.documentEditor.selection.sectionFormat.firstPageHeader.linkToPrevious = false;
container.documentEditor.selection.sectionFormat.firstPageFooter.linkToPrevious = false;
container.documentEditor.selection.sectionFormat.evenPageHeader.linkToPrevious = false;
container.documentEditor.selection.sectionFormat.evenPageFooter.linkToPrevious = false;
```

N> When there is more than one section in the document, the Link to Previous option becomes available. By default, this feature is disabled state in UI and set to return false for the first section.
N> When there is more than one section in the document, the Link to Previous option becomes available. By default, this feature is in a disabled state in the UI and set to return false for the first section.

## Header and footer distance

Expand All @@ -74,7 +74,7 @@ documenteditor.selection.sectionFormat.headerDistance= 36;
Same way, you can define the distance of footer region content from the bottom of the page.

```typescript
documenteditor.selection.sectionFormat.footerDistace=36;
documenteditor.selection.sectionFormat.footerDistance=36;
```

## Close header footer region
Expand All @@ -87,7 +87,7 @@ documenteditor.selection.closeHeaderFooter()

## Online Demo

Explore how to add and customize headers and footers in Word documents using the ASP.NET Core Document Editor in this live demo [here](https://document.syncfusion.com/demos/docx-editor/asp-net-core/documenteditor/headersandfooters#/tailwind3).
Explore how to add and customize headers and footers in Word documents using the ASP.NET Core DOCX Editor in this live demo [here](https://document.syncfusion.com/demos/docx-editor/asp-net-core/documenteditor/headersandfooters#/tailwind3).


## See Also
Expand Down
12 changes: 6 additions & 6 deletions Document-Processing/Word/Word-Processor/asp-net-core/history.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
layout: post
title: History in Document Editor Component | Syncfusion
description: Learn here all about history in Syncfusion Document Editor component of Syncfusion Essential JS 2 and more.
title: History in DOCX Editor Component | Syncfusion
description: Learn here all about history in Syncfusion DOCX Editor component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: History
documentation: ug
---


# History in Document Editor Component
# History in ASP.NET Core DOCX Editor Component

[ASP.NET Core DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/asp-net-core-docx-editor) (Document Editor) tracks the history of all editing actions done in the document, which allows undo and redo functionality.

Expand All @@ -27,15 +27,15 @@ Inject the `EditorHistory` module in your application to provide history preserv
{% endtabs %}


You can enable or disable history preservation for a document editor instance any time using the `enableEditorHistory` property.
You can enable or disable history preservation for a DOCX Editor instance any time using the `enableEditorHistory` property.

```typescript
editor.enableEditorHistory = false;
```

## Undo and redo

You can perform undo and redo by `CTRL+Z` and `CTRL+Y` keyboard shortcuts. Document editor exposes API to do it programmatically. To undo the last editing operation in document editor, refer to the following sample code.
You can perform undo and redo by `CTRL+Z` and `CTRL+Y` keyboard shortcuts. DOCX Editor exposes API to do it programmatically. To undo the last editing operation in DOCX Editor, refer to the following sample code.

```typescript
editor.editorHistory.undo();
Expand All @@ -49,7 +49,7 @@ editor.editorHistory.redo();

## Stack size

History of editing actions will be maintained in stack, so that the last item will be reverted first. By default, document editor limits the size of undo and redo stacks to 500 each respectively. However, you can customize this limit.
History of editing actions will be maintained in stack, so that the last item will be reverted first. By default, DOCX Editor limits the size of undo and redo stacks to 500 each respectively. However, you can customize this limit.

```typescript
editor.editorHistory.undoLimit = 400;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
layout: post
title: Add save button in Document Editor Component | Syncfusion
description: Learn here to add save button in Syncfusion Document Editor component of Syncfusion Essential JS 2 and more.
title: Add save button in DOCX Editor Component | Syncfusion
description: Learn here to add save button in Syncfusion DOCX Editor component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Add save button tool bar
documentation: ug
---


# Add save button in Document editor toolbar
# Add save button in DOCX Editor toolbar

## To add a save button to the existing toolbar in DocumentEditorContainer

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
layout: post
title: Auto Save Document in Document Editor Component | Syncfusion
description: Learn here all about auto save document in Document Editor in Syncfusion Document Editor component of syncfusion and more.
title: Auto Save Document in DOCX Editor Component | Syncfusion
description: Learn here all about auto save document in Syncfusion DOCX Editor component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Auto Save Document In Document Editor
control: Auto Save Document In DOCX Editor
documentation: ug
---


# How to auto save the document of Document Editor component into AWS S3
# How to auto save the document of DOCX Editor component into AWS S3

This article explains how to auto save the document in AWS S3. You can automatically save the edited content in regular intervals of time. It helps to reduce the risk of data loss by saving an open document automatically at customized intervals.

* In the client-side, using content change event, the edited content can be automatically saved in regular intervals of time. Based on `contentChanged` boolean, the document send as DOCX format to server-side using `saveAsBlob` method.
* In the client-side, using the [`contentChanged`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.DocumentEditor.DocumentEditorContainer.html#Syncfusion_EJ2_DocumentEditor_DocumentEditorContainer_ContentChanged) event, the edited content can be automatically saved in regular intervals of time. When the event is triggered, the document is sent as DOCX format to server-side using the [`saveAsBlob`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.DocumentEditor.DocumentEditor.html#Syncfusion_EJ2_DocumentEditor_DocumentEditor_SaveAsBlob) method.


{% tabs %}
Expand All @@ -25,7 +25,7 @@ This article explains how to auto save the document in AWS S3. You can automatic
{% endtabs %}


* Configure the access key and secret key in `web.config` file and register profile in `startup.cs`.
* Configure the access key and secret key in `web.config` file and register the profile in `startup.cs`.

In `web.config`, add key like below format:

Expand All @@ -43,7 +43,7 @@ In `startup.cs`, register profile in below format:
Amazon.Util.ProfileManager.RegisterProfile("sync_development","", "");
```

* In server-side, Receives the stream content from client-side and process it to save the document in aws s3. Add Web API in controller file like below to save the document in aws s3.
* In server-side, receives the stream content from client-side and processes it to save the document in AWS S3. Add Web API in controller file like below to save the document in AWS S3.

```c#
[AcceptVerbs("Post")]
Expand All @@ -57,7 +57,7 @@ public string SaveToS3()
file.CopyTo(stream);
UploadFileStreamToS3(stream, "documenteditor", "", "GettingStarted.docx");
stream.Close();
return "Sucess";
return "Success";
}

public bool UploadFileStreamToS3(System.IO.Stream localFilePath, string bucketName, string subDirectoryInBucket, string fileNameInS3)
Expand All @@ -69,15 +69,15 @@ public bool UploadFileStreamToS3(System.IO.Stream localFilePath, string bucketNa

if (subDirectoryInBucket == "" || subDirectoryInBucket == null)
{
request.BucketName = bucketName; //no subdirectory just bucket name
request.BucketName = bucketName; //no subdirectory just bucket name
}
else
{ // subdirectory and bucket name
request.BucketName = bucketName + @"/" + subDirectoryInBucket;
}
request.Key = fileNameInS3; //file name up in S3
request.Key = fileNameInS3; //file name up in S3
request.InputStream = localFilePath;
utility.Upload(request); //commensing the transfer
utility.Upload(request); //commencing the transfer

return true; //indicate that the file was sent
}
Expand Down