mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-30 23:03:02 +00:00 
			
		
		
		
	Move TinyMCE into edit_books.js
This commit is contained in:
		| @@ -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 %} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jonathan Rehm
					Jonathan Rehm