I use django-tinymce to input formatted text. I need to disable whole field in form and all editor buttons but can't find how. If anyone has idea about how it can be done, please help.
Asked
Active
Viewed 123 times
1 Answers
0
You have to use HTML read only
attribute. Here's a trick to do that via widget:
myform.fields['status'].widget.attrs['readonly'] = True

Joyfulgrind
- 2,762
- 8
- 34
- 41
-
I apply this thing to all fields in my form and it doesn't work on the tinymce field only. – Dmitrii Mikhailov Aug 31 '13 at 19:56