Skip to content

Commit ec97ca5

Browse files
Merge pull request #1582 from syncfusion-content/983076-UGBlazor
983076: Modified the Blazor Word-Processor UG changes-2
2 parents 3ea6c32 + 68056d6 commit ec97ca5

40 files changed

+326
-264
lines changed

Document-Processing/Word/Word-Processor/blazor/accessibility.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ documentation: ug
99

1010
# Accessibility in Blazor DocumentEditor Component
1111

12-
The [Blazor Document Editor](https://www.syncfusion.com/blazor-components/blazor-word-processor) component followed the accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria#roles) that are commonly used to evaluate accessibility.
12+
The [Blazor Document Editor](https://www.syncfusion.com/blazor-components/blazor-word-processor) component follows the accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria#roles) that are commonly used to evaluate accessibility.
1313

1414
The accessibility compliance for the Blazor Document Editor component is outlined below.
1515

@@ -38,6 +38,8 @@ The accessibility compliance for the Blazor Document Editor component is outline
3838

3939
## Keyboard interaction
4040

41+
The Document Editor supports a wide range of keyboard shortcuts to facilitate common actions, including text formatting, paragraph formatting, navigation, and editing.
42+
4143
### Text formatting
4244

4345
The following table lists the default keyboard shortcuts in document editor for formatting text:
Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,54 @@
11
---
22
layout: post
33
title: Bookmarks in Blazor DocumentEditor Component | Syncfusion
4-
description: Checkout and learn here all about the Bookmarks in Syncfusion Blazor DocumentEditor component and more.
4+
description: Learn how to add, navigate, and manage bookmarks in the Syncfusion Blazor Document Editor component both through the UI and programmatically.
55
platform: document-processing
66
control: DocumentEditor
77
documentation: ug
88
---
99

1010
# Bookmarks in Blazor DocumentEditor Component
1111

12-
Bookmark is a powerful tool that helps you to mark a place in the document to find again easily. You can enter many bookmarks in the document and give each one a unique name to identify easily.
12+
A bookmark is a powerful tool that marks a specific place in a document so you can easily find it again. You can insert multiple bookmarks in a document and give each one a unique name for easy identification.
1313

14-
[`Blazor Word Processor`](https://www.syncfusion.com/blazor-components/blazor-word-processor) component (a.k.a Document Editor) component provides built-in dialog and using code to add, delete, and navigate bookmarks within the document. To add a bookmark, select a portion of text in the document. After that, jump to the location or add links to it within the document using built-in hyperlink dialog. You can also delete bookmarks from a document.
14+
The [Blazor Word Processor](https://www.syncfusion.com/blazor-components/blazor-word-processor) (Document Editor) provides two ways to manage bookmarks: through a built-in dialog or programmatically using API methods. Once a bookmark is added, you can jump to its location or create hyperlinks to it.
1515

1616
N>Bookmark names need to begin with a letter. They can include both numbers and letters, but not spaces. To separate the words, use an underscore. Bookmark names starting with an underscore are called hidden bookmarks. For example, bookmarks generated for table of contents.
1717

18-
You can open the bookmark dialog using Bookmark options in toolbar. You can also explore our [`Blazor Word Processor - Bookmark`](https://blazor.syncfusion.com/demos/document-editor/hyperlinks-and-bookmarks) example to know more about bookmark.
18+
The bookmark dialog can be opened using the Bookmark option in the toolbar. For more details on bookmark functionality, refer to the [`Blazor Word Processor - Bookmark`](https://document.syncfusion.com/demos/docx-editor/blazor-server/document-editor/hyperlinks-and-bookmarks) example.
1919

2020

21-
## Add bookmark
21+
## Add a bookmark
2222

23-
Using [`InsertBookmarkAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.EditorModule.html#Syncfusion_Blazor_DocumentEditor_EditorModule_InsertBookmarkAsync_System_String_) method, Bookmark can be added to the selected text.
23+
Use the [`InsertBookmarkAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.EditorModule.html#Syncfusion_Blazor_DocumentEditor_EditorModule_InsertBookmarkAsync_System_String_) method to add a bookmark to the currently selected text.
2424

2525
```csharp
2626
await container.DocumentEditor.Editor.InsertBookmarkAsync("Bookmark1");
2727
```
2828

29-
## Select Bookmark
29+
## Navigate to a bookmark
3030

31-
You can select the bookmark in the document using [`SelectBookmarkAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.SelectionModule.html#Syncfusion_Blazor_DocumentEditor_SelectionModule_SelectBookmarkAsync_System_String_) method by providing Bookmark name to select as shown in the following code snippet.
31+
Use the [`SelectBookmarkAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.SelectionModule.html#Syncfusion_Blazor_DocumentEditor_SelectionModule_SelectBookmarkAsync_System_String_) method to navigate to and select a bookmark by its name.
3232

3333
```csharp
3434
await container.DocumentEditor.Selection.SelectBookmarkAsync("Bookmark1");
3535
```
3636

37-
## Delete Bookmark
37+
## Delete a Bookmark
3838

39-
You can delete bookmark in the document using [`DeleteBookmarkAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.EditorModule.html#Syncfusion_Blazor_DocumentEditor_EditorModule_DeleteBookmarkAsync_System_String_) method as shown in the following code snippet.
39+
Use the [`DeleteBookmarkAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.EditorModule.html#Syncfusion_Blazor_DocumentEditor_EditorModule_DeleteBookmarkAsync_System_String_) method to delete a bookmark by its name.
4040

4141
```csharp
4242
await container.DocumentEditor.Editor.DeleteBookmarkAsync("Bookmark1");
4343
```
4444

45-
## Get Bookmark
45+
## Get all bookmarks
4646

47-
You can get all the bookmarks in the document using [`GetBookmarksAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.SelectionModule.html#Syncfusion_Blazor_DocumentEditor_SelectionModule_GetBookmarksAsync_System_Boolean_) method as shown in the following code snippet.
47+
Use the [`GetBookmarksAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.SelectionModule.html#Syncfusion_Blazor_DocumentEditor_SelectionModule_GetBookmarksAsync_System_Boolean_) method to retrieve a list of all bookmarks in the document.
4848

4949
```csharp
50-
await container.DocumentEditor.Selection.GetBookmarksAsync(false);
50+
// Get all bookmarks, including hidden ones.
51+
await container.DocumentEditor.Selection.GetBookmarksAsync(true);
5152
```
5253

53-
N> Parameter denotes is include hidden bookmarks. If false, ignore hidden bookmark.
54+
N> The boolean parameter of `GetBookmarksAsync` specifies whether to include hidden bookmarks in the result. If `false`, hidden bookmarks are excluded.
Lines changed: 36 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,74 @@
11
---
22
layout: post
33
title: Clipboard in Blazor DocumentEditor Component | Syncfusion
4-
description: Checkout and learn here all about Clipboard in Syncfusion Blazor DocumentEditor component and much more.
4+
description: Learn how to perform cut, copy, and paste clipboard operations in the Syncfusion Blazor Document Editor component, both programmatically and through the UI.
55
platform: document-processing
66
control: DocumentEditor
77
documentation: ug
88
---
99

1010
# Clipboard in Blazor DocumentEditor Component
1111

12-
[Blazor Word Processor](https://www.syncfusion.com/blazor-components/blazor-word-processor) component (a.k.a Document Editor) provides built-in support for clipboard operations such as cut, copy, and paste. You can perform the clipboard operations using keyboard shortcuts, touch, and keyboard interactions. Also, the same functionalities can be invoked programmatically.
12+
The [Blazor Word Processor](https://www.syncfusion.com/blazor-components/blazor-word-processor) (Document Editor) provides built-in support for clipboard operations, including cut, copy, and paste. These actions can be performed through the toolbar, context menus, standard keyboard shortcuts, or programmatically via the component's APIs.
1313

14-
There is a built-in clipboard (local clipboard) with this Word processor component, which allows the users to perform cut, copy, and paste faster. If you want to use system clipboard instead of local clipboard, turn off the local clipboard by setting the [`EnableLocalPaste`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.SfDocumentEditor.html#Syncfusion_Blazor_DocumentEditor_SfDocumentEditor_EnableLocalPaste) to false.
14+
## Local vs. System Clipboard
1515

16-
If you need to copy or paste the contents from other applications, use system clipboard. To copy or paste the contents within the Word processor component, use local clipboard.
16+
The Document Editor supports two clipboard modes to handle content transfer:
17+
18+
To copy or paste contents from other applications, the system clipboard should be used. To copy or paste the contents within the Word processor component, use local clipboard.
1719

1820
Let’s see how to invoke each clipboard operations using code.
1921

20-
## Copy
22+
* **Local Clipboard (Default)**: This is a built-in clipboard that is optimized for performance when cutting, copying, and pasting content **within** the editor itself. It is enabled by default.
23+
* **System Clipboard**: This is the operating system's standard clipboard, which allows for transferring content between the Document Editor and other applications.
24+
25+
To use the system clipboard, set the [`EnableLocalPaste`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.SfDocumentEditor.html#Syncfusion_Blazor_DocumentEditor_SfDocumentEditor_EnableLocalPaste) property to `false`. When this property is false, all clipboard operations will use the system clipboard.
2126

22-
You can copy the selected contents using the [`CopyAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.SelectionModule.html#Syncfusion_Blazor_DocumentEditor_SelectionModule_CopyAsync) method as shown in the following code example.
27+
## Programmatic Clipboard Operations
28+
29+
You can programmatically invoke clipboard operations using the editor's API methods. The following example demonstrates how to call the [`CutAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.EditorModule.html#Syncfusion_Blazor_DocumentEditor_EditorModule_CutAsync), [`CopyAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.SelectionModule.html#Syncfusion_Blazor_DocumentEditor_SelectionModule_CopyAsync), and [`PasteAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.EditorModule.html#Syncfusion_Blazor_DocumentEditor_EditorModule_PasteAsync_System_String_System_Nullable_Syncfusion_Blazor_DocumentEditor_PasteOptions__) methods.
2330

2431
```cshtml
2532
@using Syncfusion.Blazor.DocumentEditor
2633
2734
<button @onclick="CopyClick">Copy</button>
28-
<SfDocumentEditorContainer @ref="container" EnableToolbar=true></SfDocumentEditorContainer>
35+
<button @onclick="CutClick">Cut</button>
36+
<button @onclick="PasteClick">Paste</button>
37+
<SfDocumentEditorContainer @ref="container" EnableToolbar=true>
38+
</SfDocumentEditorContainer>
2939
3040
@code {
3141
SfDocumentEditorContainer container;
32-
protected async void CopyClick(object args)
42+
protected async void CopyClick()
3343
{
44+
// Copies the selected content to the clipboard.
3445
await container.DocumentEditor.Selection.CopyAsync();
3546
}
36-
}
37-
```
38-
39-
## Cut
40-
41-
You can cut the selected content using the ['Cut'](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.EditorModule.html#Syncfusion_Blazor_DocumentEditor_EditorModule_CutAsync) method as shown in the following code example.
42-
43-
```cshtml
44-
@using Syncfusion.Blazor.DocumentEditor
45-
46-
<button @onclick="CutClick">Cut</button>
47-
<SfDocumentEditorContainer @ref="container" EnableToolbar=true></SfDocumentEditorContainer>
48-
49-
@code {
50-
SfDocumentEditorContainer container;
51-
protected async void CutClick(object args)
47+
protected async void CutClick()
5248
{
49+
// Cuts the selected content and moves it to the clipboard.
5350
await container.DocumentEditor.Editor.CutAsync();
5451
}
52+
protected async void PasteClick()
53+
{
54+
// Pastes content from the clipboard to the current cursor position.
55+
// This will use the local or system clipboard based on the EnableLocalPaste property.
56+
await container.DocumentEditor.Editor.PasteAsync();
57+
}
5558
}
56-
5759
```
60+
### Copy
5861

59-
## Paste
60-
61-
## Local paste
62+
The [`CopyAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.SelectionModule.html#Syncfusion_Blazor_DocumentEditor_SelectionModule_CopyAsync) method copies the currently selected content in the editor to the clipboard.
6263

63-
The following code example shows how to perform the paste operation from the local clipboard.
64+
### Cut
6465

65-
```cshtml
66-
@using Syncfusion.Blazor.DocumentEditor
66+
The [`CutAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.EditorModule.html#Syncfusion_Blazor_DocumentEditor_EditorModule_CutAsync) method removes the currently selected content from the editor and moves it to the clipboard.
6767

68-
<button @onclick="PasteClick">Paste</button>
69-
<SfDocumentEditorContainer @ref="container" EnableToolbar=true EnableLocalPaste=true></SfDocumentEditorContainer>
70-
@code {
71-
SfDocumentEditorContainer container;
72-
protected async void PasteClick(object args)
73-
{
74-
await container.DocumentEditor.Editor.PasteAsync();
75-
}
76-
}
68+
### Paste
7769

78-
```
70+
The [`PasteAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.EditorModule.html#Syncfusion_Blazor_DocumentEditor_EditorModule_PasteAsync) method inserts the content from the clipboard at the current cursor position. Its behavior depends on the `EnableLocalPaste` property:
71+
* If `true` (default), it pastes from the editor's local clipboard.
72+
* If `false`, it pastes from the system clipboard.
7973

80-
You can also explore our [Blazor Word Processor](https://document.syncfusion.com/demos/docx-editor/blazor-server/document-editor/default-functionalities) example to know how to render and configure the document editor.
74+
Explore the [Blazor Word Processor example](https://document.syncfusion.com/demos/docx-editor/blazor-server/document-editor/default-functionalities) to see how to render and configure the Document Editor.

Document-Processing/Word/Word-Processor/blazor/comments.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
layout: post
33
title: Comments in Blazor DocumentEditor Component | Syncfusion
4-
description: Checkout and learn here all about the Comments in Syncfusion Blazor DocumentEditor component and more.
4+
description: Learn how to add, navigate, reply to, and manage comments in the Syncfusion Blazor Document Editor component, including how to use comments-only protection.
55
platform: document-processing
66
control: DocumentEditor
77
documentation: ug
88
---
99

1010
# Comments in Blazor DocumentEditor Component
1111

12-
[`Blazor Word Processor`](https://www.syncfusion.com/blazor-components/blazor-word-processor) component (a.k.a Document Editor) component allows you to add comments to documents. You can add, navigate and remove comments using code and from the UI.
12+
The [Blazor Word Processor](https://www.syncfusion.com/blazor-components/blazor-word-processor) (Document Editor) provides comprehensive support for adding, navigating, and managing comments within a document. These features facilitate collaborative review and feedback cycles. Operations can be performed both through the built-in user interface and programmatically using APIs.
1313

1414
## Add a new comment
1515

@@ -47,9 +47,9 @@ You can delete all the comments in the document using [`DeleteAllCommentsAsync`]
4747
await container.DocumentEditor.Editor.DeleteAllCommentsAsync();
4848
```
4949

50-
## Protect the document in comments only mode
50+
## Protect the Document in Comments-Only Mode
5151

52-
Document Editor provides support for protecting the document with `CommentsOnly` protection. In this protection, user allowed to add or edit comments alone in the document.
52+
The Document Editor supports a special protection mode that restricts user actions to only adding or editing comments. When `CommentsOnly` protection is active, users cannot make changes to the document's content.
5353

5454
Document editor provides an option to protect and unprotect document using [`EnforceProtectionAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.EditorModule.html#Syncfusion_Blazor_DocumentEditor_EditorModule_EnforceProtectionAsync_System_String_Syncfusion_Blazor_DocumentEditor_ProtectionType_) and [`StopProtectionAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.EditorModule.html#Syncfusion_Blazor_DocumentEditor_EditorModule_StopProtectionAsync_System_String_) API.
5555

0 commit comments

Comments
 (0)