Hello!

My problem is not having the image Assist Icon in the toolbar of TinyMCE.

I followed the complete install instruction and surely put drupalimage in tinymce/tinymce/jscripts/tiny_mce/plugins/
Although the correct "drupalimage" and little camera icon shows up in "Buttons and plugins" setting of TinyMCE settings page, the camera icon does not show up on the editor toolbar (yep, I enabled it ;-))

I am using tinymce 1.9. I tried this with Image Assist 1.x-dev and 1.4.
Any suggestions?

Best regards,
zokoloz

Comments

holydrupal’s picture

I have the same problem

sun’s picture

Title: no icon in TinyMCE toolbar (but surey correct plugin folder ;-)) » No icon in TinyMCE toolbar
Category: support » bug
koronet’s picture

I have the same problem. But I try to provide same additional information.

Every time I use tinymce on a textarea there is a warning in the Drupal log:

Page not Found

.../sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/drupalimage/editor_plugin.js

But the file exists and it's file permission is right (readable for the web server user).

If I point my browser to this URL, I get a Page not Found error. But it is very strange, because if I rename the JS file editor_plugin.js to anything else (e.g. ed.js), I can get the file through the browser.

I use Drupal 5.2 with

  • Image assist 5.x-1.x-dev
  • TinyMCE 5.x-1.9 (with tinymce 2.1.0)
zoo33’s picture

If I point my browser to this URL, I get a Page not Found error. But it is very strange, because if I rename the JS file editor_plugin.js to anything else (e.g. ed.js), I can get the file through the browser.

Wow, that's weird. Is this happening to everyone who's having this issue? Do the rest of you also see the Page Not Found errors?

anosworthy’s picture

I experience exactly the same issue as koronet.

anosworthy’s picture

Sorry. I seem to have fixed it. This is all I did.

- Loaded the URL of the .js file in my browser (e.g. http://localhost/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plu... ) -- this gave me the drupal 404 error
- Disabled Clean URLs
- Refreshed the .js page - still get 404
- Enabled Clean URLs again
- Refreshed, and the contents of the .js appeared, and the camera icon appeared.

Very quirky, no idea why it exhibited behavour, and disabling and reenabling clean URLs is a very weird fix. Perhaps dev could shed some light?

sun’s picture

Status: Active » Postponed (maintainer needs more info)

It gets even weirder now.
@koronet: Is anosworthy's workaround also working for you?

aaron’s picture

I have this identical issue. However, when I point to /sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/drupalimage/editor_plugin.js, that file displays properly. Looking at watchdog, I don't see any errors in there related to tinymce or drupalimage.

I've installed the drupalimage, by adding it to the proper plugin folder and adding the relevant php code. The icon with the camera shows up on the profile page. When I check it, it doesn't show up on the editor buttons. Instead, the default TinyMCE image icon is displayed, with the default TinyMCE image plugin behavior (asking for image URL), even though that Image button is not enabled on the profile. There's only one profile in use.

Using Image Assist 5.x-1.5, TinyMCE module 5.x-1.9-1, and TinyMCE 2.3.1.

aaron’s picture

Priority: Normal » Critical

Additionally, when disabling the drupalimage button from the profile, the standard Image Assist icon still disappears from below the textarea when TinyMCE is enabled for a textarea.

aaron’s picture

That seems to be because on the page:

img_assist = document.getElementById('img_assist-link-'+ id);
 if (tinyMCE.getEditorId(element.id) == null) {
  tinyMCE.addMCEControl(element, element.id);
  element.togg = 'on';
  link.innerHTML = 'disable rich-text';
  link.href = "javascript:mceToggle('" +id+ "', '" +linkid+ "');";
  if (img_assist)
    img_assist.innerHTML = '';
  link.blur();
 }

The img_assist.innerHTML is blanked out regardless of the status of drupalimage. Is this behavior intended?

aaron’s picture

As a reference, further in the page, you see:

 img_assist = document.getElementById('img_assist-link-edit-body');
 if (img_assist) {
   var img_assist_default_link = img_assist.innerHTML;
   if ('no' == 'yes') {
     img_assist.innerHTML = tinyMCE.getEditorId('edit-body') == null ? '' : img_assist_default_link;
   }

That's written by the tinymce module, and I assume the 'no' == 'yes' is created by the status of the drupalimage. However, that's overridden by the code in the comment above.

aaron’s picture

Status: Postponed (maintainer needs more info) » Active
sun’s picture

@all: Do you still encounter this bug if you set the "Textarea image link" option in Image Assist's Access settings to "Do not show a link"?

yuit’s picture

Using Drupal 5.6, Tinymce 5.x-1.9 (with tinymce 2.1.2), img_assist 5.x-1.x-dev (2008-Jan-10), private file system, clean urls, it seems to work fine for me (although I only made a quick test). I do not experience the bug reported here.

Server is Windows 2000, php 5.2.5, Apache 2.0.61

Anonymous’s picture

Version: 5.x-1.x-dev » 5.x-1.5

I had a similar problem but it was due to me putting the folder in the wrong plugins directory under tinymce. After correcting that, the icon showed up for me.

flerchjj’s picture

I have this identical issue. However, when I point to /drupal5/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/drupalimage/editor_plugin.js, that file displays properly.

-same here

@all: Do you still encounter this bug if you set the "Textarea image link" option in Image Assist's Access settings to "Do not show a link"?

-Yes

sun’s picture

Status: Active » Postponed (maintainer needs more info)

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.

deejross’s picture

@Sun, I am having the same problem. I will give you access to my site in order to debug it. Can you provide me with an email address to send the info to?

Ross

deejross’s picture

As a side note, I tried disabling caching and css aggregation to see if that would fix anything, but no luck.

Ross

deejross’s picture

I kind of gave up on trying to make it work at tried using IMCE. Since it had the SAME problem, I figured it was something with TinyMCE itself. Since this is a new site, I downloaded the new version (3.0), which requires some code changed to make stuff work. So by simply replacing with 2.1.3 stable (which is on the same download page), IMCE started working. I can only assume the same is true for img_assist. Hopefully someone can give it a try and see if it works.

Ross

dchakrab’s picture

Same problem with TinyMCE 3...followed all instructions, have done this a thousand times in the past, but with TinyMCE 3 the Drupal Image button doesn't appear in the rich text editor (though it shows up in the plugins / buttons as an available plugin, and is enabled).

Will try downgrading to a previous version of Tiny; I'm assuming the new version of Tiny is breaking stuff. Buttons like "flash" and "zoom" don't work either, leading me to believe that the correct code for updated the array in the plugins registry file has changed, breaking many of the "advanced" buttons in the TinyMCE module for Drupal.

The problem may be there and not in Image Assist...or Image Assist might need an update only after TinyMCE.module is updated.

Dave.

sun’s picture

Priority: Critical » Normal

Yes, TinyMCE 3 is considered beta, but not stable, thus not yet supported by Image Assist. As mentioned before, I am still not able to reproduce this bug with TinyMCE 2.1.3 and the current official releases of Image and Image Assist modules. Please elaborate.

sun’s picture

Status: Postponed (maintainer needs more info) » Fixed

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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

citizenpaul’s picture

Status: Closed (fixed) » Active

I hope you don't mind me re-opening this issue, but I have something to contribute, having had the same problem as koronet. I'm not sure if this has since been fixed, but I have found this issue is dependent on the browser being used.

Using FF 2.0.0.14 I get the 404 error when attempting to access

..modules/tinymce/tinymce/jscripts/tiny_mce/plugins/drupalimage/editor_plugin.js

Furthermore, the 'drupalimage' camera icon does not display in the TinyMCE toolbar, despite being visible on the TinyMCE configuration page, as above.

BUT, using Safari 3.1.1, the above URL is found, AND the camera icon displays correctly on the TinyMCE toolbar when creating/editing content.

(I'm using Drupal 5.7, Image Assist 5.x-1.6, Tiny MCE module 5.x-1.9 with version 2.1.3 of TinyMCE on a local install. Strangely, I've used the above versions of these modules on a previous site without any problem)

Any ideas?
Thanks
Paul

citizenpaul’s picture

Further to this, I just tried uninstalling and reinstalling FF as a last resort, and now the icon is displaying as expected on the toolbar.

Additionally, the URL to the js file now works as well:
.../modules/tinymce/tinymce/jscripts/tiny_mce/plugins/drupalimage/editor_plugin.js

Perhaps this will be of use to others with the same issue?
Paul

rcaracaus’s picture

I am using version TinyMCE 2.1.3 and image assist 5.x-1.6

If I disable TINYMCE then image assist works. When I have it enabled the image assist button will not appear in TinyMCE toolbar. I have been working on this for hours. Please help. I am willing to exchange help/answers in the future with anyone who wants to help with this.

email me at rcaracaus@hotmail.com

sun’s picture

@rcaracaus: Did you completely follow the installation instructions in INSTALL.txt and enable the drupalimage plugin in TinyMCE's profile?

dongen1289’s picture

Having exact issue with drupal 6.2 / tinymce 3_0_8 (no other 3 available) / tinymce drupal module 6.x-1.1-dev / image assist 6.x-1.0-beta1

image assist itself is working fine, filter set up, permissions correct, editor_plugin.js showing fine
camera icon IS showing in available icons in tinymce config, and enabled, but NOT showing in the toolbar.

tried on many many sites, clean installs, over and over again, it is NOT working, also with v5 and earlier corresponding versions.

HELP!
thnx

markwa’s picture

Version: 5.x-1.5 » 6.x-1.0-beta1

I'm also having _exactly_ the same problem with _exactly_ the same set of modules:
drupal 6.2 / tinymce 3_0_8 (no other 3 available) / tinymce drupal module 6.x-1.1-dev / image assist 6.x-1.0-beta1

The drupleimage Camera icon is not showing up in my user's TinyMCE editor.

I'd appreciate your review of the installation steps I took, as I'm apparently skipping at least one important step.

I'm running Drupal version 6.2 on a www.opensourcehost.com server, which is one of the recommended Drupal hosts.

The relevant modules that I've installed and enabled (under Administer >> Site Building >> Modules) are:
* Image 6.x-1.0-alpha1
* Image Assist 6.x-1.0-beta1
* Image Attach 6.x.1.0-alpha1 (I'm not sure whether this is needed)
* IMCE 6.x-1.0  (I'm not sure whether this is needed)
* TinyMCE 6.x-1.1-dev
Also:
* TinyMCE 3.0.8 Javascript from http://tinymce.moxiecode.com/download.php

The relevant directory structure and files are:
* public_html
  * sites
    * all
      * modules
        * image
        * imce
        * img_assist
        * tinymce
  ==>     - plugin_reg.php (see comment below)
          * plugins
          * po
          * tinymce  (TinyMCE 3.0.8 Javascript from http://tinymce.moxiecode.com/download.php)
            * examples
            * jscripts
              * tiny_mce
                * langs
                * plugins 
                  * advhr
                  * ...
                  * directionality
          ==>       * drupalimage (see comment below)
                    * images
                    * langs
                  * emotions
                  * ...
                * themes
                * utils

Administer >> User Management >> Permissions
* image module -- all options enabled 
  (create images, edit images, edit own images, view original images)
* img_assist module -- all options enabled 
  (access advanced options, access all images, access img_assist, use original size)
* tinymce module -- all options enabled 
  (access tinymce, administer tinymce)

Administer » Site configuration » Input formats / Configure
  Allowed HTML tags: ... <span> <img>

\public_html\sites\all\modules\tinymce\plugin_reg.php
   Per TinyMCE's install.txt, I added the code so that the bottom of this file is:
   
  $plugins['drupalimage'] = array();
  $plugins['drupalimage']['theme_advanced_buttons1'] = array('drupalimage');
  $plugins['drupalimage']['extended_valid_elements'] 
     = array('img[class|src|border=0|alt|title|width|height|align|name]');
  return $plugins;
  }

\public_html\sites\all\modules\tinymce\tinymce\jscripts\tiny_mce\plugins\drupalimage
  Per the Image Assist Install.txt instructions, I copied the drupalimage
  directory from Image Assist's setup files to this deep directory location.

Administer » Site configuration >> TinyMCE settings
 Create a new TinyMCE profile with these settings:
 * Basic setup
   * Roles allowed to use thie profile:  authenticated user (and others)
   * Default State: enabled
 * Visibility  (default)
   * Show on only the listed pages
     node/*
     user/*
     comment/*
   * Buttons and plugins
     * lots of them like Bold and Italic
     * DrupalImage (the Camera icon is displayed)
   * Editor Appearnce: nothing unusual
   * Cleanup and output
     * Verify HTML: false
     * Apply source formatting: true

Image Attach module installation instructions
  1.) Enable the Image Attach module at:
      Administer > Site building > Modules
  2.) Configure Image attach at: 
      Administer > Site configuration > Image attach
  3.) For each content type that you want to be able to attach images to, go to:
      Administer > Content management > Content types > Edit
      and review the Image attach settings for that content type.

     I did the above step (3) for all content types:
     * blog entry
     * book page
     * forum topic
     * page
     * story

     The Attach Images options I used were:
     * Attach Images: enabled
     * Teaser image size: thumbnail
     * Teaser image weight: 0
     * Full node image size: original
     * Full node image weight: 0

Do you see anything missing in the above configuration that explains why the drupalimage camera icon doesn't show up in the user's TinyMCE toolbar?

Thanks!
-- Mark

grn’s picture

Yo. I have the exact same problem.

Drupal 6.2 on localhost, apache2, php5.

I have attached screenshots of the problem.

noicon.jpg -> the editor toolbar not showing the icon
tinymceprofile.jpg -> showing the camera icon in the tinymce profile settings

*EDIT* Doesn't the file attachment option work????

**EDIT** The problem is being worked on (http://drupal.org/node/245799)... maybe ?? ;-) I will use TinyMCE 2.1.3 stable (http://tinymce.moxiecode.com/download.php) until it's fixed.. go ninja power :-)

zoo33’s picture

Version: 6.x-1.0-beta1 » 5.x-1.x-dev

OK, so I suggest we separate this issue from stuff related to TinyMCE 3 and Drupal 6. Please use this issue instead: #245799: Update TinyMCE integration to 3.x

rcaracaus, have you solved your problem?

sun’s picture

Status: Active » Fixed

Without further information we cannot do anything about this issue. Reverting status to fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

ralphb’s picture

Status: Closed (fixed) » Active

This is still an open issue.

I'm using Drupal 5.11 + img_assist module 5.x-1.6 + TinyMCE module 5.x-1.9 + TinyMCE source 2.1.3.

The settings page for TinyMCE shows the drupalimage plugin, but it's not showing up in the button toolbar. The only other strange thing I notice is that for the broken TinyMCE installation, img_assist displays its "click here to add images" icon below the textarea, whereas in my previous, working installation of TinyMCE the only thing showing below the textarea is the "disable rich-text" link.

I've tried TinyMCE source 3.0.2 as well, but with identical results.

If you require additional information, please kindly indicate what kind of information would be helpful to you.

sun’s picture

Status: Active » Closed (won't fix)

The TinyMCE module for Drupal is a dead end, discontinued, and soon no longer supported by Image Assist.

Image Assist 2.x integrates seamlessly with Wysiwyg API, which admittedly still needs plenty of work, but if you want to see it to happen faster, you may consider to contribute, please.

ralphb’s picture

Status: Closed (won't fix) » Active

I understand your reluctance to fix "a dead end". The only problem is that absolutely critical security updates to Drupal 5 itself broke the insertion of images into textareas.

When I look at my current options I see that img_assist 5.x-2.x is a development snapshot not recommended for productive use. Hence I -- in fact, ALL productive Drupal installations -- are stuck with img_assist 5.x-1.x or 6.x-1.x, which rely on the TinyMCE module.

Please note that not fixing this issue means that one cannot enter content with images! This is a rather severe limitation for which I do not see any workarounds. It's fine to deprecate img_assist 1.x once 2.x has matured, but for the time being I'd strongly encourage you to fix this issue nonetheless.

I thus took the liberty of re-opening this ticket for your consideration. (And yes, I'd be happy to contribute, but I do not have the required knowledge to go bug hunting myself.)

brollo’s picture

Same problems here, Drupal 6, TinyMCE 3 and Img assist. Icon showing in TinyMCE settings but not on the Rich text editor.

Did you manage to fix the problem? Please let me know how

Thanks

sun’s picture

@brollo: It has been stated many times in this issue that Image Assist is incompatible to TinyMCE 3. If you want support for TinyMCE 3, consider contributing to http://drupal.org/project/wysiwyg

@ralphb: I'll test latest Drupal 5 core, TinyMCE module 1.9, TinyMCE 2, and Image Assist 1.6 again now.

sun’s picture

Status: Active » Fixed

And yes, I am still unable to replicate any errors.

Tested all current versions, i.e. Drupal core 5.11, TinyMCE module 1.9, TinyMCE 2, and Image Assist 1.6. Followed Image Assist's installation instructions in INSTALL.txt. Plugin appears in TinyMCE's profile configuration, appears in the editor, I'm able to insert and edit inserted images via the drupalimage plugin.

Check your theme override functions, or whatever you have done to make it incompatible, please.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.