mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 00:56:22 +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:
parent
ea392f21ce
commit
7dd9061f34
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type,
|
||||||
|
|
||||||
def allowed_attributes
|
def allowed_attributes
|
||||||
@allowed_attributes ||= %w[style href src alt controls data-align data-multimedia data-multimedia-inner id
|
@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
|
end
|
||||||
|
|
||||||
def allowed_tags
|
def allowed_tags
|
||||||
|
|
Loading…
Reference in a new issue