permitir metadatos de trix

This commit is contained in:
f 2020-03-17 14:49:39 -03:00
parent 9dba6a2bad
commit 0fcf6be591
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -85,7 +85,7 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type,
sanitizer.sanitize(string,
tags: allowed_tags,
attributes: allowed_attributes,
attributes: allowed_attributes + %w[data-trix-attachment],
scrubber: scrubber).strip.html_safe
end
end