Ignore:
Timestamp:
03/01/09 20:55:56 (3 years ago)
Author:
sys
Message:

textPrim editor : suppr appel HTMLEditor.insertNode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_XedLib/chrome/content/scenarixedlib/libUiExtra/scRichText/textBase.xbl.xml

    r12925 r12926  
    32223222                                        if(vIsStartPara) { 
    32233223                                                //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); 
    32253225                                                return pBlockNode; 
    32263226                                        } else { 
    3227                                                 this.fHTMLEditor.insertNode(vNewPara, pBlockNode.parentNode, this.getOffsetInParent(pBlockNode) + 1); 
     3227                                                this.insertElt(vNewPara, pBlockNode.parentNode, pBlockNode.nextSibling); 
    32283228                                                //On déplace le texte qui est après le curseur dans le nouveau bloc 
    32293229                                                //On passe par un équivallent couper/coller notemment pour la gestion des ID. 
     
    50545054                                                                this.xml2html(vXmlCell, vFrag, true, vCell); 
    50555055                                                                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); 
    50635059                                                                if(pUpdateSel) { 
    50645060                                                                        var vRg = vHtmlDoc.createRange(); 
Note: See TracChangeset for help on using the changeset viewer.