Leave PHP on code edit

Lukas238 - February 23, 2009 - 16:17
Project:widgEditor - A WYSIWYG editor
Version:6.x-1.0
Component:Miscellaneous
Category:feature request
Priority:critical
Assigned:Unassigned
Status:active
Description

In my site y need to insert images without absolute url, so I use the PHP code "base_path()" like in this example:

<img src="<?= bas_path()?>images/picture.jpg" alt="Some Picture" />

So I use the editor in code view to write this code. But when I save the node the PHP is always removed by widgEdit, even if Drupal 6 input format is set to allow PHP.

I can see 2 possibles solutions:

1. Make widgEdit leave alone the PHP code when the Drupal 6 input format is set on PHP code.
2. Or, add a link to quick disable the rich text editor (like the one you see to enable the editor, when you setup the module to not be active by default).

Y suppose the option 2 it can be implemented relatively easy.

Thank!

#1

Gurpartap Singh - February 23, 2009 - 17:34

Option 2 is already available. See the last HTML code button.

Does it not work for you?

 
 

Drupal is a registered trademark of Dries Buytaert.