I've just been using drupal for a few weeks, and so far I like it. BUT.... I just can't seem to make fckeditor work right with php scripts or java scripts. I need to work real real bad. Please if you know what to do PLEASE help!!!

Comments

iancawthorne’s picture

I don't think it is possible for php or javascript to be pasted into a rich text editor. The only way is to disable the rich text. When you go back in to edit the page, the php should still be there, but it will appear hidden in rich text mode.

Hydrant Ltd
www.hydrant.co.uk

WorldFallz’s picture

Yep-- and if you use the wysiwyg module to run fckeditor you can set it up so that the 'php code' input format disables it by default.

onejam’s picture

For adding javascript, i usually setup a new input format called 'scripts' and leave all the all the filtering options out. Just switch to this input when you need to paste javascript into the textarea.

For php, turn the core module 'PHP filter' on then set permission for admin to access it only to prevent users using it and you'll have a new input format to add php codes.

-----------------------------------------------------------------
We build engaging websites and intuitive designs that will benefit your business.
Duvien