Chosen, Select2 or Selectize Plugins with Multiple enabled
Chosen, Select2 or Selectize Plugins with Multiple enabled
I have attempted to use the Chosen, Select2 & Selectize plugins on my standard select to add a little functionality. Whenever the attribute/option 'multiple' is selected then I cannot save the data. I just receive the following error in my console:
<b>Warning</b>: explode() expects parameter 2 to be string, array given in <b>/public_html/uploads/js/datatables/php/lib/Vendor/htmLawed/htmLawed.php</b> on line <b>181</b><br />
It is the same error which ever plugin I try.
Is there really an error in that file or is it something at my end?
Thanks
Chris
Replies
Hi Chris,
That's a bug I'm afraid.
In the Field.php file you'll find a function called
xssSafety
replace it completely with:That will address the issue.
Thanks for letting me know about this. The fix will be in the next release of Editor.
Regards,
Allan