Project:Image Assist
Version:5.x-2.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Unable to insert images. This error appears in Firebug:

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.... :: insertToEditor :: line 90"  data: no]

Comments

#1

You do not mention your editor or how the editor is plugged in. I get the error with Wysiwyg 6.x-2.0 and TinyMCE. Read http://drupal.org/node/417166#img_assist-insert-exception. The recommendations worked for the combination I use. Similar to http://drupal.org/node/478284 in FCKeditor.

#2

FCKEditor and using the Wysiwyg 6.x-2.0 - that page you reference may be the solution. I will need to check it out and report back here.

#3

I'm getting the same error as above. Not using WYSIWYG, just straight fckeditor and image assist. All work fine until I actually insert image, then I get the following error.

All links above lead to solution for WYSIWYG not straight FCK

uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost:8888/htdocs/*****/modules/img_assist/img_assist_textare... :: insertToEditor :: line 90" data: no]

Any help much appreciated..

#4

Found that I can insert images if I switch to plain text editor, insert image, then switch back.. will do for now.

#5

Status:active» closed (duplicate)

Thanks for taking the time to report this issue.

However, marking as duplicate of #478284: Add FCKeditor (Wysiwyg) integration. Please search for existing issues before submitting a new one.
You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.

#6

Quick Solution for FCK EDitor and Image assist

I am using fckeditor and image assist and I also faced same error but I found the reason that the file img_assist_fckeditor.js was not getting included.

For solution go to function img_assist_loader() and replace line drupal_add_js($path . '/img_assist_' . $caller . '.js'); to drupal_add_js($path . '/img_assist_fckeditor.js');

It may help you.

#7

Version:6.x-3.x-dev» 5.x-2.x-dev

Quick Solution for FCK EDitor and Image assist

I am using fckeditor and image assist and I also faced same error but I found the reason that the file img_assist_fckeditor.js was not getting included.

For solution go to function img_assist_loader() and replace line drupal_add_js($path . '/img_assist_' . $caller . '.js'); to drupal_add_js($path . '/img_assist_fckeditor.js');

It may help you.

#8

This works when there is no $caller agent identified.
In simple case it would be $caller = textarea
In case of FCKeditor its fckeditor.

#9

I tried this, but then got the php error "initLoader is not defined". For now I've rolled back the changes so at least my users can add an image using the plain text trick..

nobody click here