From 903d1afb5334bfeb7eafee61481f8da439459122 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Wed, 5 Apr 2017 14:29:23 +1000 Subject: [PATCH] Stripping html tags from products description on new form as well --- .../spree/admin/products/new/replace_form.html.haml.deface | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/overrides/spree/admin/products/new/replace_form.html.haml.deface b/app/overrides/spree/admin/products/new/replace_form.html.haml.deface index 9013939daf..01894a8965 100644 --- a/app/overrides/spree/admin/products/new/replace_form.html.haml.deface +++ b/app/overrides/spree/admin/products/new/replace_form.html.haml.deface @@ -72,7 +72,7 @@ = f.field_container :description do = f.label :product_description, t(:product_description) %br/ - %text-angular{'id' => 'product_description', 'name' => 'product[description]', 'class' => 'text-angular', 'ta-toolbar' => "[['bold','italics','clear']]"} + %text-angular{'id' => 'product_description', 'name' => 'product[description]', 'class' => 'text-angular', 'textangular-strip' => true, 'ta-paste' => "stripFormatting($html)", 'ta-toolbar' => "[['bold','italics','clear']]"} = f.error_message_on :description .four.columns.omega{ style: "text-align: center" } %fieldset.no-border-bottom{ id: "image" }