You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 15/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/rich-text-editor/README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,27 +35,27 @@ Extend the functionality of the Rich Text Editor with plugins.
35
35
36
36
## Content Example
37
37
38
-
38
+

39
39
40
40
## MVC View Example
41
41
42
-
### Without Modelsbuilder
42
+
### With Modelsbuilder
43
43
44
44
```csharp
45
45
@{
46
-
if (Model.HasValue("richText")){
47
-
<p>@(Model.Value("richText"))</p>
46
+
if (!string.IsNullOrEmpty(Model.RichText.ToString()))
47
+
{
48
+
<p>@Model.RichText</p>
48
49
}
49
50
}
50
51
```
51
52
52
-
### With Modelsbuilder
53
+
### Without Modelsbuilder
53
54
54
55
```csharp
55
56
@{
56
-
if (!string.IsNullOrEmpty(Model.RichText.ToString()))
0 commit comments