Refactorising CodeMirror HTML editor, with an ultimate aim to make it reusable. However more work if required...

This commit is contained in:
Martin Green
2022-06-26 14:16:42 +01:00
parent 8f0ea8ed82
commit f1fcef2a6f
6 changed files with 210 additions and 233 deletions

View File

@@ -130,3 +130,6 @@ class NewWebImageForm(forms.Form):
if full_path.exists():
raise forms.ValidationError("File already exists in %s" % rel_path)
return self.cleaned_data['file_']
class HTMLarea(forms.Textarea):
template_name = "widgets/HTMLarea.html"