Closed (won't fix)
Project:
TinyMCE
Version:
6.x-1.1-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 May 2008 at 10:51 UTC
Updated:
28 May 2011 at 00:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jmlane commentedNoticing the same problem here. The option at .../admin/settings/tinymce/edit/profile under 'basic setup', named 'Show disable/enable rich text editor toggle:' does not seem to do anything. Either option results in no link to disable rich text editor, like the TinyMCE 5.x module does.
Will test for same issue with HEAD and change affected version appropriately.
Comment #2
maulwuff commentedsame here:
the link says:
javascript:mceToggle('edit-body', 'wysiwyg4body');
If I use "disable rich text" firebug gives me this:
tinyMCE.getEditorId is not a function
mceToggle("edit-body", "wysiwyg4body")
located at:
if (tinyMCE.getEditorId(element.id) == null) {
i am on D5 with tinymce 5.x-1.9
Comment #3
spade commentedsame here.
I am also missing the input option "unfiltered HTML".
Also in my profile the TinyMCE rich-text-settings offers only th eoptions "Deaktivted|enabled". I wonder wether ther is a difference between Deaktivated and disabled.
Comment #4
katbailey commentedThe code for displaying the toggle link was somehow missing completely. I copied it in from the D5 version of the module and it seems to work ok. Patch attached.
Comment #5
protitude commentedWill this patch be in the next release? Without the ability to toggle tinyMCE, image assist can't insert images.
Comment #6
katbailey commentedOooops! Forgot the patch last time... here it is
Comment #7
markj commentedThis patch (applied using 'patch < tinymce_toggle.patch') doesn't work for me. After application, I get the following error on viewing every page:
warning: include_once(./sites/default/modules/tinymce/tinymce.module) [function.include-once]: failed to open stream: Permission denied in /var/www/html/subjectguides/includes/bootstrap.inc on line 558.
Also, after application, the toggle button is still not appearing. I'm using Drupal 6.2, TinyMCE 6.x-1.1-dev v 1.90.4.23 2007/05/06 01:41:35. Permissions on the file are the same as they were before the patch.
Comment #8
katbailey commentedHmmm, I don't understand the errors in #7 but I can say that the problem definitely runs deeper than just the missing toggle anyway. I just confirmed that it doesn't work with version 3 of the TinyMCE engine because the function mceToggle tries to access a property of the tinyMCE object that no longer exists.
Comment #9
jadowd commentedI still see this as a problem. Any idea when this might be fixed? TinyMCE is pretty useless if you can't toggle it on the node.
Comment #10
jadowd commentedJust as an FYI...
I downloaded the next to last version of the tinymce engine from http://tinymce.moxiecode.com/download.php and it works just fine now. tinymce_2_1_3.tgz is the file that you want, no doubt.
Comment #11
artcoder commentedI applied the tinymce_toggle.patch manually. Now I can see the toggle link at the bottom of my edit window. However, clicking on the toggle link doesn't toggle between Rich Text Editor and Plain text editor. There is Javascript error seen on Firefox 3.0.
Comment #12
jadowd commentedsee comment number 10. That is precisely what was happening to me, but getting the correct mce engine was the fix to the problem.
Comment #13
deulos commentedi used that engine (2.1.3) and the link doesnt appear yet...
Comment #14
jadowd commentedYou will still need to apply the patch mentioned above. Did you do that?
Comment #15
singularoGoing back to 2.1.3 and patching seemed to fix this issue for me.
Attached patch in unified diff format if that helps.
Comment #16
SeeyaSia commentedI'm using drupal 6.2. I downgraded to tinymce 2-1-3 and applied this patch. it works fine on safari but in firefox I get a blank page with just "enable richtext-editor" link... I tried cleaning cache, restarting browser, etc. nothing seems to work...
Comment #17
verres commentedI'm a relative newbie - and patching the TinyMCE engine is beyond my skill level. Has anyone got a version of the patched file(s) they could share so I can ftp them into my site? I'm using drupal 6.2 and currently have the Tinymce 3-0-1 files installed. The editor buttons appear just find on top of the content fields of my site, but the toggle on/off isn't there.
thanks,
C
Comment #18
katbailey commented@zorphas: this is related to http://drupal.org/node/235972 - it happens when one of your text areas is within a collapsible fieldset. I hadn't included it in the D6 patch as I wasn't sure it was affected but obviously it is :-P - attached is a new patch that includes the fix for this.
Comment #19
verres commentedIs there a way I can just cut/paste a new piece of code into my tinymce.module file to fix this problem? I'm running my site on a godaddy server and I'm not sure how to run a patch file from the root directory to fix the module....
but I do know how to edit the tinymce.module file in a text editor.
thnx.
Comment #20
rickardl commentedI used tinyMCE 3.1.0.1 Stable and applied that patch, did not work
downgraded to tinyMCE 2.1.3, with the patch applied, it worked
with tinyMCE 3.1.0.1 i got same message as in comment #2
tinyMCE.getEditorId is not a function
mceToggle("edit-body", "wysiwyg4body")
(Drupal 6.2 + tinyMCE 6.x.1.1-dev module)
Comment #21
knilob commentedI was able to get the patch up and running on my Drupal 6.2 install. The enable/disable toggle seems to work in all browsers now. There is a weird problem with the toggle in Safari. The text for the toggle always displays "Enable Rich Text Editor" even if it's disabled.
I don't know if this a related problem or not, but there still seems to be a problem with the default visibility setting. I have it set to disabled by default, but the TinyMCE editor still shows whenever I go to edit a page. At least the toggle is working now. Any idea on when these fixes will work for the latest 3.1.0.1 release of TinyMCE?
Comment #22
pillarsdotnet commentedConfirmed on Drupal 6.3/tinymce module 6.x-1.1-dev : Upgrading to tinymce 3 (stable) makes the toggle disappear. Downgrading to tinymce 2 (stable) makes the toggle appear. Applied the patch in #18 with no discernible result.
Also ditto on 'toggle always diaplays "Enable"' for me, using Firefox 3. My workaround for now is to edit the tinymce.module file, changing both "Enable" and "Disable" to "Toggle".
Comment #23
Anonymous (not verified) commentedI just downgraded the tinymce to 2-1-3 and applied the patch and it the toggle started working. This did not work for the 3-1 version of tinymce.
Comment #24
PixelClever commentedThis patch isn't really complete if the old version of tinymce has to be used in order for it to work.
Comment #25
dan_aka_jack commentedsubscribing
Comment #26
mark_story commentedI've made a patch to fix the toggles with the Current Stable TinyMCE 3.1.1. There seems to have been some confusion with the API changes. I've combined in the earlier patch that katbailey posted. Sorry the diff was generated with SVN as I don't have CVS.
Comment #27
ppmax commentedFYI: I applied the patch but got a message: Hunk #4 FAILED at 195.
I have TinyMCE 6.x-1.1-dev and the latest version of TinyMCE (3.2).
FWIW after applying the patch I see the link "disable rich-text" but clicking it doesnt do anything. (I also see a javascript error in firebug).
Comment #28
tarlow commentedsubscribing
Comment #29
kelvinwong commentedsubscribing
Comment #30
quadbyte commentedLooks like a dupe of http://drupal.org/node/284936 at least this one worked for me (Drupal 6.4, TinyMCE 3.2)
Comment #31
ramriot commentedSubscribing
Comment #32
kcolwell commentedThe patch in #26 just saved my bacon. It works great.
Thanks!
Ken Colwell
Comment #33
ryanding commentedthanks a lot
Comment #34
pillarsdotnet commented