Topic: Insert Php Code in Ckeditor

Hello,

what must i do to use a phpCode(galleryScript) in CkEditor?

I added followed code in the index_cke.tpl:

            htmlEncodeOutput: false,
            entities_latin: false,
            entities_greek: false,
            extraPlugins: 'highslide',
            extraPlugins: 'video',
protectedSource.push( /<\?(php)?[\s\S]*?\/\?>/gi ),

without success.




2 (edited by 2013-03-14 12:32:24)

Re: Insert Php Code in Ckeditor

What problem are you gettng?You can only enter/edit php code in source view not in the wysiwyg mode.
http://ckeditor.com/comment/53526#comment-53526

Re: Insert Php Code in Ckeditor

Yes i now, but he ignore the phpCode:

<?php
echo hello world;
?>

--->


<!--?php
echo hello world;
?-->

and protectedSource.push(/<\?[\s\S]*?\?>/g); dosen`t work.

Re: Insert Php Code in Ckeditor

I don`t understand what must i do to include a php-script via ckeditor in cutenews?

When i insert this in index_cke.tpl:

<script type="text/javascript">
    (function()


    {
        config.protectedSource.push(/<\?[\s\S]*?\?>/g);


        var settings =
        {
              skin: 'moono',
            width: 680,
            height: 350,
            customConfig: '',
           
            language: 'en',
            entities_latin: false,
            entities_greek: false,
            extraPlugins: 'pbckcode',



----->   ckeditor without toolbar!!


It`s not possible about security reasons?