Commit ec35508393c03ad1813a3e7e6c156f803e6b43b1
1 parent
b74d554f
Exists in
master
and in
23 other branches
ActionItem1029: don't strip HTML tables
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/views/shared/tiny_mce.rhtml
| 1 | <%= javascript_include_tag 'tinymce/jscripts/tiny_mce/tiny_mce.js' %> | 1 | <%= javascript_include_tag 'tinymce/jscripts/tiny_mce/tiny_mce.js' %> |
| 2 | <script type="text/javascript"> | 2 | <script type="text/javascript"> |
| 3 | - var myplugins = "searchreplace,print,media"; | 3 | + var myplugins = "searchreplace,print,media,table"; |
| 4 | if (tinymce.isIE) { | 4 | if (tinymce.isIE) { |
| 5 | // the paste plugin is only useful in Internet Explorer | 5 | // the paste plugin is only useful in Internet Explorer |
| 6 | myplugins = "paste," + myplugins; | 6 | myplugins = "paste," + myplugins; |
config/environment.rb
| @@ -81,7 +81,7 @@ Rails::Initializer.run do |config| | @@ -81,7 +81,7 @@ Rails::Initializer.run do |config| | ||
| 81 | config.action_view.sanitized_allowed_attributes = 'align', 'border', 'alt', 'vspace', 'hspace', 'width', 'heigth', 'value', 'type', 'data', 'style', 'target' | 81 | config.action_view.sanitized_allowed_attributes = 'align', 'border', 'alt', 'vspace', 'hspace', 'width', 'heigth', 'value', 'type', 'data', 'style', 'target' |
| 82 | 82 | ||
| 83 | # Adds custom tags to the Set of allowed html tags for the #sanitize helper | 83 | # Adds custom tags to the Set of allowed html tags for the #sanitize helper |
| 84 | - config.action_view.sanitized_allowed_tags = 'object', 'embed', 'param' | 84 | + config.action_view.sanitized_allowed_tags = 'object', 'embed', 'param', 'table', 'tr', 'th', 'td' |
| 85 | 85 | ||
| 86 | # See Rails::Configuration for more options | 86 | # See Rails::Configuration for more options |
| 87 | 87 |