Jump to content

cannot add onclick="function()" to cms page


lipo999

Recommended Posts

Hello @lipo999

I know why it prevents you from inserting such tags, it's because in the CMS class file, you will find this line of code :

 

'content' =>            array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml', 'size' => 3999999999999),

All you need to do here is to remove this piece of code:

'validate' => 'isCleanHtml'

Don't forget to extend this class from the override folder so everything stays clean for any future upgrades.

 

Good luck

 

Cheers

  • Like 1
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...