Closed (won't fix)
Project:
Image Assist
Version:
6.x-2.0-alpha4
Component:
Wysiwyg API Plugin
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2006 at 23:02 UTC
Updated:
24 Nov 2010 at 16:28 UTC
Img_assist seems not to work with my tinymce. When I say "insert" after having chosen an image nothing happens.
The image assist icon in the tinymce menu links to q=img_assist/load/tinymce. But this link results in an error.
Are these two errors connected? Did I miss something in the installation steps?
Thanks.
Comments
Comment #1
ssteinem commenteda few more details, if needed:
Drupal version 4.7.3, modules are at /sites/default/modules/...,
the java console shows lots of "unknown properties ... filter, declaration ignored" and the following exception:
Fehler: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http:///cgi-bin/drupal1/sites/default/modules/img_assist/img_assist_textarea.js :: insertToEditor :: line 88" data: no]
Comment #2
Darrell commentedShouldn't image_assist be in
/drupal1/modules/image_assist
not
/drupal1/sites/default/modules/image_assist
??
Comment #3
ssteinem commentedI moved the module to /modules. The error stays the same:
Fehler: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://myhomepage/cgi-bin/drupal1/modules/img_assist/img_assist_textarea.js :: insertToEditor :: line 88" data: no]
There is one success story: the icon button within tinymce works now.
The error happens when inserting an image after clicking the button below the editor frame ("click here to add image", the icon with the greenish plus sign)
Comment #4
twohills commentedDownloaded today: image, img_assist, tinymce all brand-new 4.7 versions.
Using the img_assist link at the bottom of the textbox, inserting an image has no effect on the text in the textarea and the img_assist popup reverts to an almost empty screen with a "start over " button. In IE there is an "error on page" message in the pop-up. In Firefox same problem but no message in the popup.
Img_assist works fine in a textarea with no tinymce, so it is a compatibility issue between the two.
I am also getting the problem where the "rich text disable" link is lost if the img_assist link is present.
So then i tried the img_assist plugin for tinymce. Worked out the misleading text in tinymce install notes, copied the drupalimage plugin across to tinymce, edited the plugin_reg.php, created a profile, turned on the drupalimage button in the profile and ... nothing. No drupalimage on the tinymce toolbar. plugin_reg.php entry is OK because drupalimage is showing up on the edit profile buttons screen, just not in the toolbar on the textarea. drupalbreak plugin has the same behaviour which suggests it is a generic plugin problem.
tried removing tinymce compression plugin - no change.
Comment #5
sillygwailoReverting the titie.
twohills: I'm guessing you don't see a camera button in the TinyMCE settings under "Buttons and plugins", but just the text "drupalimage" is that correct?
Comment #6
parkview commentedI have the same error, namely:
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http:///modules/img_assist/img_assist_textarea.js :: insertToEditor :: line 88" data: no]
Looking at the change log, I noted that the most recent entry is dated: May 4, 2005 so I downloaded a fresh copy from the module download page: http://drupal.org/project/img_assist Checking the CHANGE.txt file, it too has the same date error, so I preceded to download a fresh copy from the Drupal 4-7 cvs repository. Same dates in the CHANGE.txt file. Ok, so either I have a good copy, but someone hasn't updated the change log for a while (or used the wrong year). I have tried unselecting the img_assist module, deleting the module, and untaring the cvs copy, same problems. I havn't tried inserting an image via tinymce yet, as I was hoping not to have to reply on the plug in.
Anyone have any ideas on whats going on?
Comment #7
parkview commentedOk, I managed to insert images via the Tinymce interface. I sat down and worked through the steps in the INSTALL.txt file. It all worked straight off. Nice! DOn't know why I am getting the other errors though!
Comment #8
darren ohComment #9
sunSupport for 4.7 is discontinued.
If one of you guys will find a fix for this bug in 4.7 and will provide a patch, I'll be happy to commit it. Therefore, feel free to re-open this issue if you can come up with something.
Comment #10
JonMac commentedNot sure if I'm supposed to post to this, but I had the same problem with Image Assist leaving a blank page once I clicked "insert". I managed to fix it, and here's how.
To install Image Assist with WYSIWYG module, you need to have the 3.xdev version of Image Assist AND the 2.xdev version of Inline API module. Knowing to get the dev version of BOTH these modules is what was hanging me up. This was documented in the Image Assist module page via this Drupal documentation page for WYSIWYG compatibility, so I guess I just didn't read the instructions right, but hell, for something as *basic* as an inline image uploader, I figured if I got the puzzle pieces in the right place it would work. Alas, no (to be fair, this functionality is probably still in development since it's "dev", but it wouldn't have hurt for Image Assist to explain that on its front page).
So once I had the 3.x and 2.x dev versions for ImageAssist and Inline API, I had to grant myself the permissions to use these modules in User Management -> Permissions. Then I changed the WYSIWYG settings to include "Image Assist" in the Buttons & Plugins area (Go to WYSIWYG settings, click "edit" for your input filter profile (e.g. Filtered HTML), go to Buttons & Plugins and click the checkbox "Image Assist").
You need to have TinyMCE for Image Assist to work, I think, so make this your editor through the WYSIWYG settings. I had some trouble getting TinyMCE to work in WYSIWYG -- my error was "could not detect version". If you get this, change the module/wysiwyg/editors/tinymce.inc file to look for version in the first 200 characters instead of 100 characters -- this fire was put out thanks to this Drupal issue page.
Of course, if you are using Filtered HTML input filter, you have to add and to the allowed html tags (like this tutorial above explains).
That was it! The add image button was added to the text editor, and I was successfully able to add an image by uploading it from my computer. It also had all the features that you'd expect from an inline image module (scale, alignment within text, title/description, etc.)
Note that the icon or text link that Image Assist automatically places below the text area will still not work as intended -- I tried it and it still led to an empty screen once I clicked "insert". So just turn that link off in the Image Assist settings (change from "Icon" to "No link") and stick with the icon that is provided through the WYSIWYG interface.
Hopefully I included everything necessary here. It took a while for me to make it work, which is why I'm sharing it here.