I have spent hours with this problem. Updated to latest Drupal and latest FCKEditor, rc3. The Image Assist button disappeared everywhere. If I disable FCKeditor, Image Assist reappears. I did upload the img_assist_fckeditor file. I did clear cache. Several times.

I deleted entire FCKEditor and then uploaded a fresh version. (And I preserved the config.js file and plugins are uncommented)

Can anyone help. This is really a shame. I had uploaded and tested on my local site and apparently let cache fool me before I went live. Live also fooled me because of cache issue but now have discovered this is missing on main site and numerous multisites.

Really would appreciate some help on this.

Comments

Artur Formella’s picture

Status: Active » Postponed (maintainer needs more info)

Don't you have ImageAssist icon in the toolbar?

ggevalt’s picture

Help me with that. No I don't have Image Assist in the toolbar. Image Assist icon had been appearing outside and below the body box as it does with plain text mode. By the Image Assist icon I mean the photo and green plus icon. With the latest upgrade (I actually went from rc1 to rc3, that icon disappeared.

I have looked thorugh all the changelogs and see a reference to improved Image Assist integration and improved I.A. integration in pop-up mode, but no details. I have looked at the new config.js file but see no reference to any new Image Assist toolbar functionality unless it is now part of the "image" toolbar functionality.

Now there may be something else that I've done that has caused this problem, but again, Image Assist is functioning fine -- when I disable FCKeditor module, Image Assist appears and functions perfectly in plain text mode. The FCKeditor module upgrade appears to be what caused the change in behavior and the disappearance of the Image Assist icon.

(Again, I have deleted entire module and reinstalled a fresh version AND have updated the config.js file with my existing changes AND installed the latest imageassit_fckeditor.js file into the img_assist module AND cleared cache AND tried out on different machines just to make sure it was not a cache issue.)

Perhaps there was an additional step in image assist integration that I have forgotten or that new version overwrote. I'm baffled.

geoff

ggevalt’s picture

Status: Postponed (maintainer needs more info) » Active

Anyone out there who can help?

geoff gevalt
http://www.youngwritersproject.org

Artur Formella’s picture

To use Image_Assist integration uncomment line:
FCKConfig.Plugins.Add( 'imgassist' ) ;
in fckeditor.config.js

If you want to have old icon - open fckeditor.utils.js and comment lines (add //):

$('#img_assist-link-' + taid).hide();
$(".img_assist-button").hide(); //3x
$('#img_assist-link-' + textareaID).hide();

ggevalt’s picture

Arczif

Thanks for the response...

FYI, I had already uncommented line FCKConfig.Plugins.Add('imgassist'); in fckeditor.config.js file....

I will try adding the old icon...

A question is, though, does the rc3 version of the FCKeditor module actually integrate Image Assist into the main editor? Is that what you are saying? And, if so, should I merely activate the "image" button in the config.js file and that will activate image_assist? .... CONTEXT: It has been that in order to use img_assist with FCKeditor, you had to set it up so that image assist would work OUTSIDE the actualy FCKeditor wysiwyg box or the "body" box. Has the module been changed so that img_assist now works withIN the wysiwyg box or the "body" box?

I will try to answer that myself, but if you know the answer or can direct me to more detailed documentation, that would be great.

Thanks again for your courtesy and help in this matter.

geoff

UPDATE:
Could not find: $('#img_assist-link-' + taid).hide();

Did find: $('#img_assist-link-' + elId).hide(); and I commented that out.

EUREEKA! The icon is back and image assist is now working. THANK YOU SO MUCH!!!

When you have time, if you could answer my other question, re Image Assist integration... that would be a great help. I suspect that there HAS been a change that allows for integration of image assist in the toolbar function, but I just don't see any information on how to set that up. (Activating "image" toolbar icon does NOT direct you to image assist, fyi.)

thanks
geoff

Artur Formella’s picture

Status: Active » Postponed (maintainer needs more info)

Image assist is now integrated into toolbar. Documentation doesn't exist (yet), but I can say something about that.

To hide image assist icon and link (fckeditor.utils.js):

 $('#img_assist-link-' + taid).hide();
$(".img_assist-button").hide();

In file plugins/imgassist/fckplugin.js we check if image-assist module is loaded:
var imgAssistIcon= top.document.getElementById('img_assist-link-' + FCK.Config['TextareaID']);
-If found - add icon to toolbars:

  addToolbarElement('ImageAssist', 'Basic', 0);
  addToolbarElement('ImageAssist', 'DrupalBasic', 0);
  addToolbarElement('ImageAssist', 'Default', 4);
  addToolbarElement('ImageAssist', 'DrupalFiltered', 0);
  addToolbarElement('ImageAssist', 'DrupalFull', 0);

In this way it works. You told me you don't have that icon, so we have a bug somewhere.

Do you have your own toolbar? (not listed above)

sámo@drupal.org’s picture

I have same problem. Icon of Image Assist doesn't appear in toolbar. I checked following (everything is OK) :

fckeditor.config.js
FCKConfig.Plugins.Add( 'imgassist' ) ; //uncommented

plugins/imgassist/fckplugin.js
var imgAssistIcon= top.document.getElementById('img_assist-link-' + FCK.Config['TextareaID']);
if (imgAssistIcon){
//...
addToolbarElement('ImageAssist', 'Basic', 0);
addToolbarElement('ImageAssist', 'DrupalBasic', 0);
addToolbarElement('ImageAssist', 'Default', 4);
addToolbarElement('ImageAssist', 'DrupalFiltered', 0);
addToolbarElement('ImageAssist', 'DrupalFull', 0);
}

Artur Formella’s picture

Could you add

alert("imgAssistIcon: "+imgAssistIcon);

before line

 if (imgAssistIcon){

and give your results?

Artur Formella’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

This ticket is a DUP of http://drupal.org/node/321844

wwalc’s picture

Actually we could have two different problems here:
- one that has been already detected in #321844: FCKeditor and Image Assist not working together., which occurs because img_assist_textarea.js is being loaded too late.
- the second source of a problem may be the code that adds automatically 'ImageAssist' button to the toolbar. If someone is using a custom toolbar, he will not get the "Image Assist" button. So the solution instead of commenting out the "$('#img_assist-link-' + elId).hide();" code, might be to add the 'ImageAssist' button manually to the toolbar.

@ggevalt: could you try adding the 'ImageAssist' button to your toolbar? Just add another button to the FCKConfig.ToolbarSets variable in fckeditor.config.js like in the example.

Before:

FCKConfig.ToolbarSets["MyToolbar"] = [
['FontFormat','-','Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink', 'Image']
] ;

After:

FCKConfig.ToolbarSets["MyToolbar"] = [
['FontFormat','-','Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink', 'Image', 'ImageAssist']
] ;