I am using a site running Drupal 6.2, with Image 6.x-1.0-alpha1. When I try to add an image, I get a pop-up where I can select or upload an image. After selecting an image, I define the properties (title, etc), and click Insert, but the [img_assist|nid=...] tag is not generated. In the popup, it still says:

Properties: Change how the image is displayed (Start Over button) with a blank area below.

I am using FCKEditor, but even without it (i.e. if I toggle to the standard text area) it still doesn't work.
Even if I try to insert HTML tags, it still gives the same behaviour as above.

This was tested on FireFox 2 and IE 7, and same behaviour on both.

Comments

sifaan’s picture

Looks like this is v6 version of this problem: http://drupal.org/node/203621

So I guess the problem is with FCKeditor and not img_assist.

I wanted to try the solution at http://drupal.org/node/233791 but I do not have a file modules/fckeditor/img_assist_fckeditor.js

I am using FCKEditor 6.x-1.2-1, should I try the -dev version??

Thanks!

sifaan’s picture

I tried the -dev version of FCKEditor, and at least now I have a file modules/fckeditor/img_assist_fckeditor.js that I can copy to modules/img_assist

But it still doesn't solve the problem.

NB In the 5.x version of this discussion, there was some editing suggested, so that when I mouseover the link, I should get "/img_assist/load/fckeditor?textarea=teaser_js" - this is what I currently see in the mouseover anyway.

Earwig’s picture

I have this problem too. No WYSIWYG and an image that's already uploaded. After choosing the image and settings (any settings) I click Insert and get the blank frame. The source shows that several HIDDEN fields have been created, but clearly some Javascript died. Checking Console2, there is an error:

Error: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]
Source file: http://my.site.com/modules/img_assist/img_assist_textarea.js
Line: 90

That's the insertToEditor function:

function insertToEditor(content) {
  // Insert the image
  if (myDoc.selection) {
  	// IE
    myTextarea.focus();
    cursor = myDoc.selection.createRange();
    cursor.text = content;
  }
  else if (myTextarea.selectionStart || myTextarea.selectionStart == "0") {
  	// Gecko-based engines: Mozilla, Camino, Firefox, Netscape
    var startPos  = myTextarea.selectionStart;
    var endPos    = myTextarea.selectionEnd;
    var body      = myTextarea.value;  
    myTextarea.value = body.substring(0, startPos) + content + body.substring(endPos, body.length);
  }
  else {
  	// Worst case scenario: browsers that don't know about cursor position:
  	// Safari, OmniWeb, Konqueror
    myTextarea.value += content;
  }
  
  // Close the dialog
  cancelAction();
  return false;
}

Line 90 is:

  else if (myTextarea.selectionStart || myTextarea.selectionStart == "0") {
naheemsays’s picture

Not sure if it is the same thing, but on my site I am getting two image buttons - one above the textarea, one below.

Both seem tolook identical and bring up the same popup, but for the one above, no image info goes into the textarea. Using the one below works as expected.

(Drupal 6.2, img_assist 6.x-1.0-beta1, no other textarea plugin, ifeeldirty theme)

sifaan’s picture

thanks for the input... I also have 2 links, and when I tried the link at the bottom then I am able to insert an image (so, possibly the link that appears at the top of the text area is buggy and shouldn't be there?)

However, I'm not sure if it works "as expected" still - when it inserts an image I only see a placeholder (some standard graphic). It's only if I click "Preview" that I can see how the picture looks like in the text. I would rather have images displayed in the text area window itself (my current workaround is to use the links from Image module with the image button in FCKEditor to add images, and this way I see the images in the text area itself).

How does it display for you?

MtRoxx’s picture

Version: 6.x-1.0-beta1 » 5.x-1.3

Same problem with 5.3, I receive a "Properties: Change how the image is displayed (Start Over button) with a blank area below." message. It doesn't matter if I add a new image or use an image that has already been loaded. No code is generated. Suggestions would be appreciated.

jbergeron’s picture

I am seeing the same behavior. Subscribed.

sun’s picture

Status: Active » Closed (duplicate)

Marking as duplicate of #249684: FCKeditor & Image Assist.

Sorry, please do not follow-up on this issue. I have neither looked into nor tested FCKeditor's support for Image Assist. Any follow-up in the other issue will be recognized by both module maintainers (that is, I hope so).

kavi_r’s picture

i am using drupal 6.4 and i am using fck reditor 2.6.3.zip and img_assist-6.x-1.0-beta1.tar.when i click image assist link it only show a pop up window.i cant insert images.In fckeditor when i click image button i can upload image and that images display in a body field when i click save images are not display in a page.what is the reason.

can anybody give a solution to me?

Thanks.

naheemsays’s picture

Your problem is different from the issue you are posting in.

You probably need to modify the input format to allow either the code or image tags depending on the method you are taking.

(If that is not the problem, please consider opening a new issue.)

Agromonion’s picture

Hello,

had the same problem.

my solution:

go to home--administer--site configuration--image assist--display settings--css file ataching: Yes.

PartisanEntity’s picture

I have the same problem on Drupal 6.x and using TinyMCE.

After uploading the image, going through all the steps and finally clicking 'insert' I get nothing apart from the header title and a button 'start over'.

denix’s picture

Version: 5.x-1.3 » 6.x-2.0-alpha3
Component: Code » Wysiwyg API Plugin

I'm using d6.10 with FCKeditor and I have the same problem: an empty windows and no image inserted in the code. what is strange is that if I use the img_assist without the WYSIWYG API everything works and the right code is inserted at the right place.

let me know,
Denis

jcorry’s picture

Same issue here, subscribing.

With no WYSIWYG editor enabled, img_assist inserts the tag.

Will not insert tag into FCKEditor or TinyMCE though.