Hi,

First of all thanks a lot for this great module :) I've got a problem while using FCKEditor: I'm using image_assist to embed image-nodes into my storys/pages it stops working when I'm enabling FCKEditor. Is there a possiblity to use image_assist together with FCKEditor or has FCKEditor a similiar function to include image-nodes? Note: It would be ok if there isn't a function to upload images, but I want to choose image-nodes.

Error: Image_Assist only shows an empty window and there is a javascript error at line 1 in fckeditor. The error is:

initLoader is not defined
onload(load )

I've tested this with the latest FF.

Cheers,
Andy

Comments

wwalc’s picture

Please make sure that you've followed README.txt file during installation:

Modules: Image Assist
---------------------
Image Assist can be integrated with FCKeditor.
To do this, simply copy the modules/fckeditor/img_assist_fckeditor.js file to modules/img_assist/img_assist_fckeditor.js.

Did you copy the img_assist_fckeditor.js file?

ablank’s picture

Sorry for my late reply. Yes I did, but it doesn't work with IE. I've tested it in meantime with Firefox where it works without any problems. In IE I got the following JS error:

--------------------->
Line: 87
Char: 5
Error: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
--------------------->

Is there a fix for this?

wwalc’s picture

Try the stable release (drupal-5-x-2-1), clear the cache in IE, restart the browser if required.
A couple of bugs regarding IE has been fixed since 5.x-2.1-beta2 (at least I hope so).

ablank’s picture

Thanks a lot for the fast reply. I've installed yesterday the latest stable release (drupal-5-x-2-1), cleared the cache, started the browser again but I still got the same error with IE. Please let me know if I can provide you more information...

wwalc’s picture

Oooops.

Open modules/fckeditor/fckeditor.utils.js, find IntegrateWithImgAssist() function.

Replace:
cl = link[i].getAttribute("class");
with:
cl = link[i].className;

Clear your browsers cache.
Now when you reload the page and move the mouse over Image Assist icon, you should see that link now points to ...img_assist/load/fckeditor...

Let me know if that fixed the problem.

rdsmith@drupal.org’s picture

Version: 5.x-2.1-beta2 » 5.x-2.1

I have followed the instructions in step #5 listed above on a Drupal 5.7 site (with javascript aggregation activated) and with fckeditor version 5x-2.1. coupled with the 'img_assist' module
And I received the following error..

Error: Image_Assist only shows an empty window and there is a javascript error at line 1 in fckeditor. The error is:

initLoader is not defined
onload(load )

Is the javascript aggregation affecting the performance, mabye?

Thanks,

Robert D. S.

sonicthoughts’s picture

I have followed all these instructions. pointing to the right module. still won't work - just a blank screen.

rdsmith@drupal.org’s picture

I am using fckeditor version 5x-2.1

The Error {Image_Assist only shows an empty window and there is a javascript error at line 1 in fckeditor.} is now gone..

My final result is that I get the 'img_assist' pop up window with the same background as the body of my theme.

Here is how I got to that point.
1. In my (modules/fckeditor/fckeditor.utils.js), I made no changes as stated in #5.
2. The way I did this command (To do this, simply copy the modules/fckeditor/img_assist_fckeditor.js file to modules/img_assist/img_assist_fckeditor.js ) was with the UNIX command
'cp modules/fckeditor/img_assist_fckeditor.js modules/img_assist/'

I am using Javascript aggregation and NOT excluding the 'modules/fckeditor/img_assist_fckeditor.js' and 'modules/img_assist/img_assist_fckeditor.js' files in the js aggregation (under http://www.yourdrupalsite/admin 'performance',

Also I am also using the 'imce' module for uploading pictures into the fckeditor area (I point all users to one common folder '/files/images')

Lupin3rd’s picture

I have the same error. If i click on img_assist icon with FCKeditor active i have the error.
It only workd fine if:
1) fckeditor default state deactive
2) click on img_assist icon and insert image
3) click on fckeditor active link

wwalc’s picture

Lupin3rd - did you try the latest dev module? (remember to clear your browser's cache).

Please also follow this step from README.txt file:

Modules: Image Assist
---------------------
Image Assist can be integrated with FCKeditor.
To do this, simply copy the modules/fckeditor/img_assist_fckeditor.js file to modules/img_assist/img_assist_fckeditor.js.

realityloop’s picture

wwalc, followed your step to edit modules/fckeditor/fckeditor.utils.js and now I am getting javascript errors on the popup window when I click image assist icon in IE7 and the frames are both blank:

Line: 13
Char: 1
Error: Object expected
Code: 0
URL: http://domain/img_assist/load/fckeditor?textarea=body
Line: 7
Char: 3
Error: 'insertToEditor' is undefined
Code: 0
URL: http://domain/img_assist/load/fckeditor?textarea=body

Firefox still has a blank popup as per the following issues:
http://drupal.org/node/245484
http://drupal.org/node/203621

wwalc’s picture

Oooops. I should have double-checked that. Img_assist integration didn't work when img_assist module was located in sites/all/modules directory.
Use CVS to get corrected files or download the dev release tomorrow.
Remember to replace the old img_assist_fckeditor.js file in img_assist directory.

realityloop’s picture

Status: Active » Reviewed & tested by the community

Thanks wwalc,

Thats fixed it in both FireFox and IE7.

Cheers!

sun’s picture

Interesting! How the heck did you integrate img_assist? ;) I'll need to have a look at your code...
Let me know when this has been fixed so I can update IA's project page to mention FCK as supported editor.

wwalc’s picture

Status: Reviewed & tested by the community » Fixed

sun: I have moved discussion about integrating FCKeditor with Image Assist to #249684: FCKeditor & Image Assist, let's discuss if we can improve it a little bit.

It looks like this bug has been fixed (thanks realityloop for testing this), so I'm closing this one (for anyone interested: use dev release until new stable release is out).

David Stosik’s picture

Hello,
Could you please tell me where did you find this?

Thanks,
David

Edit: sorry, I was not very clear, I was thinking of the Image Assist plug-in for FCK Editor, after looking for it, I did not find anything...

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

realityloop’s picture

Version: 5.x-2.1 » 5.x-2.x-dev
Status: Closed (fixed) » Active

wwalc, this seems to have cropped up again in latest dev release from May 24th

StephaneC’s picture

Hello,

I don't know if it can help but i have proposed a correction in img_assist_fckeditor.js that solves the "blank frame" problem, see #249684: FCKeditor & Image Assist step #3.

Stephane

wwalc’s picture

Status: Active » Fixed

@realityloop: thanks, for reporting this. Unfortunately I didn't test this patch well and I had to revert it: #261483: Having the FCK editor load upon page completion (FCK failes in some occasions within fieldsets)
Everything should be ok now, at least in 5.x-2.x, so I'm closing this one.

@StephaneC: I have created a separate issue from your comment - #272834: Image Assist Integration + FCKeditor 6.x-1.x-dev.

realityloop’s picture

wwalc, Thanks, working again with 5.x-2.x

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

KrisBulman’s picture

I know this question has been likely beaten to death, but is there a way to add an I-A button to the toolbar with the drupal5/fckeditor 2.x integration?

wwalc’s picture

Could you test the latest 6.x-1.x dev release of FCKeditor module along with Image Assist 6.x-1.0-beta1 and let me know if it works fine for you?
If I get some confirmations that it really works, I can try to port this also to 5.x, but please create a separate feature request for it, ok?

grub’s picture

I just tested with:

  • drupal 6.4
  • fckeditor-6.x-1.x-dev.tar.gz
  • image-6.x-1.0-alpha3.tar.gz
  • img_assist-6.x-1.0-beta1.tar.gz

Things seem to be working pretty well.