News:

AbanteCart v1.4.2 is released.

Main Menu
support

PHP Code inside CKEditor

Started by JHammond53, November 05, 2013, 10:25:47 AM

Previous topic - Next topic

JHammond53

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 &lt;?php


JHammond53

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.

abantecart

You can not have PHP inside of CKEditor.  :o

If this was possible it would be a huge security issue.

Forum Rules Code of conduct
AbanteCart.com 2010 -