Enable / Disable Toggle Not Working
jacobson - November 8, 2007 - 06:54
| Project: | FCKeditor - WYSIWYG HTML editor |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The link to enable / disable the editor does not work. It turns the editor on and shows the toolbar, but it does not hide the toolbar.

#1
What OS/Browser are you using?
#2
I suspect that the theme you're using is also a problem
(especially if the issue in http://drupal.org/node/190401 is taken into account)
#3
I use Firefox latest version. My theme is a very lightly modified Garland. Not sure how any mod I made could affect the TEXTAREA size on just some pages and only when FCKEditor module is enabled. HAJ
#4
Ok, one more question - do you use the latest release of 5.x-2.x? Could you try the latest package, which was released yesterday (November 7)?
Is it possible that you have toggle and popup mode enabled at the same time? I have been able to reproduce yesterday similar behaviour by enabling both options at the same time (if both options were enabled, textarea has been resized to a very narrow field.)
#5
I'll pull down the latest release, and let you know. HAJ
Update: I installed the latest dev release. Still, the toggle link does not work once the editor is enabled. Clicking on the link again does not hide FCKEditor, though the link text changes back to "enable". Clicking again does not change link text.
Firebug reveals the following error message:
oEditor.GetData is not a functionToggle("oFCK_1", "edit-body", "Switch to plain text editor", "Switch to rich text editor")fckeditor.utils.j... (line 53)
[Break on this error] eTextarea.value = oEditor.GetData() ;
at line 53 of fckeditor.utils.js.
#6
Ok, many thanks for detailed info, it was really helpful.
I have used the GetData function which was introduced in FCKeditor 2.5... and you've probably installed 2.4.3.
Change GetData/SetData to GetHTML/SetHTML and it should work.
I have fixed this also in CVS, the updated version of FCKeditor module should be available in around 11 hours.
Let me know if you have any more problems.
#7
no reply, assume its fixed
#8
Automatically closed -- issue fixed for two weeks with no activity.