Move TinyMCE into edit_books.js
This commit is contained in:
parent
5715d27c97
commit
61e0405f75
|
@ -3,6 +3,13 @@
|
||||||
*/
|
*/
|
||||||
/* global Bloodhound, language */
|
/* global Bloodhound, language */
|
||||||
|
|
||||||
|
tinymce.init({
|
||||||
|
selector: '#description',
|
||||||
|
branding: false,
|
||||||
|
menubar: 'edit view format',
|
||||||
|
language: language
|
||||||
|
});
|
||||||
|
|
||||||
if (!Modernizr.inputtypes.date) {
|
if (!Modernizr.inputtypes.date) {
|
||||||
$('#pubdate').datepicker({
|
$('#pubdate').datepicker({
|
||||||
format: 'yyyy-mm-dd',
|
format: 'yyyy-mm-dd',
|
||||||
|
|
|
@ -200,14 +200,6 @@
|
||||||
{% if not g.user.locale == 'en' %}
|
{% 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>
|
<script src="{{ url_for('static', filename='js/libs/bootstrap-datepicker/locales/bootstrap-datepicker.' + g.user.locale + '.min.js') }}" charset="UTF-8"></script>
|
||||||
{% endif %}
|
{% 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>
|
<script src="{{ url_for('static', filename='js/edit_books.js') }}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block header %}
|
{% block header %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user