5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 21:26:23 +00:00

fix: no limpiar las clases de css

relacionado con sutty/editor#51

las imágenes sobrepasan el contenedor porque el sanitizador elimina el
atributo class.
This commit is contained in:
f 2022-10-26 17:42:56 -03:00
parent ea392f21ce
commit 7dd9061f34

View file

@ -198,7 +198,7 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type,
def allowed_attributes
@allowed_attributes ||= %w[style href src alt controls data-align data-multimedia data-multimedia-inner id
name rel target referrerpolicy].freeze
name rel target referrerpolicy class].freeze
end
def allowed_tags