Move TinyMCE into edit_books.js

This commit is contained in:
Jonathan Rehm 2017-07-18 08:52:11 -07:00
parent 5715d27c97
commit 61e0405f75
2 changed files with 7 additions and 8 deletions

View File

@ -3,6 +3,13 @@
*/
/* global Bloodhound, language */
tinymce.init({
selector: '#description',
branding: false,
menubar: 'edit view format',
language: language
});
if (!Modernizr.inputtypes.date) {
$('#pubdate').datepicker({
format: 'yyyy-mm-dd',

View File

@ -200,14 +200,6 @@
{% if not g.user.locale == 'en' %}
<script src="{{ url_for('static', filename='js/libs/bootstrap-datepicker/locales/bootstrap-datepicker.' + g.user.locale + '.min.js') }}" charset="UTF-8"></script>
{% endif %}
<script type="text/javascript">
tinymce.init({
selector: '#description',
branding: false,
menubar: 'edit view format',
language: '{{ g.user.locale }}'
});
</script>
<script src="{{ url_for('static', filename='js/edit_books.js') }}"></script>
{% endblock %}
{% block header %}