Closed (fixed)
Project:
Image Assist
Version:
5.x-1.x-dev
Component:
TinyMCE Plugin (drupalimage)
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jul 2007 at 20:30 UTC
Updated:
25 Sep 2007 at 04:23 UTC
After upgrading to the latest TinyMCE, Image Assist, and Image modules, the images have stopped being inserted into the TinyMCE interface. I did a few tests on the live site this error was first identified on and then did a test on a fresh install of Drupal 5. and was able to replicate the error.
[Break on this error] undefined
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://www.example.com/sites/all/modules/img_assist/img_assist_textarea.js :: insertToEditor :: line 89" data: no]
Comments
Comment #1
shane birley commentedAnyone have a look at this?
Comment #2
zoo33 commentedI've done some testing with TinyMCE recently and it worked for me. What versions did you use, -dev versions or official releases? With Image assist, you should use the -dev version currently. (I'll check later exactly what versions I used, don't have access to that server now.)
Comment #3
shane birley commentedI will check into what versions I have today of Tiny and the image assist modules.
Comment #4
zoo33 commentedI'm using TinyMCE 5.x-1.9, Image assist 5.x-dev and Image 5.x-dev, all up-to-date versions. I've installed TinyMCE in the modules directory against recommendations as it's been found that this combination of modules won't work otherwise (see #123203).
Comment #5
shane birley commentedI am currently running Image 5.x-1.5 and Image Assist 5.x.1.x-dev (August 21st, 2007). I will update to Image dev and to the latest dev of Image Assist. TinyMCE is 1.9 - what version of the Moxie code are you using?
Comment #6
shane birley commentedI have updated to the recommended versions and I am no longer getting two error messages, only one.
The error message seems to indicate that it is unable to send the information from the popup back to the TinyMCE editor and into the post. Gak, Javascript...
Comment #7
shane birley commentedI have looked further into this and it looks like the version 2.x.x.x of TinyMCE is has changed and the javascript is not working 100% in the "image-assist-textarea.js" file. It is not passing the pointer to the TinyMCE editor because it getting stopped by Tiny. At least, this what I believe is happening.
Comment #8
zoo33 commentedHmm... The thing is, i don't think img_assist-textarea.js is even supposed to be loaded when you're using TinyMCE. img_assist_tinymce.js should be loaded instead. Are you using the camera button in the TinyMCE toolbar to access Image assist?
I'm using TinyMCE 2.1.2 (the actual JS editor that is, not the Drupal module).
Comment #9
shane birley commentedI dumped my entire installation of TinyMCE, Image, and Image Assist. I have followed the install instructions and there is no camera button at all now. This is the drupalimage plugin you are referring to, correct?
Comment #10
zoo33 commentedYes. The camera button should appear if you have drupalimage installed in tinymce/tinymce/jscripts/tiny_mce/plugins/ and then add the drupalimage button in the TinyMCE settinhgs.
The installation procedure is pretty complicated, it's easy to miss something.
Comment #11
shane birley commentedFixed!
Comment #12
(not verified) commented