|
|
@@ -54,6 +54,7 @@ INSTALLED_APPS = [
|
|
|
'reymotausers',
|
|
|
|
|
|
'rest_framework',
|
|
|
+ 'tinymce',
|
|
|
]
|
|
|
|
|
|
MIDDLEWARE = [
|
|
|
@@ -241,3 +242,31 @@ LOGGING = {
|
|
|
},
|
|
|
},
|
|
|
}
|
|
|
+
|
|
|
+TINYMCE_DEFAULT_CONFIG = {
|
|
|
+ 'height': 360,
|
|
|
+ 'width': 1120,
|
|
|
+ 'cleanup_on_startup': True,
|
|
|
+ 'custom_undo_redo_levels': 20,
|
|
|
+ 'selector': 'textarea',
|
|
|
+ 'plugins': '''
|
|
|
+ textcolor save link image media preview codesample contextmenu
|
|
|
+ table code lists fullscreen insertdatetime nonbreaking
|
|
|
+ contextmenu directionality searchreplace wordcount visualblocks
|
|
|
+ visualchars code fullscreen autolink lists charmap print hr
|
|
|
+ anchor pagebreak
|
|
|
+ ''',
|
|
|
+ 'toolbar1': '''
|
|
|
+ fullscreen preview bold italic underline | fontselect,
|
|
|
+ fontsizeselect | forecolor backcolor | alignleft alignright |
|
|
|
+ aligncenter alignjustify | indent outdent | bullist numlist table |
|
|
|
+ | link image media | codesample |
|
|
|
+ ''',
|
|
|
+ 'toolbar2': '''
|
|
|
+ visualblocks visualchars |
|
|
|
+ charmap hr pagebreak nonbreaking anchor | code |
|
|
|
+ ''',
|
|
|
+ 'contextmenu': 'formats | link image',
|
|
|
+ 'menubar': True,
|
|
|
+ 'statusbar': True,
|
|
|
+}
|