'FCKeditor_OnComplete' I get all embed objetcs in the editor, then onclick of an external button i want to remove a specific one, but by then the embed seems replaced by fake images and thus I have to delete the fake image, but I cannot find it. Is there a way to find the fake img of an object?
I tried
but the elements just don't seem to match
I tried
getFakeElement: function(realElement)
{
var node, nodes = this.editingAreaDocument.getElementsByTagName('*'), index;
for(var i = 0; node = nodes[i]; i++)
{
if(index = node.getAttribute('_fckrealelement'))
{
if (this.FCKTempBin.Elements[index] == realElement)
{
return node;
}
}
}
}
but the elements just don't seem to match

Re: Is there a way to find the fake img of an object?
var clone = el.cloneNode( true ) ;
Why is the element cloned?
Re: Is there a way to find the fake img of an object?
this.editorWindow.FCKEmbedAndObjectProcessor.AddCustomHandler( function( el, fakeImg ) { if (!(el.tagName.toLowerCase() == 'embed' && (el.type == 'application/x-shockwave-flash' || /\.swf($|#|\?)/i.test(el.src)))) return; el.fakeImage = fakeImg; });But I'dd rahter have the original image stored in the FCKTempBin though...