forked from expo/troggle
Disable TinyMCE
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user