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
I would like to preset the value (using javascript) of a form CharField that uses the RichTextarea widget. I have tried using text that has basic HTML in it - <p>Blah blah blah</p> - but the value attribute is empty after the assignment. What is required?
The assignment works fine when using the standard Django Textarea widget.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to preset the value (using javascript) of a form CharField that uses the RichTextarea widget. I have tried using text that has basic HTML in it -
<p>Blah blah blah</p>
- but the value attribute is empty after the assignment. What is required?The assignment works fine when using the standard Django Textarea widget.
Beta Was this translation helpful? Give feedback.
All reactions