The Upload Image works just fine until I create my own content type, add a couple of CCK fields type textarea and configure YUIEditor to be used in them.
Steps to reproduce
-Install the YUI Rich Text Editor, Upload, grant permissions, etc (I am using IMCE, Image Toolkit, CCK, Image Field for CCK, if matters)
-Use it to insert images button and the Upload Image (everybody happy)
-Create a Content Type with 1 CCK fileld type textarea
-Site Configuration -> YUI Editor settings -> edit Profile.
-Complete the IDs of the CCK textareas where it says
-- "Define which textareas do you want the editor to replace, write the ID of each textarea on a seperate line. (if empty the editor will only replace the body textarea)"
-Add edit-body to that list so it displays everywhere
-Verify that if you create a Node with the new Content Type both the body and the CCK field have the YUI Editor
-Verify that the rest of the Bodies of the rest of the Content Types have the YUI Editor
-Click on the "insert image" button. Only the Node of the Content Type with the CCK field displays the "Upload Image" link. The rest are broken.
Comments
Comment #1
xenophyle commentedI was having a similar problem, but I only had 2 IDs and when I changed the order of them (so edit-body was first) it worked for me.
I thought of changing the order because it reminded me of another bug I had seen where the coder button was only appearing in the first of the editors, if I was using the editor on multiple fields of a content type. That bug was fixed when I applied the patch submitted in comment #8 of http://drupal.org/node/386066. It might be a good idea to examine the patch and see if this is a similar problem.