Move TinyMCE into edit_books.js

pull/227/head
Jonathan Rehm 8 years ago
parent 5715d27c97
commit 61e0405f75

@ -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',

@ -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 %}

Loading…
Cancel
Save