提交 0332e652 编写于 作者: C campaign

by zhanyi

上级 94cdb7ec
......@@ -103,10 +103,10 @@ UE.plugins['undo'] = function () {
this.getScene = function (notSetCursor) {
var me = this.editor;
var rng = me.selection.getRange(),
restoreAddress = rng.createAddress(),
// restoreAddress = rng.createAddress(),
rngAddress = rng.createAddress(false,true);
me.fireEvent('beforegetscene');
var root = UE.htmlparser(me.body.innerHTML.replace(fillchar, ''),true);
var root = UE.htmlparser(me.body.innerHTML,true);
me.options.autoClearEmptyNode = false;
me.filterOutputRule(root);
me.options.autoClearEmptyNode = orgState;
......@@ -114,7 +114,7 @@ UE.plugins['undo'] = function () {
browser.ie && (cont = cont.replace(/>&nbsp;</g, '><').replace(/\s*</g, '<').replace(/>\s*/g, '>'));
me.fireEvent('aftergetscene');
try{
!notSetCursor && rng.moveToAddress(restoreAddress).select(noNeedFillCharTags[rng.startContainer.nodeName.toLowerCase()]);
// !notSetCursor && rng.moveToAddress(restoreAddress).select(noNeedFillCharTags[rng.startContainer.nodeName.toLowerCase()]);
}catch(e){}
return {
address:rngAddress,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册