Closed (fixed)
Project:
FCKeditor - WYSIWYG HTML editor
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2008 at 14:49 UTC
Updated:
17 Sep 2008 at 12:34 UTC
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
Comment #1
wwalc commentedPlease make sure that you've followed README.txt file during installation:
Did you copy the img_assist_fckeditor.js file?
Comment #2
ablank commentedSorry 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?
Comment #3
wwalc commentedTry 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).
Comment #4
ablank commentedThanks 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...
Comment #5
wwalc commentedOooops.
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.
Comment #6
rdsmith@drupal.org commentedI 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.
Comment #7
sonicthoughts commentedI have followed all these instructions. pointing to the right module. still won't work - just a blank screen.
Comment #8
rdsmith@drupal.org commentedI 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')
Comment #9
Lupin3rd commentedI 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
Comment #10
wwalc commentedLupin3rd - 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.
Comment #11
realityloop commentedwwalc, 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:
Firefox still has a blank popup as per the following issues:
http://drupal.org/node/245484
http://drupal.org/node/203621
Comment #12
wwalc commentedOooops. 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.
Comment #13
realityloop commentedThanks wwalc,
Thats fixed it in both FireFox and IE7.
Cheers!
Comment #14
sunInteresting! 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.
Comment #15
wwalc commentedsun: 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).
Comment #16
David Stosik commentedHello,
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...
Comment #17
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #18
realityloop commentedwwalc, this seems to have cropped up again in latest dev release from May 24th
Comment #19
StephaneC commentedHello,
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
Comment #20
wwalc commented@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.
Comment #21
realityloop commentedwwalc, Thanks, working again with 5.x-2.x
Comment #22
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #23
KrisBulman commentedI 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?
Comment #24
wwalc commentedCould 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?
Comment #25
grub commentedI just tested with:
Things seem to be working pretty well.