Skip to content

Commit 3e4292b

Browse files
Integrated latest changes at 11-17-2025 1:30:06 PM
1 parent d41629d commit 3e4292b

File tree

6 files changed

+44
-55
lines changed

6 files changed

+44
-55
lines changed

ej2-javascript/code-snippet/rich-text-editor/mention-suggestion-count/js/index.html

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,15 @@
2424
<div id="container">
2525
<div id="mentionEditor"></div>
2626
<div id="mention_integration">
27-
<p>
28-
Hello
29-
<span contenteditable="false" class="e-mention-chip"
30-
><a href="mailto:maria@gmail.com" title="maria@gmail.com"
31-
>Maria</a
32-
></span
33-
>
34-
</p>
35-
36-
<p>
37-
Type <code>@</code> followed by at least
38-
<strong>3 characters</strong> to trigger the suggestion list.
39-
</p>
27+
<p>
28+
Hello
29+
<span contenteditable="false" class="e-mention-chip"
30+
><a href="mailto:maria@gmail.com" title="maria@gmail.com"
31+
>Maria</a
32+
></span
33+
>&#8203;
34+
</p>
35+
<p>The suggestion list displays only 5 items when typing the &#64; character, as the data source contains a large set of entries</p>
4036
</div>
4137
</div>
4238

ej2-javascript/code-snippet/rich-text-editor/mention-suggestion-count/ts/index.html

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,15 @@
2626
<div id='container'>
2727
<div id="mentionEditor"></div>
2828
<div id="mention_integration">
29-
<p>
30-
Hello
31-
<span contenteditable="false" class="e-mention-chip"
32-
><a href="mailto:maria@gmail.com" title="maria@gmail.com"
33-
>Maria</a
34-
></span
35-
>
36-
</p>
37-
38-
<p>
39-
Type <code>@</code> followed by at least
40-
<strong>3 characters</strong> to trigger the suggestion list.
41-
</p>
29+
<p>
30+
Hello
31+
<span contenteditable="false" class="e-mention-chip"
32+
><a href="mailto:maria@gmail.com" title="maria@gmail.com"
33+
>Maria</a
34+
></span
35+
>&#8203;
36+
</p>
37+
<p>The suggestion list displays only 5 items when typing the &#64; character, as the data source contains a large set of entries</p>
4238
</div>
4339
</div>
4440
</body>

ej2-javascript/code-snippet/rich-text-editor/nested-blockquote/index.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ var editor = new ej.richtexteditor.RichTextEditor({
99
</blockquote>
1010
</blockquote>
1111
</blockquote>
12-
`,
13-
toolbarSettings: {
14-
items: ['Blockquote', 'Bold', 'Italic', 'Underline', 'StrikeThrough',
15-
'FontName', 'FontSize',
16-
'LowerCase', 'UpperCase', '|',
17-
'Formats', 'Alignments', 'OrderedList', 'UnorderedList',
18-
'Outdent', 'Indent', '|', 'Undo', 'Redo']
19-
}});
12+
`
13+
});
2014
editor.appendTo('#editor');

ej2-javascript/code-snippet/rich-text-editor/nested-blockquote/index.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ let editor: RichTextEditor = new RichTextEditor({
1212
</blockquote>
1313
</blockquote>
1414
</blockquote>
15-
`,
16-
toolbarSettings: {
17-
items: ['Blockquote', 'Bold', 'Italic', 'Underline', 'StrikeThrough',
18-
'FontName', 'FontSize',
19-
'LowerCase', 'UpperCase', '|',
20-
'Formats', 'Alignments', 'OrderedList', 'UnorderedList',
21-
'Outdent', 'Indent', '|', 'Undo', 'Redo']
22-
}});
15+
`
16+
});
2317
editor.appendTo('#editor');

ej2-javascript/rich-text-editor/selection.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ This functionality is useful for scenarios where precise text selection is neede
2727
{% include code-snippet/rich-text-editor/selection/index.html %}
2828
{% endhighlight %}
2929
{% endtabs %}
30+
31+
{% previewsample "page.domainurl/code-snippet/rich-text-editor/selection" %}
3032

3133
{% elsif page.publishingplatform == "javascript" %}
3234

@@ -59,6 +61,8 @@ The following example demonstrates how to select a paragraph node programmatical
5961
{% endhighlight %}
6062
{% endtabs %}
6163

64+
{% previewsample "page.domainurl/code-snippet/rich-text-editor/node-selection" %}
65+
6266
{% elsif page.publishingplatform == "javascript" %}
6367

6468
{% tabs %}
@@ -73,6 +77,7 @@ The following example demonstrates how to select a paragraph node programmatical
7377
{% previewsample "page.domainurl/code-snippet/rich-text-editor/node-selection" %}
7478
{% endif %}
7579

80+
7681
## Cell selection
7782

7883
Cell selection allows users to programmatically select specific table cells within the Rich Text Editor. This is useful for highlighting or manipulating content inside tables without requiring manual user interaction.
@@ -90,6 +95,8 @@ The following example demonstrates how to select a table cell programmatically u
9095
{% endhighlight %}
9196
{% endtabs %}
9297

98+
{% previewsample "page.domainurl/code-snippet/rich-text-editor/cell-selection" %}
99+
93100
{% elsif page.publishingplatform == "javascript" %}
94101

95102
{% tabs %}
@@ -119,6 +126,8 @@ To select all content within the Rich Text Editor, use the [selectAll](https://e
119126
{% endhighlight %}
120127
{% endtabs %}
121128

129+
{% previewsample "page.domainurl/code-snippet/rich-text-editor/select-all" %}
130+
122131
{% elsif page.publishingplatform == "javascript" %}
123132

124133
{% tabs %}
@@ -130,5 +139,5 @@ To select all content within the Rich Text Editor, use the [selectAll](https://e
130139
{% endhighlight %}
131140
{% endtabs %}
132141

133-
{% previewsample "page.domainurl/code-snippet/rich-text-editor/cell-selection" %}
134-
{% endif %}
142+
{% previewsample "page.domainurl/code-snippet/rich-text-editor/select-all" %}
143+
{% endif %}

ej2-javascript/rich-text-editor/smart-editing/mentions.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ By integrating the [Mention](https://ej2.syncfusion.com/documentation/mention/ge
1515

1616
## Setup and configuration
1717

18-
Use the [target](https://ej2.syncfusion.com/documentation/api/mention/#target) property of the Mention control to specify the `ID` of the content editable div element within the Rich Text Editor. When setting the target, make sure to append the suffix `_rte-edit-view` to the ID. This allows you to enable the Mention functionality within the Rich Text Editor, so that users can mention or tag other users or objects from the suggested list while editing the text.
18+
Use the [target](https://ej2.syncfusion.com/documentation/api/mention#target) property of the Mention control to specify the `ID` of the content editable div element within the Rich Text Editor. When setting the target, make sure to append the suffix `_rte-edit-view` to the ID. This allows you to enable the Mention functionality within the Rich Text Editor, so that users can mention or tag other users or objects from the suggested list while editing the text.
1919

2020
## Using mentions
2121

@@ -28,11 +28,11 @@ When the user types the `@` symbol followed by a character, the Rich Text Editor
2828

2929
### Minimum input length for Mention suggestions
3030

31-
You can control when the suggestion list appears by setting the [minLength](https://ej2.syncfusion.com/documentation/api/mention/#minlength) property in the Mention control. This property defines the minimum number of characters a user must type after the mention character (@) to trigger the search action. This is especially useful when working with large datasets, as it helps reduce unnecessary queries and improves performance.
31+
You can control when the suggestion list appears by setting the [minLength](https://ej2.syncfusion.com/documentation/api/mention#minlength) property in the Mention control. This property defines the minimum number of characters a user must type after the mention character (@) to trigger the search action. This is especially useful when working with large datasets, as it helps reduce unnecessary queries and improves performance.
3232

3333
By default, `minLength` is set to 0, which means the suggestion list appears immediately after the mention character is entered. However, you can increase this value to delay the search until the user has typed a specific number of characters.
3434

35-
In the following example, the ``minLength` is set to 3, so the suggestion list will only appear once the user types three or more characters after the @ symbol.
35+
In the following example, the `minLength` is set to 3, so the suggestion list will only appear once the user types three or more characters after the @ symbol.
3636

3737
{% if page.publishingplatform == "typescript" %}
3838

@@ -63,7 +63,7 @@ In the following example, the ``minLength` is set to 3, so the suggestion list w
6363

6464
### Customizing suggestion list count
6565

66-
You can control the number of items displayed in the Mention suggestion list using the [suggestionCount](https://ej2.syncfusion.com/documentation/api/mention/#suggestioncount) property. This is particularly useful when working with large datasets, allowing you to limit the number of suggestions shown to the user.
66+
You can control the number of items displayed in the Mention suggestion list using the [suggestionCount](https://ej2.syncfusion.com/documentation/api/mention#suggestioncount) property. This is particularly useful when working with large datasets, allowing you to limit the number of suggestions shown to the user.
6767

6868
By default, the suggestion list displays 25 items. You can customize this value to show fewer or more items based on your application's needs.
6969

@@ -93,18 +93,18 @@ In the example below, the `suggestionCount` is set to 5, so only 5 items will be
9393
{% endhighlight %}
9494
{% endtabs %}
9595

96-
{% previewsample "page.domainurl/code-snippet/rich-text-editor/mention-min-char" %}
96+
{% previewsample "page.domainurl/code-snippet/rich-text-editor/mention-suggestion-count" %}
9797
{% endif %}
9898

9999
### Customizing suggestion list using templates
100100

101101
#### Item template
102102

103-
You can customize how each item appears in the suggestion list using the [itemTemplate](https://ej2.syncfusion.com/documentation/api/mention/#itemtemplate) property. This allows you to display additional details such as email, role, or profile image alongside the mention name.
103+
You can customize how each item appears in the suggestion list using the [itemTemplate](https://ej2.syncfusion.com/documentation/api/mention#itemtemplate) property. This allows you to display additional details such as email, role, or profile image alongside the mention name.
104104

105105
#### Display template
106106

107-
Use the [displayTemplate](https://ej2.syncfusion.com/documentation/api/mention/#displaytemplate) property to define how the selected mention appears in the editor content.
107+
Use the [displayTemplate](https://ej2.syncfusion.com/documentation/api/mention#displaytemplate) property to define how the selected mention appears in the editor content.
108108

109109
For example, by default, the mention chip renders as:
110110

@@ -124,10 +124,10 @@ This allows you to create more interactive and informative mentions within the e
124124

125125
In the following sample, we configured the following properties:
126126

127-
* [itemTemplate](https://ej2.syncfusion.com/documentation/api/mention/#itemtemplate) - Used to display the customized appearance in suggestion list.
128-
* [displayTemplate](https://ej2.syncfusion.com/documentation/api/mention/#displaytemplate) - Used to customize how the selected value appears in the editor content.
129-
* [allowSpaces](https://ej2.syncfusion.com/documentation/api/mention/#allowspaces) - Allow to continue search action if user enter space after mention character while searching.
130-
* [suggestionCount](https://ej2.syncfusion.com/documentation/api/mention/#suggestioncount) - The maximum number of items that will be displayed in the suggestion list.
127+
* [itemTemplate](https://ej2.syncfusion.com/documentation/api/mention#itemtemplate) - Used to display the customized appearance in suggestion list.
128+
* [displayTemplate](https://ej2.syncfusion.com/documentation/api/mention#displaytemplate) - Used to customize how the selected value appears in the editor content.
129+
* [allowSpaces](https://ej2.syncfusion.com/documentation/api/mention#allowspaces) - Allow to continue search action if user enter space after mention character while searching.
130+
* [suggestionCount](https://ej2.syncfusion.com/documentation/api/mention#suggestioncount) - The maximum number of items that will be displayed in the suggestion list.
131131

132132
{% if page.publishingplatform == "typescript" %}
133133

0 commit comments

Comments
 (0)