I am not entirely sure if this is a CKEditor issue or an ImageField one, please feel free to correct me if I should be posting this somewhere else.

CKEditor does not show on node creation for imagefield text areas, but it does for the same areas when you edit the exact same node.

I have noticed that all imagefield text areas have different identifiers (in order to be assigned to CKEeditor profiles) though. As an example, one of them shows like this for node creation:

However, in the node edit form, the same field is identified with:

Here's an attempt to explain what is what in the previous examples:
In the node creation form:

And in the node editing form:

I have used the inclusion string *-data-field-projecte-imatges-enriquit-body in CKEditor Global Profile, which works for editing but not for creation. The administration theme is used for creating and editing nodes, so I suppose there is some missidentification of the field and its path when it is being created, whether if this is CKEeditor's or Imagefield/Filefields' fault I just don't know.

Please tell me if I can provide any further information, and thanks for such a great module.


Category:bug» support
Status:Active» Postponed (maintainer needs more info)

Maybe try use something like this "*image_field_name*" in incusion string. Please write if that help or not.
Remember to add this into right CKEditor's profile.

the image field name is "field_projecte_imatges", if I try including "*field_projecte_imatges*" (without the inverted commas) I get the following error message:
Rule *field_projecte_imatges* is ambiguous: please append .* if *field_projecte_imatges* is a path or prepend *. if *field_projecte_imatges* is a field

I then tried both "*field_projecte_imatges.*" and ".*field_projecte_imatges*", but no luck.

It seems to me that the field_project_name approach won't do the trick, as I understand that is the path to the image field, and there are several text fields associated with that image, only one of which I want to have CKEditor.

Thanks for looking into this.

My field's name is "field_new" . After I add "*-field-new*" in CKEditor's global profile exclude list. CKEditor stop showing on that field during edit.

Is your field an image field as well?

Yes it is. ImageField to upload image with description and title as textarea.

I am using two fields: description and a http://drupal.org/project/imagefield_extended field.
CKEditor should appear on the second both on node creation and node edit. I just shows on node edit.
But with your previous instructions I should see CKEditor in both fields, and for both editing and creation pages, should I not? What else can I try?

My previous description was to 'not' show CKEditor on edit. Sorry for misunderstanding.
The reason why CKEditor isn't show on imagefield description field is that, because description field is created by some ajax/JavaScript call, so CKEditor don't see it on page load.
Some hook, ajax call is needed to create CKEditor's instance for imagefield description.

Should this be done on ckeditor's side or imagefield's? Sorry if this is a dumb question, but my ajax/javascript knowledge is rather limited.

Status:Postponed (maintainer needs more info)» Postponed

We will check this. Please be patient.

Sorry, I didn't mean to rush you at all.

Assigned:Unassigned» mkesicki

Status:Postponed» Needs review
new4.16 KB

I added small patch to solve this problem. Please review this.

I tried the patch but it does not seem to work.
Just to make sure I used the include filter for that particular field "baca:filefield/ahah/projecte/field_projecte_imatges/0.edit-field-projecte-imatges-0-data-field-projecte-imatges-enriquit-body" without trying any wildcards. The field still seems to be linked to the global theme, not the administration one which is used to create and edit nodes.

Status:Needs review» Postponed (maintainer needs more info)

Include/Exclude entries/filters can't help in situation when you add/create node, because ImageField textarea shows in ajax call. Please delete any entries that you added for ImageField to include/exclude list. After this check if provided patch is working for your or not. Please also write what theme do you use ?

I removed all entries for ImageField, and flushed all caches. I am afraid patch still doesn't work.
For node editing/creation I am using Rubik theme.

Status:Postponed (maintainer needs more info)» Needs work

Ok I will test this with Rubik theme.

Status:Needs work» Needs review

I commit changes to git. Please check latest DEV version. It should works with Rubik theme.

Tried yesterday with October 1st dev (datestamp = "1317427506"). Same behaviour. On node creation field is still identified with the site's global theme, not the editing/admin theme.

Tried today with October 3rd dev (datestamp = "1317643645"). Same behaviour, but now I cannot access the collapsed fields in CKEditor profiles mysite.com/admin/settings/ckeditor/edit/Default

@castawaybcn you still don't see CKEditor in textarea of ImageField title/description after clicking upload button on node creation page ? Even if all entries about Imagefield are removed from CKEditor's profile include/exclude list ?

Nope. I removed all entries (not just those related to imagefield) in the include/exclude list, but still no joy on node creation.
In the node edit form, however, I now have CKEditor in both the description field and the imagefield_extended field. This is not exactly what I was trying to accomplish though: CKEditor for imagefield_extended only .

Would it help if you had (limited) access to the site I am working with? I don't know if this is a real possibility for security reasons, but let me know if it would and the permissions you would need.

Write me step to reproduce your problem. Maybe I do something wrong/different than you.
Add screenshot with page where the problem is. I will check this one more time in free time ;)
If I can't find anything I will give you a note.

I just sent you the information through the contact form so that you can see for yourself.

Status:Needs review» Postponed

Status:Postponed» Needs work

I commited small changes but this still needs some improvements.

I commited changes and added patch from #1296804: Tabledrag compatibility.

Updated to 6.x-1.x-dev (2011-Oct-13), but I can't see any differences. What changes should I be looking for? Anything I can test?
Thanks a lot.

@castawaybcn I send you an e-mail. Please check it and response by mail.


I rewrite support for ImageField, and all works without one thing - when u use "Add another item" button it's clear in this group all textareas to default values (when u create page default value is empty, when editing the value which is loaded in the start).
I don't found any more bugs, so pls check last DEV version.


Title:CKEditor just showing on imagefield textareas on editing, not on node creation[D6] CKEditor just showing on imagefield textareas on editing, not on node creation

Status:Needs work» Fixed

Ok, we fix bug with losing text from editor after "Add another item" button click.
All changes commited to GIT.

If u found more bugs pls write issue with description how to reproduce it.


Title:[D6] CKEditor just showing on imagefield textareas on editing, not on node creation[D6] Fix for CKEditor support to Imagefield module textareas
Status:Fixed» Closed (fixed)

Status:Closed (fixed)» Active

the fix for this produces TypeError: CKEDITOR.instances is undefined on line 409 in ckeditor.utils.js

Status:Active» Closed (fixed)

@krishworks, pls not open so old issue... if u have problem pls write new issue with description of your problem...