using this patch seems to fix the problem for me so far.
Index: image-manager.js
===================================================================
--- image-manager.js (revision 307)
+++ image-manager.js (working copy)
@@ -165,19 +165,21 @@
}
var img = image;
if (!img) {
- var sel = editor._getSelection();
- var range = editor._createRange(sel);
- editor._doc.execCommand("insertimage", false, param.f_url);
if (HTMLArea.is_ie) {
+ var sel = editor._getSelection();
+ var range = editor._createRange(sel);
+ editor._doc.execCommand("insertimage", false, param.f_url);
img = range.parentElement();
// wonder if this works...
if (img.tagName.toLowerCase() != "img") {
img = img.previousSibling;
}
} else {
- img = range.startContainer.previousSibling;
+ img = document.createElement('img');
+ img.src = param.f_url;
+ editor.insertNodeAtSelection(img);
}
- } else {
+ } else {
img.src = param.f_url;
}
@@ -209,4 +211,3 @@
}, outparam);
};
-