From 1ff5d0ab7eb798b649cd1d0b91379d2df86ae31e Mon Sep 17 00:00:00 2001 From: f Date: Tue, 17 Nov 2020 19:19:29 -0300 Subject: [PATCH] guardar figure y figcaption --- app/models/metadata_template.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/metadata_template.rb b/app/models/metadata_template.rb index a85b84a5..1a8f93e4 100644 --- a/app/models/metadata_template.rb +++ b/app/models/metadata_template.rb @@ -7,7 +7,6 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type, :value, :help, :required, :errors, :post, :layout, keyword_init: true) do - attr_reader :value_was def value=(new_value) @@ -133,7 +132,7 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type, end def allowed_tags - @allowed_tags ||= %w[strong em del u mark p h1 h2 h3 h4 h5 h6 ul ol li img iframe audio video div].freeze + @allowed_tags ||= %w[strong em del u mark p h1 h2 h3 h4 h5 h6 ul ol li img iframe audio video div figure figcaption].freeze end # Decifra el valor