From f3b560f60228c3203e9d7581cc5008d3e5118615 Mon Sep 17 00:00:00 2001 From: rscnt Date: Sun, 31 May 2015 05:32:11 -0600 Subject: [PATCH] settings: options for text editor and let host use x forwarded Signed-off-by: rscnt --- dynamicweb/settings.py | 4 +++- static/blog.ungleich.ch/css/clean-blog.css | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/dynamicweb/settings.py b/dynamicweb/settings.py index 16a1910f..2ee2e704 100644 --- a/dynamicweb/settings.py +++ b/dynamicweb/settings.py @@ -316,7 +316,9 @@ THUMBNAIL_PROCESSORS = ( # django-cms-text-ckeditor TEXT_SAVE_IMAGE_FUNCTION='cmsplugin_filer_image.integrations.ckeditor.create_image_plugin' - +TEXT_ADDITIONAL_TAGS = ('iframe',) +TEXT_ADDITIONAL_ATTRIBUTES = ('scrolling', 'allowfullscreen', 'frameborder') +USE_X_FORWARDED_HOST = True try: from .local.local_settings import * except ImportError as e: diff --git a/static/blog.ungleich.ch/css/clean-blog.css b/static/blog.ungleich.ch/css/clean-blog.css index 30e12c42..c1df6431 100755 --- a/static/blog.ungleich.ch/css/clean-blog.css +++ b/static/blog.ungleich.ch/css/clean-blog.css @@ -396,4 +396,8 @@ body { .text-center { text-align: center; +} + +.blog-content img { + width: 100%; } \ No newline at end of file