mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
fa60f9d2a8
* MarkdownWidget * Change border and color of active markdown tab * Fix template name typo * Add render markdown endpoint * Static assets for markdown widget * widget style fix and unique ids based on name * Replace SmallTextArea with SmallMarkdownWidget * Clear innerHTML before swapping * render markdown directly in template * change render markdown view path * remove small markdown widget * Simplify rendering logic * Use a form to clean input Markdown data --------- Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
15 lines
236 B
Python
15 lines
236 B
Python
from django import forms
|
|
|
|
__all__ = (
|
|
'RenderMarkdownForm',
|
|
)
|
|
|
|
|
|
class RenderMarkdownForm(forms.Form):
|
|
"""
|
|
Provides basic validation for markup to be rendered.
|
|
"""
|
|
text = forms.CharField(
|
|
required=False
|
|
)
|