diff --git a/BestNotesProject/settings.py b/BestNotesProject/settings.py index a38ff4b..c51932f 100644 --- a/BestNotesProject/settings.py +++ b/BestNotesProject/settings.py @@ -132,6 +132,8 @@ TINYMCE_JS_URL = "https://cdn.tiny.cloud/1/no-api-key/tinymce/5.1.4-66/tinymce.m TINYMCE_DEFAULT_CONFIG = { 'height' : 500, + 'skin': 'oxide-dark', + 'content_css': 'dark', 'plugins': "image,imagetools,media,codesample,link,code", 'cleanup_on_startup': True, 'menubar': False, diff --git a/bestnotes/static/shownote.js b/bestnotes/static/shownote.js index 76a0bb7..bc793fe 100644 --- a/bestnotes/static/shownote.js +++ b/bestnotes/static/shownote.js @@ -2,8 +2,10 @@ tinymce.init({ selector: '.tmpTextArea', menubar: false, + skin: 'oxide-dark', + content_css: 'dark', plugins: [ - 'advlist autolink lists link image charmap print preview anchor', + 'autoresize advlist autolink lists link image charmap print preview anchor', 'searchreplace visualblocks code fullscreen', 'insertdatetime media table contextmenu paste code' ], diff --git a/bestnotes/templates/add.html b/bestnotes/templates/add.html index 95a6951..f2509b1 100644 --- a/bestnotes/templates/add.html +++ b/bestnotes/templates/add.html @@ -8,12 +8,14 @@
{% csrf_token %}
- {% render_field form.name class="form-control mb-2 mt-4" id="name" placeholder="Wpisz nazwe notatki" %} - {% render_field form.subject class="form-control mb-2" name="subject" id="subject" placeholder="Wpisz przedmiot" %} - {% render_field form.topic class="form-control mb-2" id="topic" placeholder="Wpisz temat" %} + {% render_field form.name class="form-control mb-2 mt-4 bg-dark text-light" id="name" placeholder="Wpisz nazwe notatki" %} + {% render_field form.subject class="form-control mb-2 bg-dark text-light" name="subject" id="subject" placeholder="Wpisz przedmiot" %} + {% render_field form.topic class="form-control mb-2 bg-dark text-light" id="topic" placeholder="Wpisz temat" %}
{% render_field form.content id="content" %} - +
+ +
diff --git a/db.sqlite3 b/db.sqlite3 index 0ff9835..6ff44df 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ