修改文件
editor/kindeditor.js
editor/kindeditor-all.js
修改代码
pos : function() {
var self = this, node = self[0], x = 0, y = 0;
if (node) {
if (node.getBoundingClientRect) {
var box = node.getBoundingClientRect(),
pos = _getScrollPos(self.doc);
x = box.left + pos.x;
y = box.top + pos.y;
} else {
while (node) {
x += node.offsetLeft;
//源代码 y += node.offsetTop;
y = (parseInt(box.top) < 0 ? 0 : box.top) +pos.y;//修改后
node = node.offsetParent;
}
}
}
return {x : _round(x), y : _round(y)};
},
问题解决!