Closed (duplicate)
Project:
Wysiwyg
Version:
6.x-2.0
Component:
Editor - FCKeditor
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2010 at 16:10 UTC
Updated:
23 Jan 2010 at 20:18 UTC
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
....
when passed to invoke, while in isNode its a ![]()
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
Comment #1
twodThanks 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.