Commit 9063b233 authored by campaign's avatar campaign

添加contentchange触发

parent c1604907
......@@ -44,7 +44,9 @@ kity.extendClass(Minder, {
rollbackStatus: function() {
this.setStatus(this._rollbackStatus);
},
getRollbackStatus:function(){
return this._rollbackStatus;
},
getStatus: function() {
return this._status;
}
......
......@@ -214,9 +214,13 @@ KityMinder.registerModule('TextEditModule', function() {
if(node){
var offset = e.getPosition(node.getRenderContainer());
receiver.updateSelectionByMousePosition(offset)
.updateSelection(offset)
.updateContainerRangeBySel();
receiver
.updateSelectionByMousePosition(offset)
.updateSelection(offset);
setTimeout(function(){
receiver.updateContainerRangeBySel();
});
}
......@@ -297,6 +301,12 @@ KityMinder.registerModule('TextEditModule', function() {
},
'inputready.mousewheel textedit.mousewheel': function() {
receiver.setContainerStyle();
},
'statuschange':function(e){
if(this.getRollbackStatus() == 'textedit'){
this.fire('contentchange');
}
}
}
......
......@@ -108,8 +108,6 @@ Minder.keyboarder = kity.createClass('keyboarder', function(){
.setHoldShow();
me.timer = setTimeout(function() {
if(me.selection.isShow()){
me.selection.setShow();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment