1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

style textareas supporting markdown with monospace font

This commit is contained in:
checktheroads
2021-03-17 23:30:39 -07:00
parent cf8dad5763
commit 46cd22ea7e
2 changed files with 3 additions and 3 deletions

View File

@ -245,7 +245,7 @@ span.color-label {
}
textarea#id_local_context_data,
textarea#id_comments {
textarea.markdown {
font-family: $font-family-monospace;
}

View File

@ -216,10 +216,10 @@ class CommentField(forms.CharField):
"""
A textarea with support for Markdown rendering. Exists mostly just to add a standard help_text.
"""
widget = forms.Textarea
widget = forms.Textarea(attrs={"class": "markdown"})
default_label = ''
# TODO: Port Markdown cheat sheet to internal documentation
default_helptext = '<i class="bi bi-info-circle"></i> '\
default_helptext = '<i class="bi bi-markdown"></i> '\
'<a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet" target="_blank">'\
'Markdown</a> syntax is supported'