mostrar el html, no limpiar links

This commit is contained in:
f 2020-11-16 17:05:07 -03:00
parent 39f2c1ad4d
commit 19d39b2d69
2 changed files with 2 additions and 2 deletions

View file

@ -129,7 +129,7 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type,
end end
def allowed_attributes def allowed_attributes
@allowed_attributes ||= %w[style src alt controls data-align].freeze @allowed_attributes ||= %w[style href src alt controls data-align].freeze
end end
def allowed_tags def allowed_tags

View file

@ -70,4 +70,4 @@
%input.form-control{ type: 'url', data: { prop: 'link-href' } }/ %input.form-control{ type: 'url', data: { prop: 'link-href' } }/
.editor-content.form-control.h-auto{ contenteditable: 'true' } .editor-content.form-control.h-auto{ contenteditable: 'true' }
= metadata.value = metadata.value.html_safe