Skip to content

Commit

Permalink
Actually, this should not be sanitize before going through trix editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jibees committed Aug 11, 2023
1 parent 18c86c5 commit c4d0742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/spree/admin/products/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

= f.field_container :description do
= f.label :description, t(:description)
= f.hidden_field :description, id: "product_description", value: sanitize(@product.description, scrubber: TrixScrubber.new)
= f.hidden_field :description, id: "product_description", value: @product.description
%trix-editor{ input: "product_description", "data-controller": "trixeditor" }
.right.four.columns.omega
Expand Down

0 comments on commit c4d0742

Please sign in to comment.