From 19274c4f3fd6997576fc9493b697d200925a898b Mon Sep 17 00:00:00 2001 From: Th3NiKo Date: Sun, 19 Jan 2020 11:10:45 +0100 Subject: [PATCH] BES-6 Remove Powered by Tiny, add word count instead --- BestNotesProject/settings.py | 5 +++-- bestnotes/static/shownote.js | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/BestNotesProject/settings.py b/BestNotesProject/settings.py index be20c1f..c8d07ce 100644 --- a/BestNotesProject/settings.py +++ b/BestNotesProject/settings.py @@ -128,13 +128,14 @@ USE_TZ = True STATIC_URL = '/static/' -TINYMCE_JS_URL = "https://cdn.tiny.cloud/1/no-api-key/tinymce/5.1.4-66/tinymce.min.js" +TINYMCE_JS_URL = "https://cdn.tiny.cloud/1/r9o35nobg5gdj46hhxw3ohwbjh4yct23kx405ozckt8fj2k2/tinymce/5.1.4-66/tinymce.min.js" TINYMCE_DEFAULT_CONFIG = { 'height' : 500, 'skin': 'oxide-dark', + 'branding': False, 'content_css': 'dark', - 'plugins': "image,imagetools,media,codesample,link,code", + 'plugins': "image,imagetools,media,codesample,link,code,wordcount", 'cleanup_on_startup': True, 'menubar': False, 'contextmenu': "cut, copy, link, media, ", diff --git a/bestnotes/static/shownote.js b/bestnotes/static/shownote.js index 1369a07..a3476b2 100644 --- a/bestnotes/static/shownote.js +++ b/bestnotes/static/shownote.js @@ -3,11 +3,12 @@ tinymce.init({ selector: '.tmpTextArea', menubar: false, skin: 'oxide-dark', + branding: false, content_css: 'dark', plugins: [ 'autoresize advlist autolink lists link image charmap print preview anchor', 'searchreplace visualblocks codesample fullscreen', - 'insertdatetime media table contextmenu paste code' + 'insertdatetime media table paste code' ], readonly: 1, toolbar: false,