kindeditor编辑器点击图片置顶bug修改方法

来源:互联网 发布:mac 安全模式如何进入 编辑:程序博客网 时间:2024/05/18 01:57

修改文件
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)};},

问题解决!

0 0
原创粉丝点击