I installed FCKeditor 'fckeditor-6.x-1.3-rc1' and it works OK. I then installed Image Assist version 1.16.2.1. The Image Assist icon shows up below the FCKeditor window. When I click the icon another window opens up and it's blank -- nothing shows in it. The path for that window is http://shastacrystals.com/img_assist/load/fckeditor?textarea=body
If I disable FCKeditor, go back to editing a page, click the Image Assist icon, another window opens up and I can see the images I uploaded. The path for that window is http://shastacrystals.com/img_assist/load/textarea?textarea=body
I can't get both FCK editor and Image Assist to work together.
Can anyone help?
Comment | File | Size | Author |
---|---|---|---|
#6 | 6.x-2.0.patch | 4.51 KB | Artur Formella |
#6 | 6.x-1.3.patch | 4.47 KB | Artur Formella |
Comments
Comment #1
Diseree CreditAttribution: Diseree commentedI have same problem with 6.x-1.3-rc2. Error console of Firefox 3.0.3 shows 'initLoader is not defined'.
Copy sites/all/modules/fckeditor/img_assist_fckeditor.js to sites/all/modules/img_assist.
Refresh Drupal cache and Brower cache.
Then img_assist popup on fckeditor will work with IE7 and Opera9.6.
Firefox 3.0.3 still says error, but I dunno why.
Comment #2
wwalc CreditAttribution: wwalc commentedJust to be sure we're testing it in the same environment, I'm working on Drupal 6.11 + Image Assist 6.x-1.0 + FCKeditor 6.x-1.3-rc2
No other modules, Garland theme, right?
FCKeditor is enabled by default and the the only way to use Image Assist is to press "Image Assist" button inside of FCKeditor, correct?
@cgreenberg: where did you download "Image Assist version 1.16.2.1"? Check the img_assist.module file and search for
// $Id: img_assist.module,v 1.72.2.4 2008/08/16 20:41:00 sun Exp $
let me know what do you have there.
Comment #3
wwalc CreditAttribution: wwalc commentedSome more information:
I'm able to get a javascript in FF3 with Firebug enabled, this error occurs randomly, mainly when I clear browser's cache. However, FCKeditor works fine with that error and a valid Image Assist tag is inserted.
The error that get is:
So if you are getting 'initLoader is not defined' error, please do the following:
- provide me a detailed list of steps to reproduce this issue, starting from a fresh Drupal installation
- ..or use contact form and send me a link to a site where I could see that bug live, because I may be missing something obvious on my local installation
Comment #4
lwiegand CreditAttribution: lwiegand commented+ subscribe
Comment #5
awakenedvoice CreditAttribution: awakenedvoice commented+ subscribe
Comment #6
Artur Formella CreditAttribution: Artur Formella commentedYes! I found the reason. Please try the patch and tell us if it works.
Comment #7
Artur Formella CreditAttribution: Artur Formella commentedhttp://drupal.org/node/327894 has been marked as DUP
Comment #8
sámo@drupal.org CreditAttribution: sámo@drupal.org commentedSo I tried the patch, it is working in FF.
In IE7 there are still some problems. The icon appears in toolbar, but on click a popup window appears empty with javascript error. Keep the popup window open and click Image Assist icon again and everything works all right now.
When Super Nav module is enabled, Image Assist icon doesn't appear at all.
Comment #9
Artur Formella CreditAttribution: Artur Formella commentedImage Assist loads only one JavaScript file set in the URL.
Default is 'textarea':
http://localhost/drupal660/img_assist/load/textarea?textarea=body
it means: load img_assist_textarea.js file.
FCKeditor changes the link to:
http://localhost/drupal660/img_assist/load/fckeditor?textarea=body
it means: load img_assist_fckeditor.js file.
FCKeditor needs both files, default Image Assist functions (img_assist_textarea.js) because (at start) doesn't know the textarea state when user clicks Insert.
In img_assist_fckeditor.js loads img_assist_textarea.js:
In img_assist_textarea.js there is a function initLoader(), we need it in popup:
<frameset rows="38, *" onload="<b>initLoader()</b>" frameborder="0" border="0" framespacing="0">
but IE, sometimes Mozilla loads this file to late. I propose to add it to img_assist.module.
Open img_assist.module, find:
add after:
Open img_assist_fckeditor.js, remove:
Please let me know if it works
Comment #10
sámo@drupal.org CreditAttribution: sámo@drupal.org commentedOK, this works for FF and IE7.
With Super Nav module the icon doesn't appear and no error occurs.
Thank you
Comment #11
wwalc CreditAttribution: wwalc commentedCNW: patch is invalid because it assumes that img_assist module is always installed ('ImageAssist' button is added to every toolbar regardless of Drupal configuration). I guess it would be a sane approach to leave current automated way of adding a button + add some information that in case of a custom toolbar, such button should be added manually.
Comment #12
dmbritos CreditAttribution: dmbritos commenteddid you see that from localhost all works fine...why?
Comment #13
pieterbezuijen CreditAttribution: pieterbezuijen commentedWorks for me, tnx!
Comment #14
wwalc CreditAttribution: wwalc commentedOk, so if the problem is in the missing initLoader function, let's just try adding this function to the img_assist_fckeditor.js instead of modifying img_assist.module manually. I can't reproduce this issue to see if such fix really works, but let's see if anyone reports any problems with it.