AbanteCart Community
AbanteCart Development => Customization help => Topic started by: JHammond53 on November 05, 2013, 10:25:47 AM
-
I am trying to add php code inside of the description box of categories. Is there a way to allow PHP Code inside this CKEditor? I have attempted to add
config.protectedSource.push(/<\?[\s\S]*?\?>/g);
into the config.js file that is located in /public_html/admin/view/default/javascript/ckeditor
Every time I try to use php code with <?php it is being changed to <!--?php or <?php
-
I got it to add the code properly, but its not being executed...when I "view source" it shows the actual php code instead of the executed code.
Until we can find a solution I created a seperate page and calling it in via an iFrame through CKEditor.
-
You can not have PHP inside of CKEditor. :o
If this was possible it would be a huge security issue.