|
@@ -156,21 +156,8 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
|
|
# doc_generator/settings.py (at the end of the file)
|
|
# doc_generator/settings.py (at the end of the file)
|
|
|
|
|
|
|
|
TINYMCE_DEFAULT_CONFIG = {
|
|
TINYMCE_DEFAULT_CONFIG = {
|
|
|
|
|
+ "theme": "silver",
|
|
|
"height": "320px",
|
|
"height": "320px",
|
|
|
"width": "100%",
|
|
"width": "100%",
|
|
|
- "menubar": "file edit view insert format tools table help",
|
|
|
|
|
- "plugins": "advlist autolink lists link image charmap print preview anchor searchreplace visualblocks code "
|
|
|
|
|
- "fullscreen insertdatetime media table paste code help wordcount",
|
|
|
|
|
- "toolbar": "undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft "
|
|
|
|
|
- "aligncenter alignright alignjustify | outdent indent | numlist bullist | forecolor "
|
|
|
|
|
- "backcolor removeformat | pagebreak | charmap emoticons | fullscreen preview save print | "
|
|
|
|
|
- "insertfile image media template link anchor codesample | ltr rtl",
|
|
|
|
|
- "custom_undo_redo_levels": 10,
|
|
|
|
|
-
|
|
|
|
|
- "images_upload_url": reverse_lazy('tinymce_image_upload'),
|
|
|
|
|
-
|
|
|
|
|
- "relative_urls": False, # Important for correct media URL handling in PDFs
|
|
|
|
|
- "remove_script_host": True, # Important for correct media URL handling in PDFs
|
|
|
|
|
-
|
|
|
|
|
- "file_picker_types": "image",
|
|
|
|
|
|
|
+ "license_key": "gpl"
|
|
|
}
|
|
}
|