Sometimes FCK failes to load in a fieldset.

We discoverred this while creating a block (no problem) and then editing this block (no fck :S)

The following patches fixed this for us;

1. Load FCK after page load (by introducing $(document).ready(); )
2. patching the collapse.js (in your drupal/misc folder)

Because we have now (with this solution) a delayed load, we can also call the ReplaceTextarea directly after initialising FCK. (see the patch file if you need to know what I mean with this)

Included is the patch to implement these changes.

Reminder: this patch alters modules/fckeditor/fckeditor.module AND misc/collapse.js and therefore this patch should be rolled from your DRUPAL ROOT, and not the module folder.

WARNING: The change in collapse.js comments out some functionality that may be needed in other places. I have NOT found any form that didn't render properly, but it should be known that this MIGHT cause other problems. I will not take responsibility, mainly because you can undo this patch as easily as you can roll it.

CommentFileSizeAuthor
fck.patch2.99 KBrmpel

Comments

wwalc’s picture

I'd like to reproduce this issue before digging deeper, is there any known set of steps to be able to observe that?
I tried creating blocks and reediting them but it seems to work.
Does Firebug show any errors?

wwalc’s picture

Perfect, this patch seems to solve problems with previewing content in Safari (#261420).
I have committed it and let's see if anyone reports problems with it.

wwalc’s picture

Status: Needs review » Fixed
rmpel’s picture

Reproducing is not that easy (except for reverting the patch), but I do remember the error (at least partially);

oFCK_1 is not an object

something like that.

I'll try to reproduce the exact error when I find the time

(In the middle of changing jobs)

rmpel’s picture

Perfect, this patch seems to solve problems with previewing content in Safari (#261420).

Nice to see positive side-effects :P

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

wwalc’s picture

Status: Closed (fixed) » Needs work

I had to revert this patch after finding out that it breaks loading FCKeditor when it is disabled by default and opened via "Switch to rich text editor" link (at least in FF 2.0.0.14).

Jorrit’s picture

Status: Needs work » Closed (fixed)

Closed because of inactivity. If it is still a problem, please reopen.