Image drag and drop problem with Firefox and TinyMCE on WP 2.0
-
Hi. I’ve got a WordPress 2.0 blog in a path like https://www.domain.com/blog (i.e., not at the website’s document root but in a subdirectory). When I try to edit/create a post I can upload images alright, but when I try to drag and drop the image into the WYSIWYG editor, the picture is dropped without the ‘/blog/’ part. For example, my pictures are uploaded (using the WP upload feature) into $DOCUMENT_ROOT/blog/wp-content/uploads/my_picture.jpg. When checked via FTP, the picture looks fine in the right directory. I can browse and list and preview all the pictures I upload. However, when I drag the picture and drop it into the editor, a “broken link” picture is inserted. If I check the picture’s URL, it looks like https://www.domain.com/wp-content/etc. instead of https://www.domain.com/blog/wp-content/etc.
This only shows up with Firefox (latest version and a very old one too), but in Internet Explorer it works perfectly fine, i.e., the drag and drop function inserts the image with the correct path.
I checked up some stuff, and I could determine that the script inline-uploading.php is doing the things right (at least the generated content has the correct links). I could not determine where the /blog/ part of the path was lost, but I think it is somewhere into tiny_mce_gzip.php.Any comments would be appreciated.
Guille
- The topic ‘Image drag and drop problem with Firefox and TinyMCE on WP 2.0’ is closed to new replies.