I know this has been touched on other posts:
http://drupal.org/node/20011
http://drupal.org/node/20934

Still I didn't want to hijack those because they didn't appear to cover this error specifically.
I still have a problm using IE and Tiny_MCE and Img_ast.

Specifically, I get an error when clicking on the camera icon in tinyMCE to insert an image. I get somthing about losing communcation with the parent. It doesn't happen everytime and almost seems sporadic. There might be a connection with having an image and some other html text in a node type's text area as a default value.

I don't have the exact copy of the module versions I am using but i downloaded the latests blessed versions for 4.6 on 1/10/2006 and tried re installing (img_assist and tinymce) with no change in behavior.

Error doesn't happen in fireforx.

LAMP Stack
Php 5.0x
Apache 2.x
Fedora Core 1
Mysql 4.x

Comments

benshell’s picture

You won't have this error with the upcoming 4.7 version.

For 4.6, you can try my rewrite of img_assist:
http://drupal.org/node/32506

I hope to have the 4.7 version done later this week. I'm actively working on it.

JohnG-1’s picture

thanks benshell, I tried your version of img_assist with tinymce 1.58 (v2.0.3) but got this error:

warning: call_user_func_array(): First argumented is expected to be a valid callback, 'img_assist_create' was given in /home/user/public_html/drupal/includes/menu.inc on line 354.

I was having the lost communication problem when calling img_assist from tinyMCE's fullscreen window.

any suggestions welcome.

JohnG-1’s picture

I got benshell's version to work.

Lost window communication error still occurs when calling img_assist from the tinyMCE fullscreen window toolbox.

This happens every time - it's not an intermittant fault.

Is this a tinyMCE issue or and img_assist?

can anyone verify this bug please ? (I'm using Firefox)

JohnG-1’s picture

it just occured to me to do a search on "drupalimage" and I found some older threads claiming that this problem with img_assist.module had been fixed. Though whether the fix had been tested with the fullscreen tinyMCE plug-in was unclear.

I'm using img_assist.module,v 1.43.2.12 2005/10/25 14:48:24 mathias which I believe to be the latest version for 4.6.x ?

My apologies if this is just me being stupid, but I'm really stuck!

Patrick Nelson’s picture

Just to add to the pile, I confirm that I'm having the same problem - and it occurs across all browsers (tested FF, Opera, IE and Avant) and is not intermittent.

benshell’s picture

Version: 4.6.x-1.x-dev » 6.x-3.x-dev
Assigned: Unassigned » benshell
Status: Active » Fixed

As I wrote on http://drupal.org/node/46119...

I am the new maintainer for img_assist, but I am only supporting img_assist 4.7+. I just committed a new 4.7 version of img_assist to the CVS repository. I can guarantee you won't see this error again, because this error isn't even in the code anymore. Img_assist and the drupalimage plugin have pretty much been completely rewritten, so hopefully you'll find that they work better.

mosestruong’s picture

I was able to get img_assist and TinyMCE to work in drupal 4.6 by updating the editor_plugin.js file in /modules/tinymce/tinymce/jscripts/tiny_mce/plugins/drupalimage

I've changed the line
template['file'] = 'index.php?q=img_assist/add&editor=tinymce'; // Relative to theme

to
var textarea = tinyMCE.getInstanceById(editor_id).formTargetElementId;
template['file'] = 'index.php?q=img_assist/add&editor=tinymce&textarea=' + textarea; // Relative to theme

hope this might help anyone who is still having problem.

Anonymous’s picture

Status: Fixed » Closed (fixed)