I'm not sure if this is a problem with one or more modules, my configuration, or left over configurations from playing with IMCE and WYSIWYG.

I've got TinyMCE installed with WYSIWYG and mostly everything is working fine. But there are still two problems I'm having trouble with and can't seem to get past.

First, I'm trying to get Image Assist to work within the TinyMCE 2.1.3 editor. Most of the documentation I've read with the module appears to be left over from the TinyMCE module days. I get the impression that it is supposed to "just work", but it isn't. When I go to configure the buttons and plugins for TinyMCE within the WYSIWYG config, nothing shows up to enable Image Assist. Is there anything else I need to set up to get these modules to recognize each other?

Second, when in rich-text mode, the cursor is center-aligned in the text window. I've searched everywhere I can think of and can't find anywhere that describes how to get the cursor to align left in the editing window. Is this a current limitation of WYSIWYG or am I missing a configuration?

Thanks for any help. I'm not sure where else to go to get this figured out.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sun’s picture

Status: Active » Fixed

1) If Image Assist does not show up on the editor profile configuration form, you are most probably using Image Assist 1.x, while both project pages clearly state that you need to use 2.x.

2) If the cursor is initially aligned centered, this means that your theme's style.css defines text-align: center; for the body element. Two options here: Either fix your theme's stylesheet, by adding a rule that forces text-align: left; for TinyMCE's IFRAME body element - or - configure TinyMCE to not use your theme's stylesheet (see the wysiwyg profile form description).

ceaker’s picture

Thanks. Bad assumption on my part. I simply installed the recommended version without connecting the dots. Changing the WYSIWYG config to use the default CSS rather than the theme CSS fixed the cursor alignment problem.

Thanks for all the work you've put into these modules.

Status: Fixed » Closed (fixed)

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

mariagwyn’s picture

Status: Closed (fixed) » Active

I am using Wysiwyg 6.x-1.x, Image Assist 6.x-3.x (but had the same problem with 2.x) and TinyMCE 2.1.3. No matter what I do, I cannot get the image-assist plugin to appear in my Wysiwyg Profile editor for TinyMCE.

I can only insert an image using image assist using the image assist button (outside of the editor), with the editor turned off. If I insert an image using img assist with rich text enabled, nothing inserts.

I have also disabled the image-assist button in admin->img_assist, and reenabled it.

I have also created a plain filter with only inline images enabled. Still no luck.

Is there a plugin I need to put in tinymce (like previous versions - drupalimage)? I must be missing something.

Thanks,
Maria

Ether’s picture

The same here. I could enable Image Assist only using drupalimage plugin for TinyMCE and editing tinymce.inc to registry it. It works, but I do not have an icon on the button and I should remember do not overwrite tinymce.inc file when upgrading WYSIWYG API.
WYSISYG API - last dev version
Drupal core 6.9
ImageAssist 2, last dev version.

sun’s picture

Quoting from http://drupal.org/project/wysiwyg :

Unlike other integration modules for Drupal, it is not recommended to edit or alter any files of this module.

Ether’s picture

I really appreciate work, what was done creating WYSIWYG API, but , unfortunately, even strictly following instructions I was unable to get Image Assist functionality in WYSIWYG API/TinyMCE. Only using plugin I almost got what I need. BTW, teaser break and Media plugin functionality can be obtained only after adding plugins and/or altering tinymce.inc

sun’s picture

Status: Active » Postponed (maintainer needs more info)

ceaker mentioned "TinyMCE 2.1.3" -- you need TinyMCE 3 to use Image Assist now. So please update your editor. After doing so, the Image Assist button should immediately show up in your wysiwyg profile; enable it, and it should show up on the editor.

Ether’s picture

I'm using TinyMCE 3.2.1.1
Image Assist is in profile and enabled, but it does not shown up on the editor.
Is somebody had this problem and solved it - could you share the solution ? Thanks.

mariagwyn’s picture

I am not sure I can help you, other than to say that this did work for me immediately upon upgrading to TinyMCE 3. No icons appeared in the wysiwyg profile page, but the image assist camera link was present, and once checked the little camera appeared in the editor. In addition, it actually WORKED, which I am very happy about. Thanks for the news to upgrade to 3. I thought we still had to use 2.1.

Maria

Ether’s picture

yea...
I had to completely remove WYSISYG and Image Assist, delete everything, reinstall them and....
miracle, it works. All versions - recommended, no dev. But I had to manually add Media plugin and Drupal teaser break. Seems to me, as documentation required do not alter any file, developers can add those 6 lines in tinymce.inc file.

sun’s picture

Status: Postponed (maintainer needs more info) » Fixed

Well, that's like how it should work. I'm sorry that you were faced with this strange bug.

jaskho’s picture

I'm having the same issue as Ether - Image Assist option shows up on profile page, but not in editor. I uninstalled/deleted/reinstalled/reconfigured, but still no button in editor. The img_assist button does show up below the editor, and it works if I "disable rich-text".

I've tried every combination of enabling/disabling the tinymce image and advanced image modules.

Any help greatly appreciated - thanks for great work!

Thanks

myDRU’s picture

Did you manage to get this version working: D6 + wysiwyg 6.x-1.x-dev + img assist 2.x-dev + tinymce 3.x?
Or was it D6 + wysiwyg 6.x-0.x + img assist 2.x-dev + tinymce 3.x that you managed to get working?

jaskho’s picture

Status: Fixed » Active

Re-set to active as posted fix did not work for me. I have uninstalled, deleted module files and db entries, and re-installed using the correct versions of image_assist, WYSIWIG and TinyMCE, following all posted instructions, and still can not get the image_assist button to display in the editor toolbar.

myDRU’s picture

On my configuration the camera icon does become visible either.

To be precise, I upgraded my D6.9 from
Image Assist 6.x-2.x-dev (2008-Nov-04) +
Wysiwyg API 6.x-1.x-dev (2008-Dec-09) including TinyMce 2.1.3 (2007-11-27)
towards
Image Assist 6.x-2.0-alpha2 (2009-Jan-18)
Wysiwyg API 6.x-1.x-dev (2009-Feb-06)

I also physically removed the old module folders entirely, then put the new modules there, ran the upgrade.php, but the camera icon was not visible. Next, I uninstalled and then reinstalled Wysiwyg API via admin/build/modules/uninstall, recreated new wyiwyg profiles,etc. But still the camera icon is not there. What can I do more?

I noticed that running upgrade.php did not cause any DB update, is this correct?

P.s. I did not dare uninstall & reinstall the img_assist, because I'm not sure of the effect, will I not lose the image albums if I do?

myDRU’s picture

On my configuration the camera icon does become visible either.

To be precise, I upgraded my D6.9 from
Image Assist 6.x-2.x-dev (2008-Nov-04) +
Wysiwyg API 6.x-1.x-dev (2008-Dec-09) including TinyMce 2.1.3 (2007-11-27)
towards
Image Assist 6.x-2.0-alpha2 (2009-Jan-18)
Wysiwyg API 6.x-1.x-dev (2009-Feb-06)

I also physically removed the old module folders entirely, then put the new modules there, ran the upgrade.php, but the camera icon was not visible. Next, I uninstalled and then reinstalled Wysiwyg API via admin/build/modules/uninstall, recreated new wyiwyg profiles,etc. But still the camera icon is not there. What can I do more?

I noticed that running upgrade.php did not cause any DB update, is this correct?

P.s. I did not dare uninstall & reinstall the img_assist, because I'm not sure of the effect, will I not lose the image albums if I do?

jaskho’s picture

Follow-up...

I have no idea why, but I now have the camera icon and the img_assist token replaced with the image in the TinyMCE editor.

Here's what I did just before this started working:

1. Enabled the img_assist plugin for all WYSIWIG API profiles/input formats (even though I'm using the TinyMCE format)

2. Set (enabled) permissions for 'authenticated users' for all image-related tasks (I was flailing at this point :-) )

Refreshing my test node to see if either of the above had made a difference, I started getting a js error ('tinyMCE is undefined’) and a blank page.

3. Cleared permissions set in (2.) above. Still getting error at this point, so I assume the permissions were irrelevant to all this, but thought I better document everything just in case.

4. I found and implemented the following hack (from http://www.webopius.com/content/196/fix-for-tinymce-is-undefined-error-i...):

When running Img_assist, wysiwyg editor and TinyMCE, here’s the fix:

In editor_plugin.js (/site/all/modules/img_assist/drupalimage)

At approx line 6, replace this line:

tinymce.PluginManager.requireLangPack('img_assist');

With this:

// FIX TinyMCE problem...
tinyMCE.addI18n('en.img_assist', {desc : 'Insert or update an embedded image.'});
// ...END

Suddenly, all working. No idea why, but happy just the same.

myDRU’s picture

@Chris. Nice job, this must help people like Sun to find a fix. Could you list which versions you are using exactly (Drupal 6.x version, img assist version, tiny mce version and wysiwyg api version)? I hope that soon we can have a released img_assist and wysiwyg api that works and installs OK with tinymce 3.x. This is really a must still lacking in D6 and I also notice that most books skip these modules at the moment, I guess because they are not yet ready.

wolv3rin3’s picture

Title: Image Assist with WYSIWYG API » Errors Caused by Devel Module 6.x-1.14
Version: 6.x-0.5 » 6.x-2.x-dev

For quick fix, try disabling the Theme Developer module if applicable. Both the break and image assist buttons appeared instantly. And, coincidentally, it also fixed a Firefox js hide/reveal field group error and css column layout issues.

sun’s picture

Title: Errors Caused by Devel Module 6.x-1.14 » Editor not loaded if Theme Developer module is enabled
myDRU’s picture

No, cannot be, I do not think the title "Editor not loaded if Theme Developer module is enabled " is appropriate. I do not have the Theme Developer module installed, and in my config the camera icon did not appear either. At least not, using the versions as I described above.

sun’s picture

Title: Editor not loaded if Theme Developer module is enabled » Image Assist with Wysiwyg API
Status: Active » Postponed (maintainer needs more info)

Reverting title.

I'm afraid that some of you might be facing different issues than others in this issue, which makes it very hard to keep track of.

I have committed some other, potentially related JavaScript fixes in the past days, so you should definitely update BOTH modules to their latest development snapshots.

If that still does not fix your issue, please have a look at these:

#370277: Tinymce not working on Chrome?
#352938: TinyMCE 3: IE6: Memory leak with Forecolor button
#359626: External/Drupal plugins not loaded for second associated editor profile

myDRU’s picture

@Sun:

I will put a replica of my website on an identical test hosting, and play it on the rough side until I find what's going on. Give me a couple of days though. Before I start, I'd like to know:

Is Image Assist 6.x-2.0-alpha2 (2009-Jan-18) + Wysiwyg API 6.x-1.x-dev (2009-Feb-06) an okay combination, or is there a reason why I must go for Wysiwyg API 6.x-1.0 (I do already have Wysiwyg API 6.x-1.x, so Wysiwyg API 6.x-1.0 migh be a troublesome downgrade).

sun’s picture

@myDRU: You should update to Wysiwyg 6.x-1.x-dev and Image Assist 6.x-2.x-dev in this case.

Another possible combination would be Wysiwyg 6.x-2.x-dev and Image Assist 6.x-3.x-dev (as outlined in the handbook page), but that is using some different integration code between both modules.

myDRU’s picture

@Sun: I'm willing to test Wysiwyg 6.x-1.x-dev and Image Assist 6.x-2.x-dev, but do not see the point of the further life of the Assist 6.x-2.x-dev branch. I'd assume that you work towards a matching and released Wysiwyg 6.x-1.x and Assist 6.x-2.x which has no BLOCKING issues. 6.x-2.0-alpha2 is the perfect preparation for this target. All further fixing happens on later branches. 6.x-2.0-alpha2 takes only the blocking issues (the ones like: the whole module does not work ). Otherwise, there is no way to get ever to this stable Wysiwyg 6.x-1.x and Assist 6.x-2.x combination, which to my opinion is extremely important to reach the large Drupal public. Continuously backporting (I saw "Follow-up: Synced 2.x with 3.x where possible." in Assist 6.x-2.x-dev) is not a good baselining strategy.

sun’s picture

Wysiwyg API 1.0 was released today. It contains the same JavaScript fixes for IE/Chrome as well as Image Assist like 2.x.

As mentioned before, 2.x uses a different, completely overhauled approach for integrating Drupal modules into editors. While 1.x should work for most users, the future is 2.x. But 2.x still requires very much work with each and everything. If you want to support the development process, you will use 2.x and ensure that you are updating relevant modules (like Image Assist 3.x) periodically.

henningsprang’s picture

I also trued this with the latest version of image assist (6.x-2.0-alpha2) and Wysiwyg 6.x-2.x-dev, but I could not see any button for inserting drupal-managed images into a page.

This is crucial for me to get drupal working for a non-technical friend's website, so I'd be very interested to learn what I could do to debug or fix this.

BTW I treid with TinyMCE as for now and gave up when I found the for me a bit confusing information in this thread here.

If there is another editor that is more likely to work here, I'll hapily try it!

corbacho’s picture

image assist (6.x-2.x-dev) and Wysiwyg 6.x-2.x-dev and Tiny 3.2.1.1

And tested also in image assist 6.x-3.x-dev
I only can get the button displayed if I activate the image assist plugin in both "filtered" and "full html".

Also, I followed the README,
Configure an input format and enable the filter 'Inline images' by visiting:
Administer >> Site configuration >> Input formats

How I can disable this button for Anonymous users?

jaskho’s picture

Probably too late to be of any use, but here's the version info:
drupal: 6.9
img_assist: 6.x-2.0-alpha2
WYSIWYG API: 6.x-0.5
TinyMCE: 3.2.1.1

progesterone’s picture

corbacho,

Thanks a lot for your tip to make button displayed by activating plugin in both "filtered" and "full html".

To disable image assist button for anonymous users, I think you can create new input format (e.g. "Anonymous HTML") in Site Configuration >> Filters and disable I.A button in new created input format and allow anonymous user to access that input format.

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

This issue was mentioned in my comment http://drupal.org/node/349568#comment-1248681

Sorry, marking as won't fix, because this issue clearly has no atomic intent.

myDRU’s picture

Title: Image Assist with Wysiwyg API » Camera icon only visible if image assist plugin activated in 'filtered' and 'full html' input formats
Status: Closed (won't fix) » Active

I confirm Corbacho's findings as well: I only can get the camera button displayed if I activate the image assist plugin in both "filtered" and "full html". Conclusion: this issue does have 1 atomic intent. As many people (like me) do not work with the standard input format, it is not that exceptional to not having activated the image assist button in the "filtered" and "full html" input format...

Hope you do not mind that I changed the title of the thread.

Version info:
- D6.9
- img assist 6.x-2.x-dev (2009-Feb-14)
- Wysiwyg API 6.x-1.0 (with TinyMce 3.2.1.1 embedded)
- image 6.x-1.0 alpha4

corbacho’s picture

Hi, I wanted to confirm with last snapshots, (exactly same config that MyDRU.)

I have to enable IA in both Filtered and Full HTML to achieved IA button displayed. So I have created a new Input "anony HTML", where I DON'T mark the plugin, as progesterone adviced me, but anyway, the button is displayed!! (and I think take the CSS from other Input. Not confirmed)

It's a little anoying to have the button there for the role "anonymous" ( Even thought when is clicked doesn't show images or let upload, only a empty window)

Thanks for this module anyway, these are minor things.

sun’s picture

Status: Active » Closed (duplicate)

If that is the main topic of this issue, then this issue is a duplicate of #359626: External/Drupal plugins not loaded for second associated editor profile (which I already referred to in #23) Its title may not be as obvious as the corrected title of this issue now, but that is the proper technical summary (i.e. it does not matter whether the formats are "Filtered HTML" or "Full HTML", and it is not limited to the Image Assist plugin).

myDRU’s picture

http://drupal.org/node/359626 looks indeed like the same problem.
The title "Camera icon only visible if image assist plugin activated in 'filtered' and 'full html' input formats" is indeed not fully adequate. But... agree that this error makes many people get stuck. It is very important to work away such issues before adding new functionality.

luvcatzzz’s picture

i've got another issue when trying to upgrade to latest wysiwyg module, that the IA icon does not showed up on the live site, then i try to copy the all drupal directory + all the drupal related databases.

I installed in my local laptop, and you know it is working. So perhaps this is related to the server configuration. so i just make all thing the same in the server configuration, but still no luck in the live site.

I try again to do regression in live site using old sysiwyg module. Now my old configuration also not working.

I'm using:

img_assist-6.x-2.0-alpha3
wysiwyg-6.x-1.1
tinymce_3_2_2_1

- d

luvcatzzz’s picture

Just an update,

Seems that these all modules are working correctly, the problem is that the cached data still exist for the old data.

Trying to clear the data solving the problem.

1. Server part admin/settings/performance -> clear cache data
2. Client part (iceweasel/firefox) tools-> clear private data

And we'll see the problematic img_assist camera icon, these seems the problem that makes some people try it fine and some people are not, as the cached data seems got different on each machine. I try with my regression and this method is fine.

-d @ htpp://www.bekatul.info

killerloop’s picture

Could not integrate Image Assistant neither. Found a working alternative: http://drupal.org/project/imce_wysiwyg

kevinquillen’s picture

Using the latest stable versions of Img Assist and WYSIWYG, I couldn't get the Img Assist camera icon to show up in the editor. After upgrading img assist to the latest 5.x dev version, the plugin option is no longer available to me in the WYSIWYG config.

Edit:

After multiple install/uninstalls of img assist and WYSIWYG, and going back to the stable img assist for 5.x, the icon now shows up.

grabur’s picture

drupal 6.12
img_assist-6-x2.0-alpha3
wysiwyg-6-x-2.0
tinymce-3-2-4-1

Upgrade from previous drupal where I used tinymce
3rd party modules disabled

installed modules as recommended.
NO EDITS OF ANY FILES
NO tinymce plugin, just downloading tinymce into libraries folder

wysywyg sees tinymce
I can add tinymce to a filter
In the tinymce profile I can check the img_assist checkbox (though no icons show here like they used to)!
i allow inline images for filters

Then upon page creation, tinymce, is there, but no camera icon.
However the image_assist button is still there, but you can't use that unless you turn off tinymce - which defeats the point.

I tried turning off and on modules, deleting some db records. Didn't touch img_assist tables or values. Flushed the cache. Refreshed browser.

I'm not really a JS person, so not so easy for me to debug.

I just tried a clean install and just enabled those modules. And the same problem. Am I missing something?
I thought it might be my server install using symlinks as a wild guess, so I made paths absolute, still no icon.

I don't have to move any files into tinymce do I?
I don't need to edit any tinymce files for this to work?
Do I need to edit anything on the file system?

I just painfully upgraded from 4.7 to 6.12, and everything's okay - bar this show stopper! Which I'd like to fix ASAP so I can get the site back up.

Why has image integration always felt a pain in drupal.
And why can't people just learn how to use an img tag, that's a thousand times easier! 'Nuff said.

Anyone got any combinations working with Tinymce 3? i.e. clickable camera icon!

Thanks

Grant.

myDRU’s picture

Suggestion:
open a page in edit mode (and note that your camera icon is not there where it should be);
next, go and see in the report ==> recent logging to see whether you find any warning or error log that can give you a clue.

Another suggestion (but not sure whether relevant): make sure whether you enabled in all your tinymce profile the img_assist checkbox, do you see it then?

grabur’s picture

Yes I did enable it in the profile.

No camera Icon, not even a placeholder where it should be.

Nothing in the recent logging.

Try the same set up yourself:

Ubuntu 8.04 Apache2.28 Php 5.2.4

davidcardwell77’s picture

Ok I solved this problem sort of.
I reverted to the previous version of wysiwyg, the revoked one.
I know its revoked and insecure and all that but........ it works.
my clients FREAKIN LOVE IT when they can put images in their own pages.
this one isnt really concerned with security.
so based on your need for functionality vs security just revert to the old version of wysiwyg and your camera icon should reappear.
hopefully someone will come up with a real solution soon.

vibe7’s picture

Status: Closed (duplicate) » Active
FileSize
5.24 KB

Same issue No camera icon,, I have inserted the pictures using image icon, in the editor window its shows fine but when you publish it or safe it, its just show you the path of the image not the actual image.. any one know what the issue is.

HasseMan’s picture

@grabur: You need img_assist-6.x-3.x-dev for wysiwyg-6.x-2.0 as described by the Compatibility with other Drupal modules page (linked to from the main wysiwyg project page). I got caught by the same problem.

HasseMan’s picture

@vibe7: Mabye I'm out of line here but if you insert the image using the TinyMCE image icon you aren't touching the Image Assist module at all so I don't think that question should be posted in this support issue. The lost camera icon on the other hand need some more info. What module versions do you use?

TwoD’s picture

@vibe7, that looks like BBCode to me. Are you using BBCode in the editor but haven't enabled the serverside filters?

HasseMan is correct. An Image Assist filtertag looks something like [img_assist|height=50|width=50|.....], has no closing "tag", and is completely unrelated to the built in image functionality of TinyMCE (as it doesn't integrate well with Image Gallery or uploaded files).

vibe7’s picture

FileSize
17.61 KB
14.28 KB
7.96 KB
31.79 KB

Thanks HasseMan
Current versions are Drupal 6.12 . Other Modules i am running is attached
I will try find the other forum that support my previous issue.
Thank you for the support

HasseMan’s picture

As with grabur above you need img_assist-6.x-3.x-dev for wysiwyg-6.x-2.0. I haven't tried the combination of wysiwyg+img_assist+IMCE so if it still doesn't show up I would try to deactivate the IMCE modules to see if they are interfering.

vibe7’s picture

Hi HasseMan
Is there way of uninstalling IMCE completely from the site (not just untagging it from the Admin modules section )

HasseMan’s picture

You have an Uninstall tab on the Modules page. You can uninstall modules that are inactivated and that behave correctly. Don't forget to check if the module requires something other than that by reading its documentation.

vibe7’s picture

FileSize
35.28 KB
28.96 KB
24.98 KB

Hi Hasseman
I have installed a clean slate of drupal and required modules (pic attached) but still no camera icon. ( i am using the Drupal as admin so i guess there is no need to give any access rights either)
thx

HasseMan’s picture

You are still using the wrong img_assist version. You need version 3.x-dev, not 2.0-alpha3.

vibe7’s picture

FileSize
24.58 KB

thanks HasseMan,, you saved myday,.,,, the cam icon is on line
thanks for all the support everyone

sun’s picture

Status: Active » Closed (duplicate)

Reverting status.

TwoD’s picture

Here's the issue this was originally a duplicate of, thought it might be good posting it again since it's easy to miss: #359626: External/Drupal plugins not loaded for second associated editor profile

If anyone is still having problems with the Image Assist icon not appearing, this issue should not need be reopened again. It's gotten quite a bit off track and the other issues referenced here are more likely the cause of your problems.

Thanks to everyone for helping out and being patient when people are in need of assistance!

grabur’s picture

Status: Closed (duplicate) » Active

Thankyou!

That did the trick. All okay now.

sun’s picture

Status: Active » Closed (duplicate)

Again.