diff --git a/opentech/apply/utils/options.py b/opentech/apply/utils/options.py index d1d2f9a6ba497699a6daa9d3847d41968c1f5e74..325c3e9c35650198003190fdca7294c0fcec8470 100644 --- a/opentech/apply/utils/options.py +++ b/opentech/apply/utils/options.py @@ -5,7 +5,7 @@ MCE_ATTRIBUTES = { 'branding': False, 'entity_encoding': 'raw', 'plugins': 'link image preview codesample table code lists', - 'toolbar1': 'undo redo | styleselect | bold italic | bullist numlist | link', + 'toolbar1': 'undo redo | styleselect | bold italic | bullist numlist | table | link', 'style_formats': [ {'title': 'Headers', 'items': [ {'title': 'Header 1', 'format': 'h1'}, diff --git a/opentech/settings/base.py b/opentech/settings/base.py index 612d8257548a847383ee6d529f36557b0583c587..d9ae0d66d5d3a2c2d421f992730e44e27b2f2f94 100644 --- a/opentech/settings/base.py +++ b/opentech/settings/base.py @@ -463,9 +463,9 @@ SOCIAL_AUTH_PIPELINE = ( ) # Bleach Settings -BLEACH_ALLOWED_TAGS = ['a', 'b', 'big', 'blockquote', 'br', 'cite', 'code', 'dd', 'del', 'dl', 'dt', 'em', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'ins', 'li', 'ol', 'p', 'pre', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'th', 'thead', 'tr', 'ul'] +BLEACH_ALLOWED_TAGS = ['a', 'b', 'big', 'blockquote', 'br', 'cite', 'code', 'col', 'colgroup', 'dd', 'del', 'dl', 'dt', 'em', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'ins', 'li', 'ol', 'p', 'pre', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'th', 'thead', 'tr', 'ul'] -BLEACH_ALLOWED_ATTRIBUTES = ['href', 'title', 'class'] +BLEACH_ALLOWED_ATTRIBUTES = ['class', 'colspan', 'href', 'rowspan', 'title', 'width'] BLEACH_ALLOWED_STYLES = []