Skip to content

Commit dcf77a5

Browse files
committed
Changes
1 parent e320f49 commit dcf77a5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

15/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/rich-text-editor/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,27 @@ Extend the functionality of the Rich Text Editor with plugins.
3535

3636
## Content Example
3737

38-
38+
![Rich Text Editor - Content Example](images/rte-tiptap-contentexample.png)
3939

4040
## MVC View Example
4141

42-
### Without Modelsbuilder
42+
### With Modelsbuilder
4343

4444
```csharp
4545
@{
46-
if (Model.HasValue("richText")){
47-
<p>@(Model.Value("richText"))</p>
46+
if (!string.IsNullOrEmpty(Model.RichText.ToString()))
47+
{
48+
<p>@Model.RichText</p>
4849
}
4950
}
5051
```
5152

52-
### With Modelsbuilder
53+
### Without Modelsbuilder
5354

5455
```csharp
5556
@{
56-
if (!string.IsNullOrEmpty(Model.RichText.ToString()))
57-
{
58-
<p>@Model.RichText</p>
57+
if (Model.HasValue("richText")){
58+
<p>@(Model.Value("richText"))</p>
5959
}
6060
}
6161
```
Loading

0 commit comments

Comments
 (0)