Skip to content

Commit 12ec16b

Browse files
committed
fix RichTextValue paramters
1 parent f8fa0ca commit 12ec16b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/backend/fields.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Note that we would normally look up the default output type from the field insta
226226
```python
227227
from plone.app.textfield.value import RichTextValue
228228

229-
context.body = RichTextValue("Some input text", 'text/plain', 'text/html')
229+
context.body = RichTextValue("Some input text", mimeType="text/html", outputMimeType="text/x-html-safe")
230230
```
231231

232232
The standard widget used for a `RichText` field will correctly store this type of object for you, so it is rarely necessary to create one yourself.

0 commit comments

Comments
 (0)