When i use fupload with fck editor text of body field will be replaced by after images are uploaded!

Comments

grandcat’s picture

Status: Active » Postponed

There are some conflicts with FCK editor at the moment.
FUpload needs a rewrite to work with FCK. So far, this issue won't be handled exclusively. I'm sorry.

Anonymous’s picture

I come up with a custom javascript to detach the editor when the fupload "save" button is clicked, this will convert the editor text back to the textarea before saving.

Please put the following code into your js file, and see if it helps.

Drupal.behaviors.fuploadDetachEditor = function(context) {
  $('.wysiwyg:not(.wysiwyg-processed)', context).each(function() {
    var params = Drupal.wysiwyg.getParams(this);

    $('#startuploadbutton').click(function() {
      // Detach any editor when the containing form is submitted.
      Drupal.wysiwygDetach(context, params);
    }); 
  }); 
}