Iam testing the FCKeditor 2.6.5 with http://drupal.org/project/wysiwyg_imageupload which is implementing the WYSIWYG corss-editor api.

It seems like the invoke method passes a different node as used to check in

  isNode: function (node) {
    return $(node).is('img.imgupload');
  },

so using

invoke: function (data, settings, instanceId) {
  if ($(data.node).is('img.imgupload')) {
  }

Will lead into a none-match in FCKeditor, as the data.node is a

Only local images are allowed.....

when passed to invoke, while in isNode its a Only local images are allowed.
Iam hacking arround it this way right now

     if ($(data.node).find('img.imgupload').length == 1) {
        data.node = $(data.node).find('img.imgupload').get(0);

Maybe this could also be fixed for 2.1 as the FCKeditor is probably one of the most editors used out there (iam not using it :) ). Btw. the tinyMCE editor does not fail here, both data.node objects are the same.

Comments

twod’s picture

Status: Active » Closed (duplicate)

Thanks for your input on this! We already have a selection related issue here: #613944: data.node object not present in FCKeditor/CKEditor and I'll ask you to follow up there.