An alternative approach that you use TinyMCE is to use an additional JS file that adds the mceNoEditor class to text fields that you do not want to convert to rich text.
eg,
class fooAdmin(admin.Modeladmin) class Media: js = ['/path/to/admin-styling.js', '/paths/to/tinymce.js',]
In your tinymce.js init you need to make sure that a class is specified to disable the editor, for example:
editor_deselector : "mceNoEditor",
and in the admin-styling.js file there is some jQuery call in the document handler that finds certain elements and adds this class before calling TinyMCE.
You can usually do this with id_foo. for example, if you have a model field called extra_signs:
$('textarea#id_additional_notes').addClass('mceNoEditor');
It is also possible to use more complex jQuery selectors.
NTN
Steve
source share