Skip to content

Commit

Permalink
Markdown: Use monospace font for editor
Browse files Browse the repository at this point in the history
Add inline style to wagtailadmin/pages/edit.html to force the markdown
textarea to monospaced font.
  • Loading branch information
donald committed Feb 5, 2020
1 parent 9e8f0b3 commit 455abb1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mpicms/templates/wagtailadmin/pages/edit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% extends "wagtailadmin/pages/edit.html" %}
{% block extra_css %}
{{ block.super }}
<style>
.fieldname-markdown textarea {
font-family: monospace;
}
</style>
{% endblock %}

0 comments on commit 455abb1

Please sign in to comment.