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, { ...@@ -44,7 +44,9 @@ kity.extendClass(Minder, {
rollbackStatus: function() { rollbackStatus: function() {
this.setStatus(this._rollbackStatus); this.setStatus(this._rollbackStatus);
}, },
getRollbackStatus:function(){
return this._rollbackStatus;
},
getStatus: function() { getStatus: function() {
return this._status; return this._status;
} }
......
...@@ -214,9 +214,13 @@ KityMinder.registerModule('TextEditModule', function() { ...@@ -214,9 +214,13 @@ KityMinder.registerModule('TextEditModule', function() {
if(node){ if(node){
var offset = e.getPosition(node.getRenderContainer()); var offset = e.getPosition(node.getRenderContainer());
receiver.updateSelectionByMousePosition(offset) receiver
.updateSelection(offset) .updateSelectionByMousePosition(offset)
.updateContainerRangeBySel(); .updateSelection(offset);
setTimeout(function(){
receiver.updateContainerRangeBySel();
});
} }
...@@ -297,6 +301,12 @@ KityMinder.registerModule('TextEditModule', function() { ...@@ -297,6 +301,12 @@ KityMinder.registerModule('TextEditModule', function() {
}, },
'inputready.mousewheel textedit.mousewheel': function() { 'inputready.mousewheel textedit.mousewheel': function() {
receiver.setContainerStyle(); receiver.setContainerStyle();
},
'statuschange':function(e){
if(this.getRollbackStatus() == 'textedit'){
this.fire('contentchange');
}
} }
} }
......
...@@ -108,8 +108,6 @@ Minder.keyboarder = kity.createClass('keyboarder', function(){ ...@@ -108,8 +108,6 @@ Minder.keyboarder = kity.createClass('keyboarder', function(){
.setHoldShow(); .setHoldShow();
me.timer = setTimeout(function() { me.timer = setTimeout(function() {
if(me.selection.isShow()){ if(me.selection.isShow()){
me.selection.setShow(); me.selection.setShow();
......
...@@ -71,7 +71,7 @@ Minder.Selection = kity.createClass( 'Selection', { ...@@ -71,7 +71,7 @@ Minder.Selection = kity.createClass( 'Selection', {
this.offset = arrOffset; this.offset = arrOffset;
return this; return this;
} }
this._show = true;
}, },
updatePosition:function(offset){ updatePosition:function(offset){
var me = this; var me = this;
...@@ -89,6 +89,7 @@ Minder.Selection = kity.createClass( 'Selection', { ...@@ -89,6 +89,7 @@ Minder.Selection = kity.createClass( 'Selection', {
me.addShape(rect); me.addShape(rect);
}); });
} }
this._show = true;
return this; return this;
}, },
collapse : function(toStart){ 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