diff --git a/BestNotesProject/settings.py b/BestNotesProject/settings.py index c51932f..be20c1f 100644 --- a/BestNotesProject/settings.py +++ b/BestNotesProject/settings.py @@ -137,7 +137,8 @@ TINYMCE_DEFAULT_CONFIG = { 'plugins': "image,imagetools,media,codesample,link,code", 'cleanup_on_startup': True, 'menubar': False, - 'toolbar': "styleselect |undo redo | bold italic | alignleft aligncenter alignright | link image media codesample code", + 'contextmenu': "cut, copy, link, media, ", + 'toolbar': "styleselect | undo redo | bold italic underline superscript subscript| fontselect fontsizeselect forecolor backcolor | alignleft aligncenter alignright | link image media codesample code", 'image_caption': True, 'image_advtab': True, 'custom_undo_redo_levels': 10, diff --git a/bestnotes/static/shownote.js b/bestnotes/static/shownote.js index bc793fe..1369a07 100644 --- a/bestnotes/static/shownote.js +++ b/bestnotes/static/shownote.js @@ -6,7 +6,7 @@ tinymce.init({ content_css: 'dark', plugins: [ 'autoresize advlist autolink lists link image charmap print preview anchor', - 'searchreplace visualblocks code fullscreen', + 'searchreplace visualblocks codesample fullscreen', 'insertdatetime media table contextmenu paste code' ], readonly: 1, diff --git a/bestnotes/urls.py b/bestnotes/urls.py index 8d11bec..b7a18ac 100644 --- a/bestnotes/urls.py +++ b/bestnotes/urls.py @@ -16,5 +16,7 @@ urlpatterns = [ path('notes/', views.notes_name, name="notes_id"), path('create/', views.create_note, name="create_note"), path('delete_note/', views.delete_note, name="delete_note"), - path('update_note/', views.update_note, name="update_note") + path('update_note/', views.update_note, name="update_note"), + path('update_note_id/', views.update_note_id, name="update_note_id") + ] diff --git a/db.sqlite3 b/db.sqlite3 index 75ecf1a..b30d9fa 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ