Commit 9b7017a1 authored by techird's avatar techird

Merge branch 'dev' of github.com:fex-team/kityminder into dev

parents 816ed14c 9063b233
......@@ -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();
......
......@@ -71,7 +71,7 @@ Minder.Selection = kity.createClass( 'Selection', {
this.offset = arrOffset;
return this;
}
this._show = true;
},
updatePosition:function(offset){
var me = this;
......@@ -89,6 +89,7 @@ Minder.Selection = kity.createClass( 'Selection', {
me.addShape(rect);
});
}
this._show = true;
return this;
},
collapse : function(toStart){
......
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