Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #237 from nickolay/759212-allow-more-html-attributes
Browse files Browse the repository at this point in the history
Bug 759212: allow more HTML attributes in content.
  • Loading branch information
groovecoder committed Jun 1, 2012
2 parents 869a479 + c797942 commit 931f7e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/wiki/models.py
Expand Up @@ -57,12 +57,12 @@
ALLOWED_ATTRIBUTES['a'] = ['style', 'id', 'class', 'href', 'title', ]
ALLOWED_ATTRIBUTES.update(dict((x, ['style', 'name', ]) for x in
('h1', 'h2', 'h3', 'h4', 'h5', 'h6')))
ALLOWED_ATTRIBUTES.update(dict((x, ['id', ]) for x in (
ALLOWED_ATTRIBUTES.update(dict((x, ['id', 'style', 'class']) for x in (
'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'code', 'dl', 'dt', 'dd',
'section', 'header', 'footer', 'nav', 'article', 'aside', 'figure',
'dialog', 'hgroup', 'mark', 'time', 'meter', 'command', 'output',
'progress', 'audio', 'video', 'details', 'datagrid', 'datalist', 'table',
'address'
'tr', 'td', 'th', 'address'
)))
ALLOWED_STYLES = [
'border', 'float', 'overflow', 'min-height', 'vertical-align',
Expand All @@ -73,7 +73,7 @@
'background', # TODO: Maybe not this one, it can load URLs
'background-color',
'font', 'font-size', 'font-weight', 'text-align', 'text-transform',
'-moz-column-width', '-webkit-columns', 'columns',
'-moz-column-width', '-webkit-columns', 'columns', 'width',
]

# Disruptiveness of edits to translated versions. Numerical magnitude indicate
Expand Down

0 comments on commit 931f7e4

Please sign in to comment.