Log in or register to post comments
Last post
estimulo's picture
Joined: 20/05/2010
Posts: 3
php code
Hi I have a problem with php code within the ckeditor (in Drupal):

I load a normal Drupal textarea and type:

<img alt="" src="<?php print base_path(); ?>some_katalog/picture.jpg" />


When I switch to the rich text editor (CKeditor) and change to "source" mode i get something like this:

<img alt="" src="&lt;!--{cke_protected}%3C%3Fphp%20print%20base_path()%3B%20%3F%3E--&gt;some_katalog/picture.jpg" />


This does not happen if I just type:

<?php echo 'Hello' ?>


The problem is when I put it inside href.
I have the config.protectedSource.push( /<\?[\s\S]*?\?>/g ); uncommented.

Please help.
estimulo's picture
Joined: 20/05/2010
Posts: 3
Re: php code
The problem is when I put it inside href.
- sorry, I meant src, not href
shman's picture
Joined: 31/05/2010
Posts: 1
Re: php code
Anybody? Please help.