Skip to content

Commit 1496c1a

Browse files
committed
fixed dropdown menu for demo
1 parent 5400fad commit 1496c1a

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ to get ``IMGUR_CLIENT_ID`` and ``IMGUR_API_KEY``.
107107
'jquery': 'true', # to include/revoke jquery (require for admin default django)
108108
}
109109

110-
# To setup the martor edito with label or not (default is False)
110+
# To setup the martor editor with label or not (default is False)
111111
MARTOR_ENABLE_LABEL = False
112112

113113
# Imgur API Keys

martor/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
)
1212

13-
# To setup the martor edito with label or not (default is False)
13+
# To setup the martor editor with label or not (default is False)
1414
MARTOR_ENABLE_LABEL = getattr(
1515
settings, 'MARTOR_ENABLE_LABEL', False
1616
)

martor_demo/app/templates/base.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,7 @@
5757
<script type="text/javascript" src="{% static 'plugins/js/resizable.min.js' %}"></script>
5858
<script type="text/javascript" src="{% static 'plugins/js/emojis.min.js' %}"></script>
5959
<script type="text/javascript" src="{% static 'martor/js/martor.min.js' %}"></script>
60+
61+
{% block js %}{% endblock %}
6062
</body>
6163
</html>

martor_demo/app/templates/custom_form.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020
</div>
2121
</div>
2222
</div>
23+
{% endblock %}
2324

25+
{% block js %}
2426
<script>
2527
$('form [name="title"]').attr({'placeholder': 'Post Title'});
28+
$('.ui.menu .ui.dropdown.item').dropdown();
2629
</script>
2730
{% endblock %}

0 commit comments

Comments
 (0)