Skip to content

Commit ed8ef4b

Browse files
Merge pull request #2279 from IFRCGo/feature/stricter-tinymce
Paste data images - forbidden
2 parents 5b2d2d0 + b9d959d commit ed8ef4b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

main/settings.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@
337337
"width": 1120,
338338
"cleanup_on_startup": True,
339339
"custom_undo_redo_levels": 20,
340-
"plugins": '''
340+
"plugins": """
341341
anchor autolink charmap code codesample directionality
342342
fullscreen image insertdatetime link lists media
343343
nonbreaking pagebreak preview save searchreplace table
@@ -347,28 +347,29 @@
347347
bold italic underline superscript subscript fontsizeselect
348348
| alignleft alignright | aligncenter alignjustify
349349
| indent outdent | bullist numlist |
350-
| link visualchars charmap hr nonbreaking | code preview fullscreen
350+
| link visualchars charmap image hr nonbreaking | code preview fullscreen
351351
""",
352+
"paste_data_images": False,
352353
"force_p_newlines": True, # TODO: could be False?
353354
"force_br_newlines": True, # TODO: could be False?
354355
"forced_root_block": "",
355356
"contextmenu": "formats | link",
356357
"menubar": False,
357358
"statusbar": False,
358-
# https://www.tiny.cloud/docs/configure/content-filtering/#invalid_styles
359359
"invalid_styles": {"*": "opacity"}, # Global invalid style
360-
# 'extended_valid_elements': 'iframe[src|frameborder|style|scrolling|class|width|height|name|align]',
360+
# https://www.tiny.cloud/docs/configure/content-filtering/#invalid_styles
361+
# "extended_valid_elements": "iframe[src|frameborder|style|scrolling|class|width|height|name|align]",
361362
# If more formatting possibilities needed (or more rows), choose from these:
362-
# 'toolbar1': ''',
363+
# "toolbar1": """,
363364
# fullscreen preview bold italic underline | fontselect,
364365
# fontsizeselect | forecolor backcolor | alignleft alignright |
365366
# aligncenter alignjustify | indent outdent | bullist numlist table |
366367
# | link image media | codesample |
367-
# ''',
368-
# 'toolbar2': '''
368+
# """,
369+
# "toolbar2": """
369370
# visualblocks visualchars |
370371
# charmap hr pagebreak nonbreaking anchor | code |
371-
# ''',
372+
# """,
372373
}
373374

374375
# Languages using BiDi (right-to-left) layout

0 commit comments

Comments
 (0)