Commit 33b58bd6 authored by campaign's avatar campaign

修复文字输入

parent 43cd8ac0
......@@ -91,12 +91,9 @@ Minder.Receiver = kity.createClass( 'Receiver', {
if ( me.textShape.getOpacity() == 0 ) {
me.textShape.setOpacity( 1 );
if(/^\|/.test(text)){
text = text.replace(/^\|/,'');
me.container.textContent = text;
}
}
//#46 修复在ff下定位到文字后方空格光标不移动问题
if ( browser.gecko && /\s$/.test( text ) ) {
text += "\u200b";
......
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