My problem (below) seems like it must be very basic, but I've not seen it evoked in the forum. So here goes:
1. I'm using CKeditor to edit web pages on a site. Some of these pages include tiny snippets of php, such as:
<?php include 'includes/header2.html'; ?>
2. I've configured the config.js file to protect the source and to keep the editor from forcing angled brackets into html equivlents, thus:
config.entities = false;
config.protectedSource.push( /<\?[\s\S]*?\?>/g );
3. All of that works well: when I view the source of a page I am editing with CKeditor, the php is visible and untouched, and all characters are preserved in UTF-8.
4. HOWEVER, when I save work, the php gets disabled, and I find this in the source file (replacing the code shown in 1, above):
<p>
php include 'includes/footer.html';</p>
What am I doing wrong? Is this a CKeditor issue, or is it something with my host (or my .htaccess) that is not allowing php to be posted to the file?
Signed,
Desperate
1. I'm using CKeditor to edit web pages on a site. Some of these pages include tiny snippets of php, such as:
<?php include 'includes/header2.html'; ?>
2. I've configured the config.js file to protect the source and to keep the editor from forcing angled brackets into html equivlents, thus:
config.entities = false;
config.protectedSource.push( /<\?[\s\S]*?\?>/g );
3. All of that works well: when I view the source of a page I am editing with CKeditor, the php is visible and untouched, and all characters are preserved in UTF-8.
4. HOWEVER, when I save work, the php gets disabled, and I find this in the source file (replacing the code shown in 1, above):
<p>
php include 'includes/footer.html';</p>
What am I doing wrong? Is this a CKeditor issue, or is it something with my host (or my .htaccess) that is not allowing php to be posted to the file?
Signed,
Desperate