diff --git a/python_ru/settings/base.py b/python_ru/settings/base.py index fcb956a..d17e29d 100644 --- a/python_ru/settings/base.py +++ b/python_ru/settings/base.py @@ -160,14 +160,15 @@ 'Language']}, {'name': 'links', 'items': ['Link', 'Unlink', 'Anchor']}, {'name': 'insert', - 'items': ['Image', 'CodeSnippet', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak']}, + 'items': ['Image', 'CodeSnippet', 'Embed', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak']}, '/', {'name': 'styles', 'items': [ 'Styles', 'Format', 'Font', 'FontSize']}, {'name': 'colors', 'items': ['TextColor', 'BGColor']}, ], 'toolbar': 'toolbar_CustomConfig', # put tollbar config name here - 'removePlugins': 'stylesheetparser', + 'removePlugins': ','.join(['stylesheetparser', 'flash']), + 'allowedContent': True, 'extraPlugins': ','.join([ 'codesnippet', 'div', @@ -180,7 +181,8 @@ 'clipboard', 'dialog', 'dialogui', - 'elementspath' + 'elementspath', + 'embed' ]), }, } diff --git a/templates/base.html b/templates/base.html index ab89681..9c3f190 100755 --- a/templates/base.html +++ b/templates/base.html @@ -16,6 +16,10 @@ + + +