Ckeditor/editor wysiwyg vanish when uploading/removing files

Steps to reproduce
1. Install commons 3.36
2. Create node of type post
3. Type whatever in the body field
4. Click "Browse" for the media field and upload a test image
5. The body field is now stripped of wysiwyg button and the content serialized

You can get the wysiwyg ui back by switching from "Filtered HTML" to "Full HTML" and back to "Filtered HTML" again.
It also happens when you click "Remove" on the file in the media field.
So it might be easier to debug using that event.

It happens in dialog/misc/ajax.js line 329 when it calls
Drupal.detachBehaviors(this.form, settings, 'serialize');

and then when that function calls
this.detach(context, settings, trigger);

on the behavior 'editors' (can be seen in the arguments variable in firefox debugger. See the attached screenshot).

CommentFileSizeAuthor
dkt-zd2344-wisywyg-vanish.png56.32 KBrunephilosof

Comments

RunePhilosof created an issue. See original summary.

runephilosof’s picture

Issue #2691101 in module editor seems to be the problem.

dustin@pi’s picture

Could we add the patch from #2691101 to the Drupal Commons profile? We were having this issue on a number of our ckeditor based fields and the patch fixed it.

Note: I was testing with editor-ckeditor-unloads-on-ajax-2691101-2-7.41.patch.

I'd be happy to submit a patch to the make-file if that helps at all.