Hello,

When I click "Insert" (image) button, the img_assist pop-up only displays "Properties: Change how the image is displayed." and a "Start over" button (which leads to first screen : upload field + images browser) in the top area of pop-up. Image is not inserted.

When I disable rich editor, the [inline..] mark-up is correctly inserted (and the image is displayed).

This happens either with TinTinyMCE module or WYSIWYG API + TinyMCE.

Thanks for any help... !

Comments

mgriffith’s picture

Version: 6.x-2.x-dev » 6.x-2.0-alpha4

The same behavior occurs when using FCKEditor and 6.x-2.0-alpha4. The popup box remains after clicking the Insert button, displaying as iko describes above. The filter is not inserted into the FCKEditor window.

Switching to plain text editor and going through the Image Assist process again results in the filter being inserted into the textarea as expected.

This error is seen in Firebug:

uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://[site address]/sites/all/modules/img_assist/img_assist_textarea.js?W :: insertToEditor :: line 90" data: no]

frank.dev’s picture

Hi,

I have the same problem with the 6.x-2.0-alpha4 and 5.x-2.0-alpha4 in connection with the FCKeditor.

For the 5.x and 6.x alpha3's versions this problem did not exist.

Greetings
Frank

fsismo’s picture

Same problem. Tried with different editors (FCKeditor 2.6.4.1 and TinyMCE 3.2.5). The error reported by firebug is uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://www.sismonda.com.ar/sites/all/modules/img_assist/img_assist_texta... :: insertToEditor :: line 90" data: no]

topas-1’s picture

Same on me... I guess I made the all configurations but also get the same exception in Firefox. If I (miss-)use Image Assist to put the code into a usual text form in another part of the website it puts the code into the box - but on wysiwig it doesnt't work. So I wonder whether we made something wrong (may someone at least give us a hint where to look for our mistake)?

Thanks & regards

Anonymous’s picture

Possible Solution:

I was having this problem when using Wysiwyg API + TinyMCE. When I used the icon below the text area on filtered text areas, it worked fine. When I used it on Full HTML areas, I got the JavaScript error.

When I went to edit my TinyMCE profile in Site configuration -> Wysiwyg -> Profiles, I found an ImageAssist button that gets placed in the Wysiwyg toolbar. Using this button instead of the icon below the text area worked for me.

iko’s picture

linclark said:
When I went to edit my TinyMCE profile in Site configuration -> Wysiwyg -> Profiles, I found an ImageAssist button that gets placed in the Wysiwyg toolbar. Using this button instead of the icon below the text area worked for me.

Indeed. Thanks linclark !

sun’s picture

Status: Active » Closed (duplicate)

Yes, the built-in "Add Image" button is for plain-text (textarea) usage (without Wysiwyg module) only.

The bug reports about FCKeditor in this issue are duplicate of #478284: Add FCKeditor (Wysiwyg) integration.