hello,

I installed a fresh Drupal 5.1 on a upgraded 4.7 database.

I installed and enabled the image, img_assist and tinymce modules.

Following the README i copied the "drupalimage" folder from "img_assist" to "tinymce/plugins"

On the configuration "Buttons" for tinyMCE I see the checkbox with "drupalimage" written twice but no button-image. I checked this option and saved.

Now, when editing content using plain textareas I have the img_assist button below that textarea and it works fine.

But when editing content using a tinyMCE editor I do not see the img_assist button in the tinymce's toolbar. Also, a image FilterTag inserted in textarea mode is not rendered as a visible image in the tinymce editor (I remember that it did in drupal 4.7).

What could be wrong?

thanks

Comments

jochenh’s picture

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

same issue here using 5.x.-1.4. i see that there is no image icon for the drupalimage plugin. maybe there is some kind of a path issue. the drupalimage plugin gets displayed without image, like this:

   drupalimage – drupalimage

the other ones look normal, like this:

 Only local images are allowed.Search/Replace
jochenh’s picture

sorry, keep using pre tags instead of code. so here again

drupalimage and how it's src is displayed on the tinyMCE plugins page

<label class="option"><input type="checkbox" name="buttons[drupalimage-drupalimage]" id="edit-buttons-drupalimage-drupalimage" value="1"  checked="checked"  class="form-checkbox" /> drupalimage &#8211; drupalimage</label>

and a normal button gets shown with image:

<label class="option"><input type="checkbox" name="buttons[searchreplace-search]" id="edit-buttons-searchreplace-search" value="1"   class="form-checkbox" /> <img src="/modules/_3rdparty/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/images/search.gif" title="search" style="border: 1px solid grey; vertical-align: middle;" /> &#8211; <a href="http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace" target="_blank">Search/Replace</a></label>
Jay Armstrong’s picture

Title: no button in TinyMCE editor and no image display in TinyMCE when using FilterTag » It's a convoluted setup anyway

Just to double-check, did you do the following?

3. Select the input formats inline images should be allowed for by
navigating to:

Administer > Site configuration > Input formats

To add inline images to the 'Filtered HTML' input format, click
the 'configure' link and check the Inline images box. Confirm
your changes by clicking the 'Save configuration' button.

4. Set permissions for using img_assist by going to:

Administer > User management > Access control

6. [OPTIONAL] If you use the TinyMCE WYSIWYG editor, install
the drupalimage plugin. To do this, move or copy the drupalimage
folder to your TinyMCE plugins directory. This location is
modules/tinymce/tinymce/jscripts/tiny_mce/plugins/.

Edit the plugin_reg.php file in the tinymce directory. Add
these lines (anywhere above the return statement):

$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]');

Next, go to Administer > Site configuration > TinyMCE and enable
the drupalimage plugin.

_________________________________________

Also, a image FilterTag inserted in textarea mode is not rendered as a visible image in the tinymce editor (I remember that it did in drupal 4.7).

I had the same issue until I finished setting up all the right options, at the moment I can't remember which one fixed that (working too late into the night) but it was a simple thing.

dfokkema’s picture

Hi there! I think this is a bug in drupal-image. I found http://drupal.org/node/63509 and comment #6 worked for me. I think this should be fixed, thanks!

zoo33’s picture

Title: It's a convoluted setup anyway » no button in TinyMCE editor and no image display in TinyMCE when using FilterTag
Status: Active » Closed (duplicate)

So, lets use 63509 instead.