Please add CKEditor support. FCKEditor is old.

Comments

jrstmartin’s picture

+1

jrstmartin’s picture

Version: 6.x-1.9 » 6.x-1.x-dev
Component: Miscellaneous » Code
StatusFileSize
new498 bytes
new338 bytes

I think I have a fix in the meantime. I'm using ajax-6.x-1.x-dev, 2011-Apr-08 with ajax, ajax_ui, ajax_scroller, and ajax_fckeditor enabled. Basically any changes made to existing content using CKEditor will not be saved when using Ajax on node/edit forms.

_PATCH 1_

- ajax/plugins/fckeditor/ajax_fckeditor.info.patch

This just changes the dependency from fckeditor to ckeditor, so you can turn the module on.

_PATCH 2_

- ajax/plugins/fckeditor/ajax_fckeditor.js.patch

Allows CKEditor to save itself - changes it from the FCKeditor way to the CKEditor way.

Figured this out by reading these:

http://stackoverflow.com/questions/3256510/how-to-ajax-submit-a-form-tex...
http://drupal.org/node/741572#comment-2752750

and peeping code in ckeditor/includes/ckeditor.utils.js to find this:

/**
 * Ajax support #741572: CKEditor is incompatible with the Ajax module (?). When using Firefox text is not saved when clicking on Save button - URGENT
 */
if (typeof(Drupal.Ajax) != 'undefined' && typeof(Drupal.Ajax.plugins) != 'undefined') {
  Drupal.Ajax.plugins.CKEditor = function(hook, args) {
    if (hook === 'submit' && typeof(CKEDITOR.instances) != 'undefined') {
      for (var i in CKEDITOR.instances)
        CKEDITOR.instances[i].updateElement();
    }
    return true;
  };
}
brendoncrawford’s picture

Status: Active » Needs review

Have these patches been reviewed?