I got a very strange behaviour of the FCKEditor for a self developped field to manage information about a dance course. This field consists of two plain text fields (course titel, course location) and a textarea (course description).

Then I created a new content type to which I added the compound course field (field_kurs) and a CCK textarea field (field_txt).

When I then try to create a content node of this new CCK content type I got the error message "Error: The TEXTAREA with id or name set to "oFCK_2" was not found" popping up and afterwards instead of the FCKEditor for field_kurs I only get the simple text entry field displayed. For the other two textareas (body, field_txt) the FCKEditor shows up !

I then went through troubleshooting "I followed the instruction, but FCKeditor doesn't show up (195759, 196549)" and found out:

  • var oFCK_1..., var oFCK_2... and var oFCK_3... section show up and there does not seem to be any difference between the section for field_kurs and field_txt
  • All three div class="form-item" id="edit-... sections show up. Also there, no visible difference between the section for field_kurs and field_txt
  • BUT: the section div id="fck_oFCK_2" .../div is missing
  • I also had a look at the fckeditor.module. But I cannot figure out how this section cannot be rendered for. Has anyone a clue what my problem could be? (The HTML code of the content node in edit mode is attached)

    CommentFileSizeAuthor
    bugged.html_.txt43.39 KBmathis.marugg

    Comments

    mathis.marugg’s picture

    Status: Active » Closed (fixed)
    entrigan’s picture

    why did you close this? has it been solved? please share if so.

    narky’s picture

    Yes, why is this thread closed? I'm experiencing essentially the same error. I was initially so happy when I found this thread!

    I also created a new compound cck submodule/field so that I can group and multiply together a bunch of textfields/areas.

    My compound field has 4 subfields: 2 textfields and 2 textareas, nothing special.

    Everything basic seems to work (add to a content type, input content, save, edit, etc), but FCKeditor is not able to find the 4 subfields inside the larger custom compound field. Instead I get a whole lot of errors.

    When in 'Edit' mode, FCKeditor loads correctly for other standard CCK textfields/areas. My custom field (its 4 subfields, really) is shown as only plain text.

    While FCKeditor is loading (before FCKeditor is laid on top of the standard CCK fields) I get a whole host of errors, as shown in the thread title, except they're for oFCK_2, oFCK_4, 5, 10, 13, and so forth. A bunch.

    It looks like FCKeditor adds extra DIVs (pls correct me if I'm wrong) that it latches onto, but maybe FCKeditor can't recurse into the subfields. I'm thinking FCKeditor tries to apply itself to the compound field and then stops (unaware of existing subfields: 4 of them).

    I'm wondering whether:

    1) my module is not very well written (first module; borrowed heavily from text.module),

    2) additional instructions must be given to CCK and/or FCKeditor to make it realize that subfields exist within the compound field, or

    3) FCKeditor integration with a custom compound field is a lost cause.

    Has anyone run into this issue before and resolved it? Any clues/instructions/tips from someone who has experience with writing compound fields are MUCH appreciated.

    My config:

    - Drupal 6.14
    - CCK 6.x-2.6
    - FCKeditor (D6 module) 6.x-1.4
    - FCKeditor (the editor) 2.6.5

    narky’s picture

    Status: Closed (fixed) » Active

    Instead of just closing the issue, at least a message saying something like "This is not an FCKeditor issue. Go elsewhere for help" would be much appreciated. Of course, any pointers on how to proceed with debugging is much more appreciated. =D

    edit: I just realized that the OP closed the thread. Oops. Thought a moderator/maintainer had done so.

    Jorrit’s picture

    Status: Active » Closed (fixed)

    If you get this error, try out 6.x-2.x or the ckeditor module.