[WordPress Plugin] Attachments allows you to simply append any number of items from your WordPress Media Library to Posts, Pages, and Custom Post Types
Some plugins running Javacript will be broken due to undefined variable is being detected in Attachment Javascript in upload.php (or any other screen with the same situation)
Step to Reproduce:
Suppose attachment 3.5.3 is installed and activated already
Download the plugins "manual image crop", install and activate it
Go to Media -> click "Crop" link under image thumbnail(must have to test)
The JCrop will not work and handle will not be shown because Javacript is broken
at "undefined tinyMCE variable" according to trace console in Chrome
Solution:
in class.field.wysiwyg.php, line 82
add a conditional test to avoid undefined tinyMCE variable break the Javascript when it is not available.
Symptoms:
Some plugins running Javacript will be broken due to undefined variable is being detected in Attachment Javascript in upload.php (or any other screen with the same situation)
Step to Reproduce:
Suppose attachment 3.5.3 is installed and activated already
at "undefined tinyMCE variable" according to trace console in Chrome
Solution:
in class.field.wysiwyg.php, line 82 add a conditional test to avoid undefined tinyMCE variable break the Javascript when it is not available.
Hope this can help those with the same problem and improve the Attachment.