Skip to content

Commit b0c2d90

Browse files
Integrated latest changes at 08-14-2025 1:30:09 PM
1 parent 761dea4 commit b0c2d90

File tree

67 files changed

+499
-119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+499
-119
lines changed

ej2-javascript/ai-assistview/js/es5-getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: Es5 getting started with ##Platform_Name## AI AssistView control | Syncfusion
3+
title: ES5 getting started with ##Platform_Name## AI AssistView | Syncfusion
44
description: Checkout and learn about Es5 getting started with ##Platform_Name## AI AssistView control of Syncfusion Essential JS 2 and more details.
55
platform: ej2-javascript
66
control: AI AssistView
@@ -9,7 +9,7 @@ documentation: ug
99
domainurl: ##DomainURL##
1010
---
1111

12-
# Es5 getting started in ##Platform_Name## AI AssistView control
12+
# ES5 getting started in ##Platform_Name## AI AssistView control
1313

1414
The Essential<sup style="font-size:70%">&reg;</sup> JS 2 for JavaScript (global script) is an ES5 formatted pure JavaScript framework which can be directly used in latest web browsers.
1515

@@ -185,7 +185,7 @@ The [`Custom Resource Generator (CRG)`](https://crg.syncfusion.com/) is an onlin
185185

186186
## Configure suggestions and responses
187187

188-
You can use the [promptSuggestions](../api/ai-assistview#promptsuggestions) property to add prompt suggestions and the [promptRequest](../api/ai-assistview#promptrequest) event to add responses when the prompt matches the specified prompts data otherwise, the default response will be displayed.
188+
You can use the [promptSuggestions](../api/ai-assistview/#promptsuggestions) property to add prompt suggestions and the [promptRequest](../api/ai-assistview/#promptrequest) event to add responses when the prompt matches the specified prompts data otherwise, the default response will be displayed.
189189

190190
{% tabs %}
191191
{% highlight js tabtitle="index.js" %}

ej2-javascript/ai-assistview/ts/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ The following example shows a basic AI AssistView control.
157157

158158
## Configure suggestions and responses
159159

160-
You can use the [promptSuggestions](../api/ai-assistview#promptsuggestions) property to add prompt suggestions and the [promptRequest](../api/ai-assistview#promptrequest) event to add responses when the prompt matches the specified prompts data otherwise, the default response will be displayed.
160+
You can use the [promptSuggestions](../api/ai-assistview/#promptsuggestions) property to add prompt suggestions and the [promptRequest](../api/ai-assistview/#promptrequest) event to add responses when the prompt matches the specified prompts data otherwise, the default response will be displayed.
161161

162162
{% tabs %}
163163
{% highlight js tabtitle="index.ts" %}

ej2-javascript/chat-ui/js/es5-getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ The [`Custom Resource Generator (CRG)`](https://crg.syncfusion.com/) is an onlin
187187

188188
## Configure messages and user
189189

190-
You can use the [messages](../api/chat-ui#messages) property to add messages and the [user](../api/chat-ui#user) property to configure the current user for the chat.
190+
You can use the [messages](../api/chat-ui/#messages) property to add messages and the [user](../api/chat-ui/#user) property to configure the current user for the chat.
191191

192192
{% tabs %}
193193
{% highlight js tabtitle="index.js" %}

ej2-javascript/chat-ui/messages.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,43 @@ You can use the `itemClicked` event when the toolbar item is clicked in the mess
676676

677677
## Displaying the markdown content
678678

679-
The Syncfusion ChatUI supports `Markdown` formatting for messages, enabling rich text capabilities such as bold, italic, links, and more. By integrating the [marked](https://github.com/markedjs/marked) library, you can parse Markdown text to enhance the chat experience. The [text](../api/chat-ui/messageModel/#text) property of each message can accept HTML generated from Markdown, allowing for formatted text display.
679+
The Syncfusion ChatUI supports `Markdown` formatting for messages, enabling rich text capabilities such as bold, italic, links, and more.
680+
681+
### Prerequisites
682+
683+
- Include the `marked` library:
684+
685+
```bash
686+
687+
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
688+
689+
```
690+
691+
- Include `DOMPurify` for sanitizing the Markdown output:
692+
693+
```bash
694+
695+
<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/2.4.0/purify.min.js"></script>
696+
697+
```
698+
699+
### Supported markdown formats
700+
701+
The ChatUI supports the following Markdown formats via the `marked` library:
702+
703+
- **Bold**: ** text ** or __ text __
704+
- *Italic*: * text * or _ text _
705+
- [Links](url): [Link text] (url)
706+
- Lists: - Item or 1. item
707+
- Code: 'code' or code
708+
709+
For full list refer to the [marked documentation](https://marked.js.org/).
710+
711+
### Configuring Markdown
712+
713+
By integrating the [marked](https://github.com/markedjs/marked) library, you can parse Markdown text to enhance the chat experience. The [text](../api/chat-ui/messageModel/#text) property of each message can accept HTML generated from Markdown, allowing for formatted text display.
714+
715+
> To prevent XSS attacks, sanitize Markdown output using `DOMPurify`.
680716
681717
{% if page.publishingplatform == "typescript" %}
682718

ej2-javascript/chat-ui/ts/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ The following example shows a basic Chat UI control.
159159

160160
## Configure messages and user
161161

162-
You can use the [messages](../api/chat-ui#messages) property to add messages and the [user](../api/chat-ui#user) property to configure the current user for the chat.
162+
You can use the [messages](../api/chat-ui/#messages) property to add messages and the [user](../api/chat-ui/#user) property to configure the current user for the chat.
163163

164164
{% tabs %}
165165
{% highlight ts tabtitle="index.ts" %}

ej2-javascript/code-snippet/block-editor/appearance/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
var blockData = [
33
{
44
id: 'title-block',
5-
type: 'Heading1',
5+
type: 'Heading',
6+
props: { level: 1 },
67
content: [
78
{
89
type: ej.blockeditor.ContentType.Text,
@@ -22,14 +23,16 @@ var blockData = [
2223
},
2324
{
2425
id: 'features-heading',
25-
type: 'Heading2',
26+
type: 'Heading',
27+
props: { level: 2 },
2628
content: [
2729
{
2830
type: ej.blockeditor.ContentType.Text,
2931
content: 'Configured Custom Theme'
3032
}
3133
]
3234
},
35+
3336
{
3437
id: 'theme-list-1',
3538
type: 'BulletList',

ej2-javascript/code-snippet/block-editor/appearance/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { BlockEditor, ContentType } from '@syncfusion/ej2-blockeditor';
33
const blockData = [
44
{
55
id: 'title-block',
6-
type: 'Heading1',
6+
type: 'Heading',
7+
props: { level: 1 },
78
content: [
89
{
910
type: ContentType.Text,
@@ -23,7 +24,8 @@ const blockData = [
2324
},
2425
{
2526
id: 'features-heading',
26-
type: 'Heading2',
27+
type: 'Heading',
28+
props: { level: 2 },
2729
content: [
2830
{
2931
type: ContentType.Text,

ej2-javascript/code-snippet/block-editor/blocks/block-types/callout-block/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
let blocksData = [
22
{
33
type: 'Callout',
4+
props:{
45
children: [{
56
id: 'callout-content',
67
type: 'Paragraph',
@@ -11,6 +12,7 @@ let blocksData = [
1112
}]
1213
}]
1314
}
15+
}
1416
];
1517

1618
var blockEditor = new ej.blockeditor.BlockEditor({

ej2-javascript/code-snippet/block-editor/blocks/block-types/callout-block/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { BlockEditor, BlockModel, ContentType } from "@syncfusion/ej2-blockedito
33
const blocksData: BlockModel[] = [
44
{
55
type: 'Callout',
6+
props:{
67
children: [{
78
id: 'callout-content',
89
type: 'Paragraph',
@@ -13,6 +14,7 @@ const blocksData: BlockModel[] = [
1314
}]
1415
}]
1516
}
17+
}
1618
];
1719

1820
const blockEditor = new BlockEditor({

ej2-javascript/code-snippet/block-editor/blocks/block-types/code-block/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let blocksData = [
77
content: 'function greeting() {\n console.log("Hello, world!");\n}'
88
}
99
],
10-
codeSettings: {
10+
props: {
1111
defaultLanguage: 'javascript',
1212
languages: [
1313
{ language: 'javascript', label: 'JavaScript' },

0 commit comments

Comments
 (0)