From 38fa552c00f140a77b963f03b38fa6bae485cdcd Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 13 Jun 2020 23:16:19 +0100 Subject: Disable TinyMCE --- core/forms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/forms.py') diff --git a/core/forms.py b/core/forms.py index 417ed10..7f33e05 100644 --- a/core/forms.py +++ b/core/forms.py @@ -6,7 +6,7 @@ from django.forms import ModelForm from django.forms.models import modelformset_factory from django.contrib.admin.widgets import AdminDateWidget -from tinymce.widgets import TinyMCE +#from tinymce.widgets import TinyMCE from troggle.core.models import Person, PersonExpedition, Expedition from troggle.core.models_caves import Cave, LogbookEntry, QM, Entrance, CaveAndEntrance @@ -123,7 +123,8 @@ def getTripForm(expedition): cave = forms.ChoiceField([(c, c) for c in caves], required=False) location = forms.CharField(max_length=200, required=False) caveOrLocation = forms.ChoiceField([("cave", "Cave"), ("location", "Location")], widget = forms.widgets.RadioSelect()) - html = forms.CharField(widget=TinyMCE(attrs={'cols': 80, 'rows': 30})) +# html = forms.CharField(widget=TinyMCE(attrs={'cols': 80, 'rows': 30})) + html = forms.CharField(widget=forms.Textarea(attrs={"cols":80, "rows":20})) def clean(self): print((dir(self))) -- cgit v1.2.3