svalveson / SliderOptions

Add new options for the Slick configuration in the Page Builder Slider (Magento 2)
22 stars 6 forks source link

Add attributes to allowed list #1

Closed bemix closed 2 years ago

bemix commented 3 years ago

Warning is printed in WYSWYG editor. This adds it to an allow list

svalveson commented 2 years ago

Thanks @bemix for your contribution. Could share a pic with that warning message?

basvanpoppel commented 2 years ago

This is the warning message:

Temporarily allowed to save HTML value that contains restricted elements. Allowed HTML attributes for tag "div" are: class,width,height,style,alt,title,border,id,data-active-tab,data-appearance (that list goes on for a while)

I believe it's added since M2.4.2, logic can be found in Magento\Cms\Model\Wysiwyg\Validator.

Nice module by the way, thanks for sharing!

svalveson commented 2 years ago

Thanks for share the solution!