Img Assist module doesn't work correctly with TinyMCE module...
| Project: | Image Assist |
| Version: | 5.x-1.x-dev |
| Component: | TinyMCE Plugin (drupalimage) |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I have the Img Assist module installed, and it works correctly. Today I installed the TinyMCE module, and now the Img Assist module doesn't work correctly.
Here is what happens. I click on the Img Assist button to add a new image. I choose an image to add. It takes me through the usual steps (position, title, description, thumbnail or original size, etc..), but then I click the button to insert the Img Assist filtered code, it doesn't insert the code nor does the Img Assist pop-up window close. Therefore, I am unable to add an image using Img Assist while using TinyMCE at the same time.
Does anyone else have this same problem? Is there a setting I could change to make it work? Is there any known work-around for this issue?

#1
1. Are you using the latest development snapshot?
2. Are you using the drupalimage plugin for TinyMCE (the button in TinyMCE's toolbar) or the button from Image Assist below the textarea?
#2
The problem comes from some code in tinymce.module (line 176 in version 5.x-1.9), which is making a call to the javascript method tinyMCE.getEditorId(). It seems that this part of the code has not been updated for changes in the tinymce plugin (3rd party, not the drupal module). There is already an issue related to this bug on the tinymce issue queue at http://drupal.org/node/191419
The drupalimage plugin for tinymce is also outdated and generates a javascript error in its first line of code (tinyMCE.importPluginLanguagePack() is not defined).
#3
#4
When I've installed the drupalimage plugin, the icon doesn't show up. Instead, I'm seeing the default TinyMCE icon, and the resulting screen is the default image url screen for tinymce. I've confirmed that I do not have the default image plugin checked in the profile configuration, and that the drupalimage checkbox is instead checked.
This is using TinyMCE module 5.x-1.9-1, the drupalimage plugin from Img Assist 5.x-1.5, and TinyMCE 2.1.3.
#5
A search in tiny_mce.js finds getEditorId(). Are you using tinymce version 2.1.3?
#6
I've also run through the install.txt file with Image Assist. It works on textareas without TinyMCE. However, I'm getting an error
tinyMCE.importPluginLanguagePack is not a function
[Break on this error] tinyMCE.importPluginLanguagePack('drupalimage', 'en');
I'm assuming this is why I get no icon in the TinyMCE toolbar.
FYI: I also assume that you can not use TinyMCE with Image Assist without using the plugin. I'm not the kind of guy that can fix this sort of thing -- does anyone have suggestions on a work around? Until this bug is fixed?
I would be happy to provide more info...what is needed?
#7
I just ran into this bug -- what kind of more info is needed? Is there a way to work around this?
#8
I am still not able to reproduce this bug. Once again, I have installed Drupal 5, Image, Image Assist, TinyMCE module, and the current TinyMCE 2.1.3 editor from scratch, followed all steps that are mentioned in both Image Assist's and TinyMCE's INSTALL.txts, went to node/add/story, and was able to use Image Assist's plugin for TinyMCE without any errors. Tested this in Internet Explorer 6, Firefox 2, Safari 3, and Opera 9.
Since TinyMCE's INSTALL.txt instructs users to place the tinymce module directory into
modules/, I even ensured that this bug does not occur if you place the TinyMCE into the modules directory of Drupal core.Guys, I really don't know what's happening on your sites. If anyone wants to supply me with login information to a site where this bug occurs, I'll try to debug this.
#9
hi sun
i am getting the same on my multisite - as soon as i insert the image it only inserts the inline span. i don't want to give the login details here (sites are live)
please email me at jordafire@mac.com for more details
#10
I got a similar problem on a page I unfortunately can't share the login with you either. TinyMCE Module 5.x-1.x-dev, TinyMCE 2.1.3 and Image Assist 5.x-1.x-dev are installed, and I'm actually able to insert images. However in Safari 3, I can't use the TinyMCE link button anymore as soon as DrupalImage is installed. sun, you wrote you tested in Safari 3. Did the "create link" button work for you while DrupalImage was enabled?
I took a screenshot of what shows up for me (btw. things work perfectly in FireFox)
http://img.skitch.com/20080205-ew3m4xbwb25tqjgwxs7k1necsa.jpg
Yet another question. Has anyone gotten the DrupalImage plugin to work with TinyMCE v3 ?
#11
I also have this issue, using the latest versions of image, image_assist, and tinyMCE (and tinyMCEv3) and i get a
tinyMCE.importPluginLanguagePack('drupalimage', 'en');
error when the page loads.
I also get no camera icon in the tinyMCE toolbar.
if i disable the rich text editor, i can successfully insert an image into the text area (it inserts all the html). then i can re-enable the rich text editor, the image shows correctly.
and since i left the default image button in the toolbar of tinyMCE, the user can then manipulate the image that was inserted.
seems like that works, but that is quite a bit of work-around for my end users to have to go through...
anyone else have any ideas?
#12
i just deleted the tinyMCE 3.0 out of the tinyMCE module folder and replaced it with the TinyMCE 2.1.3 stable download (http://tinymce.moxiecode.com/download.php)
i also replaced the drupalimage folder here: modules/tinymce/tinymce/jscripts/tiny_mce/plugins/
so it looks like it is a problem with tinyMCE 3.0 build that has just been released.
i still get some javascript errors in my image assist popup window, but the functionality seems to be working correctly.
tinymce has no properties
init()tiny_mce_popup.js (line 11)
[Break on this error] t.editor = tinymce.EditorManager.activeEditor;
and
t.dom has no properties
[Break on this error] t.dom = t.dom.doc = null; // Cleanup
i also have left the default TinyMCE image button in the toolbar, because otherwise there is no way to modify an image that you have already inserted without it (change the alt or align, etc) but when clicked it brings up a blank popup and doesn't do anything, so there is no way to edit images once inserted
#13
I have updated the project description with a compatibility note about (3rd-party) TinyMCE editor javascript version.
Feel free to re-open this issue if you think that this has nothing to do with using unsupported TinyMCE v3 (beta) instead of v2.
#14
Automatically closed -- issue fixed for two weeks with no activity.