| Project: | FCKeditor - WYSIWYG HTML editor |
| Version: | 5.x-2.2-rc5 |
| Component: | User interface |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I've tried this with both the current development snapshot and the recommended version of FCKeditor.
After installation (following all steps outlined in readme file) and configuration, FCKeditor displays properly on all new pages (by new I am referring to any page created through the create content => page commands). When I go to edit any page, however, FCKeditor fails to come up. I have tried deleting all existing pages and recreating them - the editor DOES appear _every time_ when I go to create a page, it's only in the EDIT mode that I am having trouble getting it to display - so it IS properly configured, I just think I've either hit some weird bug or I am missing some config setting.
I have tried several things, including:
* Clearing all cache files
* Switching to default templates such as garland (my template does, however, include both scripts and closure)
* Redefining role priority in case of overlap
* Logging in as a user other than administrator
* Enabling / Disabling FCKeditor on any and all fields I could imagine
* Deleting the global profile (IDK why this would work, but I saw it on a post somewhere)
* Verifying that the FCKeditor code is displayed on the page through the source (oFCK variable visible)
* Using all combinations of XSS filterring imaginable
* Keeping minimum rows at 1 and using the "exclude" mode with nothing listed for exclude
* Disabling all other modules installed
Some things to note:
* No errors display in Firebug or IE
* I _do_ get the text below the body field that says "The ID for excluding or including this element is: edit-body"
* All permissions are granted to all roles
* Default state is enabled, but no "enable/disable" link displays on existing pages
* Editor in popup window is disabled
* Default Skin is selected
* Start the toolbar expanded is set to enabled
Any help would be greatly appreciated! I specified it in the top, but just to reemphasize, I'm running Drupal 5x (latest recommended as of 10/15/08), FCKeditor drupal module (latest for 5x) and the latest version of FCKeditor directly from the site's developers. Thanks!
Comments
#1
Update: This still isn't working correctly in normal version, but I can get it to come up on edited posts when I set it to display a popup.
#2
The same problem here, only it appears (not appears) in some of the nodes and the others are fine. All new nodes have the same problem - FCK enabled on creation, but not enabling on future edits. Also the body doesn't update with the new changes. Pop-up fixed this issue for me too.
#3
Could you try to attach a screenshot?
#4
same problem as the one's above
#5
it seems that not everyone having these issues? I'm not sure, but if I make it appear with a link i get an error message: line 76: fckeditorAPI undefined in fckeditor.utils.js
it also seems to just affect edit.edit-body fields
#6
i have also noticed that everything (that I can see anyway) related to FCKeditor is actually in the sourcecode of the page that is not showing the editor, so somehow it is not replacing the field.
any ideas?
#7
just noticed that the original starter post was for 5.2x, my problem is for the 6.x-2.x-dev branch, shoudl I open a new bug?
SOLVED!
I replaced fckeditor.utils.js in the dev package with the one from alpha1 package. and it works!
#8
Sorry for late reply, I've been away.
The only "strange" bug that I know is related to Firebug #303428: Unable to edit node in FF3. The solution is to install the nightly build of FCKeditor (the editor, from http://www.fckeditor.net/download).
I *do not recommend* mixing files coming from different releases.
Anyone having similar issue: make sure you have checked the latest dev release along with the nightly build of FCKeditor and that you followed the upgrade procedure.
If possible, please do contact me using contact form and send me login details to your Drupal installation to check it (if you're affraid of doing it, please create a development installation with a similar issue).
#9
I've got the same problem with 6.x-1.3-rc5 and Drupal 6.6. I just replaced the fckeditor.utils.js with the one from rc3 and now it works again. :/
#10
@TheRealSephiroth - what exactly problem do you have? FCKeditor did not show up or perhaps #336753: All text disappears?
Did you try http://drupal.fckeditor.net/troubleshooting#6 first?
#11
I had this same problem. FCK editor shows up just fine when I create content; however, once I go back to edit that content FCK editor is gone. I tried everything I could think of with visibility settings, with roles, with the dev releases, with the nightly builds. None of these things worked. I replaced the 6.x-1.3-rc5 fckeditor.utils.js file with the one from 6.x-1.3-rc3 release as TheRealSephiroth suggested. Now it seems to work fine. After looking at the files, it seems like the xss_check may be causing the problem??
I am building my site on my local machine so sharing the login will probably not help. But I attached some screenshots that show the problem.
Hope this helps.
Thanks.
Andy
#12
I am also having the similar issues:
Initially there was an issue that the FCK editor was not showing in FF3 but in IE.
I solved the problem by replacing the FCK editor from version 2.6.3 to 2.6.2 and it worked fine.
Then I also had the problem FCK editor not showing while editing, but checkling through I noticed that if I select the option of Full HTML in Input Format options, it all works fine both in Firefox and IE.
Still I have the problem of FCK editor not showing while editing my Custom form in Drupal. But I think this has nothing to take with FCK editor but I am not being able to properly save the Input Format.
Is there anyone who has successfully implemented the FCK Editor with Custom form in Drupal created using Form API.
#13
I just found cause and solution for my error.
When I try to edit my forms the FCK editor doesn't come up. When I look in Firebug, it gives a 404 Not Found error for the following URL:
http://localhost/myproj/fckeditor/xss
On looking through the page source I found that there was a class named filterxss2 applied to the FCK Editor textarea.
I don't know Where this class comes from, what is the purpose of this class and what is the best way to remove that class from there.
But the Solution to my problem was to remove that class from there. So I added the following above line 1583 in /includes/form.inc
if($element['#attributes']['class'] == 'filterxss2')
and it now looks as:
------
if (isset($element['#attributes']['class'])) {
if($element['#attributes']['class'] == 'filterxss2')
$class[] = $element['#attributes']['class'];
}
-------
I am sure this is not the way to solve the problem and I am still looking for a better way to solve this problem.
Thanks,
Manish Aneja.
#14
@manishaneja - use the latest dev release of the FCKeditor module. After replacing the old FCKeditor module, visit admin/build/modules page. Now your menu cache should be cleared and you should be able to access fckeditor/xss page. If you're using Drupal 5, make sure that you have run update.php, there is a menu_rebuild() command that should be executed.
@andyanderso - you may have same problems as manishaneja (do not use the code suggested by manishaneja, even if it "works", it's a bad approach) - check whether you have access to fckeditor/xss - perhaps you get HTTP 404 code. You may use Firebug to trace AJAX calls and to see if any javascript errors occurred.
#15
I am working with drupal version 5.2.1 and when I go to fckeditor module page: http://drupal.org/project/fckeditor It says:
6.x-1.3-rc5 -- Recommended for 6.x
and
5.x-2.2-rc5 -- Recommended for 5.x
Still can I use Latest 6.x Release?
Also, to clear my menu cache, do I need to simply clear my browser cache or it is saved in some diretory also, from where it needs to be deleted?
Thanks for your suggestions,
Manish Aneja
#16
In Drupal 5 you should use modules compatible with Drupal 5 - with version string starting with "5.x".
In rc5 there is one nasty bug which has been fixed in the latest dev release (5.x-2.x-dev 2008-Nov-25) (#336753: All text disappears), but before I release rc6 from the latest dev release I want to be sure that nothing else is broken.
Now regarding menu cache - Drupal stores it in database. In Drupal 6, to clear the menu cache it is enough to visit this page: "admin/build/modules".
In Drupal 5 however, it does not work, that's why I had to add menu_rebuild() command in the update script. So to solve your problem, install the latest 5.x dev release, go to "admin/build/modules" and run update.php script.
More information about upgrading is available here:
http://drupal.org/upgrade/running-update-php
#17
As suggested by you (wwalc),
I did the following:
Uninstalled my previous FCK Editor installation.
Cleared the cache by going to Uninstall link at modules page.
Downloaded latest developement Relese 'fckeditor-5.x-2.x-dev.tar.gz' from http://drupal.org/node/187835
Installed this new release.
Set the permissions for various users.
Ran the update.php (No queries executed).
The FCKEditor works fine at other places as earlier, but the page where it was giving xss problem, still shows the same error of http://localhost/myproj/fckeditor/xss being not found
Can you please suggest me what actually is this xss problem and how can it be removed?
Thanks,
Manish Aneja
#18
Hmmm to confirm that the cache_menu is not the problem, can you do the following:
- backup data from the cache_menu table (just in case)
- run the following query on your drupal database : "truncate cache_menu;"
- your cache_menu should be now recreated by Drupal automatically
- check whether HTTP 404 is still returned by Drupal
You can also install the Devel module (enable the devel block after installing it) and use a link to clear all cache tables.
#19
Still the problem persists.
Can this have something to take with the fact that, the problem only shows with my custom created module and not for the conent types I created at drupal admin.
When I look for the same thing on those pages (FCKEditor is working while editing), I don't eve see a request to http://localhost/myproj/fckeditor/xss
I am very confused about what the role of xss request is at the page where error is showing and why is it not showing on working pages.
When I searched through Google it shows that XSS is for cross site scripting to prevent external javascripts from running on our site.
#20
Also I am still using the FCKEditor version 2.6.2, because latest version 2.6.3 was still giving some other errors
#21
When I open the URL http://localhost/myproj/fckeditor/xss on a new browser window, it gives a 404 Not Found error.
But, When I open the URL :
http://localhost/myproj/?q=fckeditor/xss
it shows a blank page and Not a 404 Not Found Error
Can this give us some idea?
or is one these the correct path to access xss URL?
#22
Yes It worked
When I write ?q= before fckeditor/xss at two places in fckeditor.utils.js file at modules/fckeditor, it works fine and shows me the Editor even during editing.
I have Clean URLs disbled on my site currently.
Thanks a lot, for all the support provided by you.
#23
Ooops I missed that :/ Definitely a critical bug.
Thanks for digging into this.
#24
I have same problem, the FCKEditer does not show up in any editing mood. It is also deleted all setting for excluded/included cases. For the time being I reinstalled RC3 again.
#25
One of the reasons could be not selecting the input format as 'Full HTML' if not set by default and if above is not the reason. This is what I initially had the problem with.
Thanks,
Manish Aneja
#26
Do you know when rc6 will be out?
Regards rancor
#27
Mine is on Full HTML by default but all these problems happen anyway.
#28
Rc6 will be out as soon as I fix all those bugs that came out in rc5. I'd appreciate if anyone could check the dev release from 2008-Dec-02.
Remember to read this: http://drupal.fckeditor.net/troubleshooting#6
Rancor and koyauni - can you check the latest dev?
If you had either clean url's disabled or toggle link disabled in FCKeditor profile, there is a chance that the latest dev will definitely solve your problems.
If not, then there is something else that I'm not aware yet and I need your help to track this.
#29
I have done that now. The Dev 1x from 2 Dec works fine. It just I had mad many specific exclusions which they have been lost after updating FCKEditor.Module
The FCKEditor worked fine in FireFox but caused unexpected crash in Chrome.
I hope this will help.
#30
Ok, marking this ticket as fixed. Anyone experiencing this issue please use the latest dev release and reopen this ticket if you still see this bug.
I couldn't reproduce the crash in Chrome 0.4.154.29. Please create a separate issue if you manage to crash this browser using FCKeditor again.
#31
Automatically closed -- issue fixed for two weeks with no activity.
#32
I got the same problem. Downloading the nightly build and replacing fckeditor.utils.js fixes the problem.
#33
OK ajushi, does it also solve the problem that comes on the click of "Switch to plain text editor" link (A javascript error is shown in Firebug and link itself doesn't work) or you didn't get this problem at all?