mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 17:19:59 +09:00
issue 1151 refixed.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10390 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6a6eb42203
commit
970d989575
3 changed files with 100 additions and 98 deletions
|
|
@ -1370,16 +1370,17 @@ xe.XpressRange = $.Class({
|
|||
oParentNode = xe.DOMFix.parentNode(oNode);
|
||||
|
||||
if(oParentNode.tagName == "SPAN"){
|
||||
var parentText = $(oParentNode).html();
|
||||
// check if the SPAN element is fully contained
|
||||
// do quick checks before trying indexOf() because indexOf() function is very slow
|
||||
oTmpNode = this._getVeryFirstRealChild(oParentNode);
|
||||
if(oTmpNode == oNode) iSIdx = 1;
|
||||
else iSIdx = (typeof(arAllBottmNodes) =="String") ? arAllBottmNodes.indexOf(oTmpNode) : arAllBottmNodes.html().indexOf(oTmpNode);
|
||||
|
||||
else iSIdx = parentText.indexOf(oTmpNode);
|
||||
|
||||
if(iSIdx != -1){
|
||||
oTmpNode = this._getVeryLastRealChild(oParentNode);
|
||||
if(oTmpNode == oNode) iEIdx = 1;
|
||||
else iEIdx = (typeof(arAllBottmNodes) =="String") ? arAllBottmNodes.indexOf(oTmpNode) : arAllBottmNodes.html().indexOf(oTmpNode);
|
||||
else iEIdx = parentText.indexOf(oTmpNode);
|
||||
}
|
||||
|
||||
if(iSIdx != -1 && iEIdx != -1){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue