From 970b7b67387c33b8c2f8a16117f1a0e3c57ef98b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Thu, 26 Jan 2023 17:42:09 +0100 Subject: [PATCH] Allow attributes `src` (and `alt`) to display image for product description on admin ie. `/admin/products/bread/edit` --- app/views/spree/admin/products/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/admin/products/_form.html.haml b/app/views/spree/admin/products/_form.html.haml index 22adac9571..7cb8447558 100644 --- a/app/views/spree/admin/products/_form.html.haml +++ b/app/views/spree/admin/products/_form.html.haml @@ -13,7 +13,7 @@ = f.field_container :description do = f.label :description, t(:description) %text-angular{'id' => 'product_description', 'name' => 'product[description]', 'class' => 'text-angular', 'textangular-unsafe-sanitizer' => true, "textangular-links-target-blank" => true, 'ta-toolbar' => "[['bold','italics','underline','clear'],['insertLink']]"} - = sanitize(@product.description, attributes: ["href", "target"]) + = sanitize(@product.description, attributes: ["href", "target", "src", "alt"]) = f.error_message_on :description .right.four.columns.omega