Changeset 12926 for trunk/Xul_XedLib/chrome/content/scenarixedlib/libUiExtra/scRichText/textBase.xbl.xml
- Timestamp:
- 03/01/09 20:55:56 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Xul_XedLib/chrome/content/scenarixedlib/libUiExtra/scRichText/textBase.xbl.xml
r12925 r12926 3222 3222 if(vIsStartPara) { 3223 3223 //On est en debut de bloc, on insère avant 3224 this. fHTMLEditor.insertNode(vNewPara, pBlockNode.parentNode, this.getOffsetInParent(pBlockNode));3224 this.insertElt(vNewPara, pBlockNode.parentNode, pBlockNode); 3225 3225 return pBlockNode; 3226 3226 } else { 3227 this. fHTMLEditor.insertNode(vNewPara, pBlockNode.parentNode, this.getOffsetInParent(pBlockNode) + 1);3227 this.insertElt(vNewPara, pBlockNode.parentNode, pBlockNode.nextSibling); 3228 3228 //On déplace le texte qui est après le curseur dans le nouveau bloc 3229 3229 //On passe par un équivallent couper/coller notemment pour la gestion des ID. … … 5054 5054 this.xml2html(vXmlCell, vFrag, true, vCell); 5055 5055 this.checkForEdit(vFrag, false); 5056 vCh = vFrag.firstChild; 5057 var vOffset = 0; 5058 while(vCh) { 5059 var vNext = vCh.nextSibling; 5060 this.fHTMLEditor.insertNode(vCh, vCell, vOffset++); 5061 vCh = vNext; 5062 } 5056 var vNodesToInsert = []; 5057 while(vFrag.hasChildNodes()) vNodesToInsert.push(vFrag.removeChild(vFrag.firstChild)); 5058 this.insertElts(vNodesToInsert, vCell, null); 5063 5059 if(pUpdateSel) { 5064 5060 var vRg = vHtmlDoc.createRange();
Note: See TracChangeset
for help on using the changeset viewer.