a11yist/config/initializers/action_text.rb

18 lines
382 B
Ruby
Raw Normal View History

2024-07-20 16:52:12 +02:00
ActionText::ContentHelper.allowed_attributes ||= []
ActionText::ContentHelper.allowed_attributes += [
"target", # We set target="_blank" on external links
"abbr",
"alt",
"cite",
"class",
"datetime",
"height",
"href",
"lang",
"name",
"src",
"title",
"width",
"xml:lang",
]
ActionText::ContentHelper.allowed_attributes += ActionText::Attachment::ATTRIBUTES