Commit 76ad8d4a authored by campaign's avatar campaign

添加换行机制

parent 86d5934d
......@@ -104,7 +104,8 @@ Minder.keyboarder = kity.createClass('keyboarder', function(){
me.selection
.updateOffsetByTextData(me.re.textData)
.updatePosition();
.updatePosition()
.setHoldShow();
......@@ -305,6 +306,7 @@ Minder.keyboarder = kity.createClass('keyboarder', function(){
}
}
},
//处理软回车操作
_handlerEnterkey:function(){
var rng = this.range;
var br = document.createElement('br');
......
......@@ -141,6 +141,11 @@ Minder.Selection = kity.createClass( 'Selection', {
this._show = false;
return this;
},
setHoldShow:function(){
this.setStyle('display','');
clearInterval(this.timer);
return this;
},
setShow: function () {
this.bringTop();
clearInterval( this.timer );
......
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