Breaks PHP Code pages
Mguel - December 1, 2007 - 10:00
| Project: | Whizzywig |
| Version: | 5.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | sdecabooter |
| Status: | closed |
Jump to:
Description
The php code is broken (in content using the PHP Code filter).
For example:
<?php echo url("node/2") ?>">
is converted into:
<?php echo url(">">
On other WYMEditor there is a patch that works around this issue:
Disable for PHP Input Formats: http://drupal.org/node/134807
Maybe something similar could be used.
Cheers,
Mguel

#1
To make myself clear, this happens even if you work with the source, and with pages made prior of installing whizzywig... if you edit the node, the php gets spoiled no matter what you do. The only solution is to disable wyizzywig for that node, but it's too time consuming. Better would be to disable by type of content (disable whizziwig for all php pages).
cheers, and merry christmas
#2
Hi,
I'll see if there's a good way to find out if an input format uses the PHP filter or not, and if so, disable the Whizzywig editor.
Can't promise when i will have time though..
Kind regards,
Sven
#3
an extension to this is it would be great to attach the wysiwyg to the input filter in real time. So you select the "wysiwyg" input filter bam you have the wysiwyg and then instead you select html, no wysiwyg... But this sounds complicated... so not sure how easy this would be to do...
#4
I was wondering: is this bug still there? Quite a few of my nodes contain php code, some of them quite complicated, and I really dread the idea of that code being 'hurt' by a moody editor. So, although I like Whyzziwig on the demo site, I'm afraid to install it unless I'm sure that it won't damage any php bits.
#5
Try Whizzywig 6.x for Drupal 6. There is a option to disable Whizzywig on centain page!
Please create NEW post if u find any bugs or want to make a feature request.