Hi I have a problem with php code within the ckeditor (in Drupal):
I load a normal Drupal textarea and type:
When I switch to the rich text editor (CKeditor) and change to "source" mode i get something like this:
This does not happen if I just type:
The problem is when I put it inside href.
I have the config.protectedSource.push( /<\?[\s\S]*?\?>/g ); uncommented.
Please help.
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="<!--{cke_protected}%3C%3Fphp%20print%20base_path()%3B%20%3F%3E-->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.
Re: php code
Re: php code