From 61e0405f759018b289ae2bd4f1ccb3dceb0fac15 Mon Sep 17 00:00:00 2001 From: Jonathan Rehm Date: Tue, 18 Jul 2017 08:52:11 -0700 Subject: [PATCH] Move TinyMCE into edit_books.js --- cps/static/js/edit_books.js | 7 +++++++ cps/templates/book_edit.html | 8 -------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/cps/static/js/edit_books.js b/cps/static/js/edit_books.js index d96bbcc2..419d8031 100644 --- a/cps/static/js/edit_books.js +++ b/cps/static/js/edit_books.js @@ -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', diff --git a/cps/templates/book_edit.html b/cps/templates/book_edit.html index c6aaf7e1..9bd1e644 100644 --- a/cps/templates/book_edit.html +++ b/cps/templates/book_edit.html @@ -200,14 +200,6 @@ {% if not g.user.locale == 'en' %} {% endif %} - {% endblock %} {% block header %}