Skip to content

Commit d7258a2

Browse files
Merge pull request #3812 from syncfusion-content/RTE-Text-HtmlText-Changes-dev
993736 Revamped the RichTextEditor Text and HtmlText property UG content [dev]
2 parents f0bf33a + 801efb3 commit d7258a2

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

MAUI/Rich-Text-Editor/Advanced-Features.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,50 @@ documentation: ug
1111

1212
This section covers the essential properties, methods, and events of the .NET MAUI [SfRichTextEditor](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.RichTextEditor.SfRichTextEditor.html) for handling content and user interactions.
1313

14-
## Setting Text
14+
## Setting Plain Text
1515

16-
The Rich Text Editor control displays the text/formatted text(HTML string) that can be set using the [Text](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.RichTextEditor.SfRichTextEditor.html#Syncfusion_Maui_RichTextEditor_SfRichTextEditor_Text) property.
16+
The Rich Text Editor control displays the plain text that can be set using the [Text](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.RichTextEditor.SfRichTextEditor.html#Syncfusion_Maui_RichTextEditor_SfRichTextEditor_Text) property.
1717

1818
{% tabs %}
1919

2020
{% highlight xaml %}
2121

22-
<richtexteditor:SfRichTextEditor Text= "The &lt;b&gt; rich text editor &lt;/b&gt; component is WYSIWYG editor that provides the best user experience to create and update the content" />
22+
<richtexteditor:SfRichTextEditor Text="The rich text editor component is WYSIWYG editor that provides the best user experience to create and update the content" />
2323

2424
{% endhighlight %}
2525

2626
{% highlight C# %}
2727

2828
SfRichTextEditor richTextEditor = new SfRichTextEditor();
29-
richtexteditor.Text = "The <b>rich text editor</b> component is WYSIWYG editor that provides the best user experience to create and update the content";
29+
richTextEditor.Text = "The rich text editor component is WYSIWYG editor that provides the best user experience to create and update the content";
3030

3131
{% endhighlight %}
3232

3333
{% endtabs %}
3434

35-
## Retrieving HTML text
35+
![.NET MAUI Rich Text Editor with Text](images/richtexteditor-text-property.png)
3636

37-
The formatted text of Rich Text Editor can be retrieved using the [HtmlText](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.RichTextEditor.SfRichTextEditor.html#Syncfusion_Maui_RichTextEditor_SfRichTextEditor_HtmlText) property of `SfRichTextEditor`.
37+
## Setting HTML Formatted Text
38+
39+
The [HtmlText](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.RichTextEditor.SfRichTextEditor.html#Syncfusion_Maui_RichTextEditor_SfRichTextEditor_HtmlText) property of the `SfRichTextEditor` control is used to set HTML formatted text.
3840

3941
{% tabs %}
4042

4143
{% highlight xaml %}
4244

43-
<richtexteditor:SfRichTextEditor HtmlText="The rich text editor component is WYSIWYG editor that provides the best user experience to create and update the content" />
45+
<richtexteditor:SfRichTextEditor HtmlText= "The &lt;b&gt; rich text editor &lt;/b&gt; component is WYSIWYG editor that provides the best user experience to create and update the content" />
4446

4547
{% endhighlight %}
4648

4749
{% highlight C# %}
4850

4951
SfRichTextEditor richTextEditor = new SfRichTextEditor();
50-
richtexteditor.HtmlText = "The rich text editor component is WYSIWYG editor that provides the best user experience to create and update the content";
52+
richTextEditor.HtmlText = "The <b>rich text editor</b> component is WYSIWYG editor that provides the best user experience to create and update the content";
5153

5254
{% endhighlight %}
5355

5456
{% endtabs %}
57+
![.NET MAUI Rich Text Editor with HtmlText](images/richtexteditor-htmltext-property.png)
5558

5659

5760
## Getting Selected HTML
25.7 KB
Loading
19.2 KB
Loading

0 commit comments

Comments
 (0)