Project Home
Manuals
Contact Us
Download
Demo
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
AbanteCart v
1.3.4
is released.
Home
Help
Search
Calendar
Login
Register
AbanteCart Community
»
AbanteCart Development
»
Customization help
»
PHP Code inside CKEditor
« previous
next »
Print
Pages: [
1
]
Author
Topic: PHP Code inside CKEditor (Read 7393 times)
JHammond53
Newbie
Posts: 39
Karma: +11/-0
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 <?php
Logged
JHammond53
Newbie
Posts: 39
Karma: +11/-0
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.
Logged
abantecart
Administrator
Hero Member
Posts: 4359
Karma: +298/-10
Re: PHP Code inside CKEditor
«
Reply #2 on:
November 06, 2013, 07:39:34 AM »
You can not have PHP inside of CKEditor.
If this was possible it would be a huge security issue.
Logged
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
Print
Pages: [
1
]
« previous
next »
AbanteCart Community
»
AbanteCart Development
»
Customization help
»
PHP Code inside CKEditor
Powered by SMFPacks Social Login Mod