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:
@ -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'
|
||||
|
||||
|
Reference in New Issue
Block a user