Hi All,
I have a bug with clicking "Add another item" button I have found that this module Wysiwyg API CCK Integration can solve the problem, I am using wysiwyg + tinymce, but when I have installed Wysiwyg API CCK Integration module and its required modules still have the problem on my local pc and on server, can it be a conflict ? But I haven't any js errors. If I disabling reach text before the clicking "Add another item" text in the textarea saved after aditing new field.
Please, help me, what can I do to fix the bug or how I can check to understand the problem?

Thanks, Ujin

Comments

ujin’s picture

I have found the bug and may be it will be useful for somebody, the problem was with jquery_update 1.1 Wysiwyg API CCK Integration doesn't work, when I've installed jquery_update 2.0 alpha version it again worked.
Regards,
Ujin

bleen’s picture

subscribing

bleen’s picture

Category: support » bug
Status: Active » Needs review

We were having this same issue and after 100 zillion hours of banging our heads, the ultimate solution was to ensure that when triggerSave is called that the editor is then detached. Our trigger save now looks like this (sorry no patch, but our proxy server is too strict to allow git to work properly):

/**
 * Let all the editor instances save their content to the field, but
 * not necessarily detach. Called during AJAX/AHAH form submits.
 */
Drupal.wysiwygcck.triggerSave = function(context) {
  var instances = Drupal.wysiwygcck.getInstances(context);
  for (var id in instances) {
    var params = instances[id];
    var editor = params.editor;
    if (jQuery.isFunction(Drupal.wysiwyg.editor.triggerSave[editor])) {
      Drupal.wysiwyg.editor.triggerSave[editor](context, params);
      // Detach the editor to ensure that no data is lost when saving/dragging.
      Drupal.wysiwygDetach(context, params);
    }
  }
}