Coverage for markupmirror.widgets : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Adds the ``markupmirror-editor`` class to the textarea to make sure it can be identified through JS.
"""
'class': css_class, }
# start with CodeMirror base settings
# if value is filled, use the markup type defined with the content # get markup converter by type. # ``value`` is ``markupmirror.fields.Markup``. # get real value
# mode for CodeMirror and preview and base URLs plus markup_type # parameter for loading markup previews 'mode': markup_pool[markup_type].codemirror_mode, 'markup_type': markup_type, 'preview_url': reverse('markupmirror:preview'), 'base_url': reverse('markupmirror:base'), })
# provide mm_settings as data attribute in widget 'data-mm-settings': json.dumps(mm_settings, sort_keys=True), }
default_attrs)
'all': settings.MARKUPMIRROR_CSS }
MarkupMirrorTextarea, AdminTextareaWidget):
|