tcms.core.widgets module

Custom widgets for Django

class tcms.core.widgets.SimpleMDE(attrs=None)[source]

Bases: django.forms.widgets.Textarea

SimpleMDE widget for Django

class Media[source]

Bases: object

css = {'all': ['simplemde/dist/simplemde.min.css']}
js = ['simplemde/dist/simplemde.min.js', 'js/simplemde_security_override.js']
media
render(name, value, attrs=None, renderer=None)[source]

Render the widget as an HTML string.