Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you enable the TinyMCE module and you edit a node that has the 'PHP evaluator' filter then TinyMCE will just ignore this and strip out the PHP completely.
I seen that there was some commented code in 6.x-1.1-dev that was meant to work around this but it wasn't very good (it assumed that the format with the ID '2' was a PHP format).
I modified the commented code so that looks through the node's format and sees if any filters belong to the PHP module. I've attached the patch, hopefully you will find it useful.
Thanks!
Comment | File | Size | Author |
---|---|---|---|
tinymce_php.patch | 1.15 KB | pufuwozu | |
Comments
Comment #1
diab303 CreditAttribution: diab303 commentedYou are my hero! It works like a charm. Thank you!
Comment #2
gjones CreditAttribution: gjones commentedThank you kind sir for this wonderful patch, +10,000 Internets for you!
Comment #3
nicoloye CreditAttribution: nicoloye as a volunteer commented