mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-18 04:56:29 -06:00
style textareas supporting markdown with monospace font
This commit is contained in:
parent
cf8dad5763
commit
46cd22ea7e
@ -245,7 +245,7 @@ span.color-label {
|
||||
}
|
||||
|
||||
textarea#id_local_context_data,
|
||||
textarea#id_comments {
|
||||
textarea.markdown {
|
||||
font-family: $font-family-monospace;
|
||||
}
|
||||
|
||||
|
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user