We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8fa0ca commit 12ec16bCopy full SHA for 12ec16b
docs/backend/fields.md
@@ -226,7 +226,7 @@ Note that we would normally look up the default output type from the field insta
226
```python
227
from plone.app.textfield.value import RichTextValue
228
229
-context.body = RichTextValue("Some input text", 'text/plain', 'text/html')
+context.body = RichTextValue("Some input text", mimeType="text/html", outputMimeType="text/x-html-safe")
230
```
231
232
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