First - I dug through the issue queue, and was a commenter on a related thread (two years ago here: https://www.drupal.org/node/1968318#comment-9973823), but I still can't get this to work.

I'm calling this a support request, because I have to assume others have gotten this to work, and so if this is a bug, it's an obscure one not affecting other people... it has just completely hung me up though.

I installed the max version listed in the matrix for this release (https://www.drupal.org/docs/7/modules/wysiwyg/supported-editors-matrix) as well as listed in the module config interface. I got the production version, relocated the inner "tinymce" folder to my libraries folder, and renamed the tinymce.min.js to tiny_mce.js. I also edited the version comment (per this: https://www.drupal.org/node/2249321#comment-10104180).

This is after I disabled the old version of WYSIWYG, and uninstalled it completely... so all remains of any previous install should be completely gone, and this should be a fresh start.

I even did an alternate test, and picked an older version of TinyMCE 4 - 4.3.0, just to see if I could get that to work. I followed all the same steps, and it doesn't work either. No matter what I do, I just get the "The version of TinyMCE could not be detected" message.

What could I be missing?

Comments

nitrospectide created an issue. See original summary.

twod’s picture

You should just need to unpack the TinyMCE archive directly in sites/all/libraries/ and not change any files (doing so may cause the library to not be detected).

If your server runs Linux:
cd path/to/sites/all/libraries; wget http://download.ephox.com/tinymce/community/tinymce_4.5.3.zip; unzip tinymce_4.5.3.zip

I also made test with 4.5.5 and it seems to work, but you'll get a message when configuring the profile that the installed version is untested. It's just been bugfixes since 4.5.3 though so I'll update the online supported list and make a note to update the code to reflect this.

nitrospectide’s picture

StatusFileSize
new26 KB

Feeling sad now. I spent a couple of hours on this - trying everything.

It seems that the problem was the instructions in the module UI. I don't understand why no one else was getting hung up on this. The module tells me things should be set up so that the path to the file is "sites/all/libraries/tinymce/tiny_mce.js" which would mean to to grab the inner "tinymce" folder inside the "tinymce/js" folder, and it expects the .js file to be called tiny_mce.js.

(see attached screenshot)

nitrospectide’s picture

I have made progress, but still don't have it working fully. I have the 4.5.3 editor in place, and was able to set up a profile for Full Html that uses TinyMCE 4.5.3.

When I go to create a new node, no editor shows up. I just see a blank textarea.

NOTE: I moved to the dev version of WYSIWYG to see if that had any effect on it. It got rid of the error message about TinyMCE 4.5.3 being unsupported, but did not get it to show up on my node creation form.

twod’s picture

TinyMCE used to use that folder structure, so it's accurate for those versions. Will probably need to adjust the metadata to reflect that TinyMCE 4 is different as that's likely the version people will try first. Thanks for noticing that issue.

Which buttons/plugins have you enabled?
Did you change any of the other options?
Are you seeing any JavaScript errors in the browser's developer console on the node edit page?
Do you see the 'Disable rich-text editing" link below the textarea?

nitrospectide’s picture

I created a profile with the default settings - nothing changed.

I did catch a js error in the console, relating to this module: https://www.drupal.org/project/yoast_seo

I disabled that module, and now TinyMCE shows up.

twod’s picture

Priority: Major » Normal

That probably means the browser halted all script execution because of that error and never got around to running those in Wysiwyg module.

Could it possibly be the problem discussed in #2773385: Breaks JS scripts on node edit forms?

nitrospectide’s picture

Nice. That was in fact the issue. They released a new dev 4 days ago, and that one fixed the issue.

happypanda’s picture

I also spent some time banging my head against the 'version not detected' issue, due to also reading and following the instructions on the WYSIWYG config page.

Updating that text to something that clarifies that "versions past X.X should be installed this way, earlier versions that way" would no doubt save some grief.

twod’s picture

Status: Active » Needs review
StatusFileSize
new2.43 KB

Hmm, it currents defaults to showing the paths for the earliest supported version. Let's change that by looking up the latest supported version before bailing out because the editor is not installed.

  • TwoD committed d639b0e on 6.x-2.x
    - #2864492 by TwoD: Show installation instructions for latest editor...
  • TwoD committed efe1066 on 7.x-2.x
    - #2864492 by TwoD: Show installation instructions for latest editor...
twod’s picture

Status: Needs review » Fixed

I decided to add this immediately, it's now part of 7.x-2.5.
Thanks for helping out!

Status: Fixed » Closed (fixed)

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