Commit ff77b6ff authored by campaign's avatar campaign

挪动接收框到body下

parent ab951fb2
......@@ -48,6 +48,9 @@ KityMinder.registerModule( "TextEditModule", function () {
var dragmoveTimer;
return {
"events": {
'ready':function(){
this._renderTarget.appendChild(receiver.container);
},
//插入光标
"afterinitstyle":function(){
this.getRenderContainer().addShape(sel);
......
......@@ -26,7 +26,7 @@ Minder.Receiver = kity.createClass( 'Receiver', {
var _div = document.createElement( 'div' );
_div.setAttribute( 'contenteditable', true );
_div.className = 'km_receiver';
this.container = document.body.insertBefore( _div, document.body.firstChild );
this.container = _div;
if ( browser.ie && browser.version == 11 ) {
utils.listen( this.container, 'keydown keypress keyup', function ( e ) {
me.keyboardEvents.call( me, new MinderEvent( e.type == 'keyup' ? "beforekeyup" : e.type, e ) );
......
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