#19320022 IE에서 커서가 정상적으로 표시되지 않던 버그 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8007 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2010-12-30 05:34:09 +00:00
parent 38fd867194
commit 127037e6ee

View file

@ -1473,10 +1473,12 @@ LineBreak = xe.createPlugin('LineBreak', {
$br.remove(); $br.remove();
if (!$block.html()) $block.html(invisibleCh); if (!$block.html()) $block.html(invisibleCh);
if (!$p.html()) $p.html(invisibleCh); $p.prepend(d.createTextNode(invisibleCh));
sel.selectNodeContents($p[0]); //sel.selectNode($p[0].firstChild);
sel.collapseToStart(); sel.setStart($p[0].firstChild, 0);
sel.setEnd($p[0].firstChild, 1);
sel.collapseToEnd();
sel.select(); sel.select();
} }