WYMEditor should not be loaded if the input format is PHP code, or else the code can get mangled. This patch uses the body_filter part of the form to figure this out, rather than the (potentially slower) node_load method that TinyMCE uses.
| Comment | File | Size | Author |
|---|---|---|---|
| wymeditor-fix-php-input-format.patch | 708 bytes | kiz_0987 |
Comments
Comment #1
edrex commentedWhat about doing this on the client side by responding to changes in the input format? Whenever the input format changes, check if the format is supported by the editor, and disable if not. Also check on load of course.
Also, since various formats are incompatible with wym (and new formats can be created), it seems appropriate to allow the site admin to select which formats the editor should be used for.
Comment #2
magico commentedThis module now attaches itself to a specific input format, and will be only activated when that input format is selected.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.