add TinyMCE to anwer_help
This commit is contained in:
+3
-1
@@ -29,6 +29,7 @@ from django.forms.widgets import RadioSelect, TextInput, Textarea
|
||||
|
||||
from dal import autocomplete
|
||||
|
||||
from tinymce.widgets import TinyMCE
|
||||
|
||||
class AnatomyAnswerForm(ModelForm):
|
||||
class Meta:
|
||||
@@ -151,7 +152,8 @@ class AnatomyQuestionForm(ModelForm):
|
||||
]
|
||||
|
||||
widgets = {
|
||||
"structure": autocomplete.ModelSelect2(url="atlas:structure-autocomplete")
|
||||
"structure": autocomplete.ModelSelect2(url="atlas:structure-autocomplete"),
|
||||
"answer_help": TinyMCE(attrs={"cols": 80, "rows": 20}),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user