# rich-text-editor-blog-writing

> Rich text editor used to Create, format, and publish blog content using headings, lists, and images.

**Framework:** maui  **Component:** RichTextEditor  **Variant:** blog-writing

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/maui/rich-text-editor-blog-writing.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.Maui.RichTextEditor
```

**Notes**

- Syncfusion release: 2026 Volume 3 (v35.1.37)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/rich-text-editor-blog-writing/RichTextEditor.xaml

```xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:rte="clr-namespace:Syncfusion.Maui.RichTextEditor;assembly=Syncfusion.Maui.RichTextEditor"
             xmlns:model="clr-namespace:MAUI.Controls.RichTextEditor.BlogWriting"
             x:Class="MAUI.Controls.RichTextEditor.BlogWriting.RichTextEditorView"
             x:DataType="model:RichTextEditorViewModel">
    <ScrollView>
        <Grid Padding="15" RowSpacing="10"
              RowDefinitions="Auto, Auto,*,Auto">
            <Label Grid.Row="0" 
                   FontSize="18"
                   Margin="0,0,0,10"
                   Text="Blog Title"/>

            <!-- Blog Title -->
            <Entry x:Name="titleEntry"
                    Placeholder="Enter blog title"
                    FontSize="18"
                    Grid.Row="1"
                    Text="{Binding BlogTitleText,Mode=TwoWay}"
                    Margin="0,0,0,10"/>

            <!-- Rich Text Editor -->
            <rte:SfRichTextEditor
            x:Name="richTextEditor" Value="{Binding HtmlText,Mode=TwoWay}"
            Grid.Row="2" >
                <rte:SfRichTextEditor.ToolbarItems>
                    <rte:RichTextEditorToolBarItemCollection>
                        <rte:RichTextToolbarItem Type="Bold"/>
                        <rte:RichTextToolbarItem Type="Italic"/>
                        <rte:RichTextToolbarItem Type="Underline"/>
                        <rte:RichTextToolbarItem Type="Separator"/>
                        <rte:RichTextToolbarItem Type="ParagraphFormat"/>
                        <rte:RichTextToolbarItem Type="Separator"/>
                        <rte:RichTextToolbarItem Type="BulletList"/>
                        <rte:RichTextToolbarItem Type="NumberList"/>
                        <rte:RichTextToolbarItem Type="Separator"/>
                        <rte:RichTextToolbarItem Type="Image"/>
                    </rte:RichTextEditorToolBarItemCollection>
                </rte:SfRichTextEditor.ToolbarItems>
            </rte:SfRichTextEditor>

            <Grid Grid.Row="3" ColumnDefinitions="*,Auto,Auto" ColumnSpacing="8">
                <Label Text="{Binding StatusMessage}" VerticalTextAlignment="Center" Opacity="0.75" />
                <Button Grid.Column="1" Text="Cancel" Command="{Binding CancelCommand}" />
                <Button Grid.Column="2" Text="Publish" Command="{Binding PublishCommand}" />
            </Grid>
            
        </Grid>
    </ScrollView>
</ContentPage>

```

### src/components/rich-text-editor-blog-writing/RichTextEditor.xaml.cs

```cs
namespace MAUI.Controls.RichTextEditor.BlogWriting
{
    public partial class RichTextEditorView : ContentPage
    {
        public RichTextEditorView(RichTextEditorViewModel viewModel)
        {
            InitializeComponent();
            BindingContext = viewModel;
        }
    }
}

```
