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.

CommentFileSizeAuthor
wymeditor-fix-php-input-format.patch708 byteskiz_0987

Comments

edrex’s picture

What 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.

magico’s picture

Version: 5.x-1.x-dev » 5.x-2.0
Status: Needs review » Fixed

This module now attaches itself to a specific input format, and will be only activated when that input format is selected.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.