Author Topic: PHP Code inside CKEditor  (Read 7354 times)

Offline JHammond53

  • Newbie
  • *
  • Posts: 39
  • Karma: +11/-0
    • View Profile
PHP Code inside CKEditor
« 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 &lt;?php


Offline JHammond53

  • Newbie
  • *
  • Posts: 39
  • Karma: +11/-0
    • View Profile
Re: PHP Code inside CKEditor
« Reply #1 on: November 06, 2013, 06:59:51 AM »
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.

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: PHP Code inside CKEditor
« Reply #2 on: November 06, 2013, 07:39:34 AM »
You can not have PHP inside of CKEditor.  :o

If this was possible it would be a huge security issue.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

 

Powered by SMFPacks Social Login Mod