It appears, that TinyMCE (3.2.1.1) stopped showing after the upgrade to 6.x-1.0. I installed FCKeditor (2.6.4) which works fine in its place. When I select TinyMCE, I just get the Textfield without the editor.

Comments

myDRU’s picture

There are three reasons that cause tinymce not to work after upgrade:

1.
You forgot to run update.php.

or

2.
you combined tinymce and img_assist in the way described in http://drupal.org/node/349568, without applying the there described workaround.

or

3.
In work with the wysiwyg api and img assist and you enabled a language other than English in any of the wysiwyg input formats. If you do so without adding your language in sites\all\modules\img_assist\drupalimage\langs, the tinymce editor will not work. You need to create for instance a 'nl.js' file there if you want to select Dutch. This only takes 20 seconds to do.

Hope this helps.
Hope also that in sites\all\modules\img_assist\drupalimage\langs by default many more languages will be added, to avoid this error.

richard.e.morton’s picture

Do you have the flash button enabled? I am about to post an issue about the flash button. Try disabling it.
I have wysiwyg api with tinymce 3.x

R

sun’s picture

Another possible reason would be that you just changed the selected editor in the wysiwyg profile overview. You cannot do that, because each editor requires its own configuration. So, to switch a profile to another editor, you have to remove it and create a new one.

Seems like this would make up a very good, new FAQ entry in the other issue, once resolved. (1 Q with multiple Answers)

@spade: Please report back about the status of this issue.

andrew_kabai’s picture

I have the same problem after the upgrade.

I didn't forget to run update.php, I don't have img_assist module, flash button is disabled.

Default input type is Filtered HTML and for this input type I have a TinyMCE 3.2.1.1 profile, but I can see only textareas, without editor buttons.

So, I don't have TinyMCE buttons, but under the textarea the "Disable rich-text" link is showed and it looks like working.

Any idea?

dalad’s picture

Same happens to me in a fresh wysiwyg API 6.x-1.0 + TinyMCE 3.2.1.1 installation. Only thing I get is the Disable/Enable rich text link

andrew_kabai’s picture

update:

it seems the problem source is IMCE.

In my case IMCE is installed as a separated module (http://drupal.org/project/imce).
Previously in wysiwyg / tinymce profile / button settings I had to select IMCE, but it used the separated IMCE drupal module, not the IMCE module under the tinymce setup.

Now, if I uncheck IMCE button the tinyMCE is showed and it's working fine, but without IMCE.
If I set back the IMCE button, the TinyMCE is not working.

update2:

wysiwyg api is changed. for earlier version i had the code below (in a little module) to implement imce to wysiwyg/tinymce:

<?php

/**
 * Implementation of hook_wysiwyg_plugin().
 */
function imce_wysiwyg_wysiwyg_plugin($editor) {
  static $access, $integrated;

  switch ($editor) {
    case 'tinymce':
      if (!isset($access)) {
        $access = imce_access();
      }
      if ($access) {
        $result = array(
          'imce' => array(
            'extensions' => array('imce' => t('IMCE')),
            'url' => 'http://drupal.org/project/imce',
            'options' => array(
              'file_browser_callback' => 'imceImageBrowser',
              'inline_styles' => TRUE,
            ),
            'load' => TRUE,
          ),
        );
        if (!isset($integrated)) {
          $integrated = TRUE;
          drupal_add_js("function imceImageBrowser(fid, url, type, win) {win.open(Drupal.settings.basePath +'?q=imce&app=TinyMCE|url@'+ fid, '', 'width=760,height=560,resizable=1');}", 'inline');
        }
        return $result;
      }
  }
}
?>

and now this cause the problem.

without this module tinymce is working fine.

i made this implementation in a little module, but the users can read some other methods in imce readme, so maybe the imce implementation is the problem in other cases too...

update 3:

here is the solution: http://drupal.org/node/287025#comment-1255093
thx sun!

dalad’s picture

I don't get it, there must be something more. I don't have IMCE module installed, but tinyMCE does not show up.
I don't know if this is relevant, but I do have ImageAPI 6.x-1.2 installed.
I'll try installing IMCE and applying the patch.

josys64’s picture

Hi, same problem but if i disable the flash button the toolbar appear (as said #2)

dalad’s picture

crookednumber’s picture

I had similar problem. As with #2 and #8, disabling flash button fixed it.

obeliscus’s picture

Version: 6.x-1.0 » 6.x-2.x-dev

Hi

I'm having the same issue here.

Filtered HTML seems to work fine, however when I disable rich text and then enable it the editor dissapears.
The same thing happens when I switch to Full HTML, it just doesn't work at all.

I upgraded the module, don't have img_assist and I don't understand what or where the flash button is.

Thks for your help

obeliscus - newbie

hanoii’s picture

This seems to be happening with 5.x-1.0 and tinyMCE 2.1.3, no flash or IMCE plugin, I think something went wrong on the update.

I have it enabled by default but I see no tinyMCE and the link reads: 'Disable rich-text editor'. If I click it once, nothing happens, if I click it twice, the editor appears to work as expected.

sun’s picture

Version: 6.x-2.x-dev » 6.x-1.x-dev

Guys. If an editor does not show up, there must be a JavaScript error somewhere. Use the error console and/or Firebug to catch the error message and post it here. Sorry, I still cannot replicate this bug.

richard.e.morton’s picture

I have just noticed, that if "Flash" button is enabled for anyof the input formats in wysiwyg settings (Administer -> Site Configuration -> Wysiwyg), then the editor doesnt appear, even if it is not the active input format, so to be sure; please make sure that all your wysiwyg input formats which are configured for TinyMCE do not have the buttons and plugins "flash" function checked.

I have installed firebug and looked at the firefox console but not sure what information you are looking for. If you can give me some directions I will gladly provide the infromation you need.

thanks

R

epicflux’s picture

With the flash button checked the script calls: /sites/all/modules/wysiwyg/tinymce/jscripts/tiny_mce/plugins/flash/editor_plugin.js, but that file no longer exist in the tinymce package.

I think you'd have to bring up this issue with the tinymce folks.

epicflux’s picture

They want you to use the media plugin now: http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media

This thread may have a fix: http://drupal.org/node/363632

hass’s picture

And I thought this was my fault... same as #5 here. Brand new standard installation - FCK works, Tiny not.

sun’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry, I have no idea what could be wrong on your sites.

Did anyone of you test whether it works with the latest development snapshot 1.x-dev? Did someone test whether it works with 2.x-dev?

Also:

If Wysiwyg API does not work as expected, please 1) Remove all buttons/plugins from your Wysiwyg profile except bold+italic buttons 2) Test whether the editor appears 3) If not, temporarily disable (all) other contrib modules 4) Test again 5) If the editor appears, re-enable other contrib modules step-by-step to see who's guilty.

myDRU’s picture

Tincymce Editor disappears without any notice if does not have all it needs. Can this behaviour be changed in one that logs to the screen what tinymce lacks to appear? This can be a first step.

hass’s picture

I've tried to fix this issue and it's no save that this is an upgrade issue, but nevertheless I'm not sure what was the cause.

I have deleted the tinymce profile under admin/settings/wysiwyg/profile and than re-configured it and now it works.

hass’s picture

Title: TinyMCE stopped showing after upgrade » TinyMCE stopped showing if language is not EN
Status: Postponed (maintainer needs more info) » Active

I found the source of this issue... select language DE, save the profile and create a new node... select the input format with tinymce and it doesn't load. Switch back to EN and it loads.

hass’s picture

It would be a good idea if the module could check if "wysiwyg\tinymce\jscripts\tiny_mce\langs\de.js" (and/or maybe others) have the languages shown in the language select box... installing the required language pack helps and shows the editor in German... :-)

hass’s picture

Title: TinyMCE stopped showing if language is not EN » TinyMCE stopped showing if language pack not installed
sun’s picture

I need someone experienced to summarize this issue as a new FAQ entry in #359936: FAQ

hass’s picture

I think it is much more user friendlier to add one more validation function and to fill the languages drop down only with languages installed and available on the system. Nobody likes to read a readme.txt! Intuitive usability is much better...

sun’s picture

@hass: And it is much more friendly to create and submit a patch for the proper issue (#362318: Limit wysiwyg language selection to available languages) than to complain about missing features. Read over there why it is not as simple as you might think.

hass’s picture

Thx for the link. I wasn't aware about the other case. In general I'm not providing patches, until a consensus is found how something should be fixed or not.

obeliscus’s picture

Well, I tried what hass suggested, it didn't work either.

I'm a newbie, so I don't undertand what to do next.

Can you guys give me a clear explanation about it?

Thks

Andrew Schulman’s picture

subscribing, ugh

snorkers’s picture

For me it was removal of the Flash button that sorted things out. The enable/disable rich text toggle now works fine. Currently my site is running only EN, but will be venturing into Spanish soon...

dmitrit’s picture

This may be caused also by page compression (Administer > Performance)

candelas’s picture

i get the same problem in 6.x.2.0
i dont have the flash botton sellected.

have followed the instructions on the FAQ to install a language pack
http://drupal.org/node/417166

i downloaded 3 different languages (french, spanish and catalan)
i put them in sites/all/libraries/tinymce/jscripts/tiny_mce/langs , where en.js was.
i run update.php

if i choose a language other than english, TinyMCE will not work.

i have drupal 6.12 and i dont have image assist.
i have tinymce_3_2_4_1

i have look on the issues but i can get it work.
thanks for any help :)

myDRU’s picture

You should use the tinymce version from http://tinymce.moxiecode.com and the language pack from there (I think you are doing this already).

But then, the tinymce should become embedded in wysiwyg (http://drupal.org/project/wysiwyg).
So, your file structure will be:

\sites\all\modules\wysiwyg
\sites\all\modules\wysiwyg\tinymce (in other words, unpack your tinymce in the wysiwyg dir).
and finally unpack your language pack in the tiny_mce subdir \sites\all\modules\wysiwyg\tinymce\jscripts\tiny_mce.

Once this done, you must configure the wysiwyg module according to the documentation.

snorkers’s picture

@myDRU.... except wysiwyg has now changed so that external editors don't sit in sites/all/modules/wysiwyg anymore: they now reside in sites/all/libraries - which is great as you don't overwrite them when updating modules.

whatdoesitwant’s picture

@snorkers

I can confirm that the placement of tinymce in the new libraries folder (sites/all/libraries) causes the familiar behaviour whereby tinymce disappears after switching from en to nl in the wysiwyg settings (proper moxiecode language packs installed in the libraries/tinymce folder. Perhaps the new paths have not been updated?

Does anyone know of a quick fix? I accidentally threw away my old version of wysiwyg before checking the new behaviour.

I don't know how to patch but i could test if that is possible on windows.

version 6.x-2.0

Anonymous’s picture

Title: TinyMCE stopped showing if language pack not installed » TinyMCE stopped showing in languages other than English
geek-merlin’s picture

confirming this after a fresh install of wysiwyg 6.x-2.0 and tinymce 3.2.6

getting my tinymce language pack solves the problem for me.

until there is a thorough solution there should be a warning in the installation instructions like so:
"Please note that you have to download and install the appropriate language packs separately. Not doing this may result in the editor silently not working. For details see http://drupal.org/node/379182"

twod’s picture

Status: Active » Fixed

See this: #362318: Limit wysiwyg language selection to available languages Once implemented you will no longer end up in this situation.

EDIT: Whoops, did not see the problem in #35. Please reopen this if there is still a problem.

Anonymous’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev

Just to clarify this: get the language pack from http://tinymce.moxiecode.com/download_i18n.php and ignore the installation instruction which says the contents of the folder should go under your TinyMCE root directory. Instead, the right place is /path/to/your/library/tinymce/jscripts/tiny_mce.

On most installations this would be /sites/all/libraries/tinymce/jscripts/tiny_mce.

Status: Fixed » Closed (fixed)

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