Opened 12 years ago
Closed 12 years ago
#9055 closed Bug (invalid)
CKEDITOR.config.protectedSource.push( /<\?[\s\S]*?\?>/g ); // PHP Code
Reported by: | SB | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
Hello,
I am using CKEditor from the Hero Framework available at www.heroframework.com .
I tried putting this as the last line of the config.js file of the \ckeditor\_source\core directory.
After changing the config.js file, I restart the CKEditor by restarting the file publishing URL by logging out and logging back in.
I enter the following code in the editor:
{php_code}{literal}<?php
print "Hello, world!";
?>{/literal}{/php_code}
It changes to:
<p>
{php_code}{literal}<!--?php
print "Hello, world!";
?-->{/literal}{/php_code}</p>
Can you help me to overcome this problem?
Regards SB
Change History (2)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
You should put this code in config file like shown below:
CKEDITOR.editorConfig = function( config ) { config.protectedSource.push( /<\?[\s\S]*?\?>/g );
For the future
Please note that the CKEditor development website is not the right place for support requests.
Please refer to the following article for information on where to get support for all issues related to CKEditor: http://docs.cksource.com/CKEditor_3.x/Howto/Support
Also try using our forums for advice: http://cksource.com/forums/
If you are looking for professional assistance, the CKEditor development team is available via a dedicated support channel that is included in all our commercial licenses: http://ckeditor.com/license
Replying to shantanubhattacharya@…:
Forgot to put the code that I put in the CKEditor:
CKEDITOR.config.protectedSource.push( /<\?[\s\S]*?\?>/g ); PHP Code