Closed (duplicate)
Project:
TinyMCE
Version:
5.x-1.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
14 Mar 2008 at 22:29 UTC
Updated:
24 Jun 2015 at 12:36 UTC
Hello,
We are using the TinyMCE module with TinyMCE 3.0.5 with Drupal 5.7. When we click the "disable rich-text" link under textareas we receive the following error message in Firebug:
tinyMCE.getEditorId is not a function
mceToggle("edit-code", "wysiwyg4code")
[Break on this error] if (tinyMCE.getEditorId(element.id) == null) {
I'm not sure if this is a bug with the TinyMCE module or with TinyMCE.
Comments
Comment #1
richardjg commentedThis seems to be a tinyMCE api change between versions 2 and 3.
I fixed this by adding some lines to the top of the mceToggle javascript function (line 139 in tinymce.module) to simulate the old api:
Comment #2
edg commentedThanks. That worked for me.
Comment #3
betonarbejder commentedThanks a lot
Comment #4
rfayI don't think this is an issue between TinyMCE 2 and TinyMCE 3. I had the problem with version 3, so reverted to TinyMCE 2.1.3 (and uninstalled the Drupal module and reinstalled and reconfigured). Same problem.
Drupal: 5.7
Drupal TinyMCE Module: 5.x-1.9
Tinymce: 2.1.3
Comment #5
erifneerg commentedi'm not sure which file needed this change. is the the module files?
Comment #6
tjsheridan commentederifneerg, you change the tinymce.module file located in /modules/tinymce
Also I just wanted to say thanks for this. It works like a charm!
Comment #7
tech_nick commentedthanks much, it works for me
Comment #8
1kenthomas commentedSolution in #1 works for us.
Comment #9
ibot commentedThanks, your solution ( #1 ) works for me too..
Comment #10
glass.dimly commented(accidental posting--sorry)
Comment #11
glass.dimly commentedDisable rich text didn't work for me either, not with tinymce 3.x or 2.1. After pasting the code, it worked for me. This would be a great patch! A lot of drupal newbies depend 100% on Tinymce. tinyMCE's difficulty in configuration and various bugs are Drupal's biggest problems for newcomers.
Comment #12
watbe commentedthanks a lot! i've been searching for the solution to this problem for some time now, and this works perfectly!
Comment #13
chirale commentedThanks, it works. A patch will be appreciated.
Applying http://drupal.org/node/235972#comment-882611 patch, with Webform module enabled I got a strange behavior on "node/add/webform". One button works, the other works only to enable editor, but this action is performed on the other textarea. I got:
Error: tinyMCE.get(id) has no properties
Line: 63
Comment #14
watbe commentedwait a sec, it only works for the first En/disable rich text toggle on a page.
The next ones you click won't work.......
any fix?
Comment #15
watbe commentedstill doesn't work....
Comment #16
watbe commentedchanged issue status
Comment #17
tobiass commentedI'm not sure, but it seems that this is a duplicate of http://drupal.org/node/235972
Comment #18
gpk commented#1 worked nicely for me with tinymce.module 5.x-1.9, Drupal 5.7 (with default jQuery which I think is 1.1.2) and TinyMCE 3.1.0.1.
There is actually not a proper patch file attached to this issue so resetting Status.
Comment #19
wmostrey commentedI created a patch and added it to http://drupal.org/node/269527.
Comment #20
jenlamptonfix in #1 worked for me also, thanks so much!!
Comment #21
kenorb commentedWhen I've applied patch #1, I've followed javascript errors:
Maybe that's, because I have different language set than English.
So it doesn't work for me.
Tested on TinyMCE 3.2 + TinyMCE 6.x-dev
Comment #22
kenorb commentedAd #31
Sorry, the first error lines was related to different issue: http://drupal.org/node/324099
But the patch still doesn't work.
I've tried this one: http://drupal.org/node/235972#comment-882611
But doesn't work as well, but maybe will work for somebody.
Comment #23
wasilij commentedrichardjg
Thank you very much
Comment #24
juroon commentedWow, thanks. This worked in Drupal 5.16
I manually added the lines as described in #1, refreshed my page, and the enable/disable links toggle perfectly.
Comment #25
gpk commentedAs the project page http://drupal.org/project/tinymce says, most users should probably be using the http://drupal.org/project/wysiwyg module since this one is not maintained any more.
Though I'm still running the now rather antiquated setup of #18 on a couple of sites that I've not yet upgraded/migrated.
Comment #26
bookish commentedThanks richardjg,
it worked for me
Michel