Skip to content
Snippets Groups Projects
Unverified Commit 3baf5081 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #1420 from OpenTechFund/feature/allow-more-table-tags

Allow more table tags and add table button to editor.
parents d3659a2d 5ef13770
No related branches found
No related tags found
No related merge requests found
......@@ -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'},
......
......@@ -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 = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment