1

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.

Dmitrii Mikhailov
  • 5,053
  • 7
  • 43
  • 69

1 Answers1

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