mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#19320022 IE에서 커서가 정상적으로 표시되지 않던 버그 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8007 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
38fd867194
commit
127037e6ee
1 changed files with 6 additions and 4 deletions
|
|
@ -1447,7 +1447,7 @@ LineBreak = xe.createPlugin('LineBreak', {
|
|||
$br.after( $a = $('<a>|</a>') );
|
||||
this._scrollIntoView($a[0]);
|
||||
$a.remove();
|
||||
|
||||
|
||||
this._in_br = true;
|
||||
this._br_timer = setTimeout(function(){ self._in_br = false; }, 500);
|
||||
return;
|
||||
|
|
@ -1473,10 +1473,12 @@ LineBreak = xe.createPlugin('LineBreak', {
|
|||
$br.remove();
|
||||
|
||||
if (!$block.html()) $block.html(invisibleCh);
|
||||
if (!$p.html()) $p.html(invisibleCh);
|
||||
$p.prepend(d.createTextNode(invisibleCh));
|
||||
|
||||
sel.selectNodeContents($p[0]);
|
||||
sel.collapseToStart();
|
||||
//sel.selectNode($p[0].firstChild);
|
||||
sel.setStart($p[0].firstChild, 0);
|
||||
sel.setEnd($p[0].firstChild, 1);
|
||||
sel.collapseToEnd();
|
||||
sel.select();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue