Commit 81ecee7160dd424baa6136618755293444b14309
1 parent
1309d67f
Exists in
master
and in
20 other branches
comment_paragraph: fix sanitizer initialization (fix tests)
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
plugins/comment_paragraph/lib/comment_paragraph_plugin/macros/allow_comment.rb
1 | -ActionView::Base.sanitized_allowed_attributes += ['data-macro', 'data-macro-paragraph_uuid'] | |
1 | +# FIXME See a better way to generalize this parameter. | |
2 | +Loofah::HTML5::WhiteList::ALLOWED_ATTRIBUTES.merge %w[data-macro data-macro-group_id] | |
2 | 3 | |
3 | 4 | class CommentParagraphPlugin::AllowComment < Noosfero::Plugin::Macro |
4 | 5 | ... | ... |