Jump to content

Extended Rich Text Editor


Recommended Posts

Hello All,

 

I've been working to incorporate JS into a CMS block. I followed the information at https://mypresta.eu/en/art/prestashop-16/extended-rich-text-editor.html in regards to this. Has anyone else done the same before?

It is now allowing me to add it without giving the error, I see the extended editor however even after disabling HTML Purifier and updating the Validate.php file the editor is still adding CDATA to my code as shown below:

 

<script>// <![CDATA[
$("#faqs dd").hide();
    $("#faqs dt").click(function () {
        $(this).next("#faqs dd").slideToggle(500);
        $(this).toggleClass("expanded");
    });
// ]]></script>
 

This should be:
 
<script type="text/javascript">
    $("#faqs dd").hide();
    $("#faqs dt").click(function () {
        $(this).next("#faqs dd").slideToggle(500);
        $(this).toggleClass("expanded");
    });
</script>
 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...