How can I stop the WMD editor on my own deseggo form?
itemprop = "text">
Here's the full Django widget class:
class WMDEditor (forms. Atters = kwargs.setdefault ('attrs', {}) if 'cols' not in attrs: attrs ['cols'] = 58 if 'rows' Attrs are not in: attrs ['rows'] = 8 super (WMDEditor, self) .__ init __ (* args, ** kwargs def def) (self, name, value, attrs = none): rendered = super WMDEditor, self) .render (name, value, attrs) rendered + mark_saf (U '' '' script type = "text / javascript"> wmd_options = {output: "markdown", button: "bold italic | Link b Lokkot code image | ol ul "};
Comments
Post a Comment