Changeset 12908


Ignore:
Timestamp:
02/28/09 11:26:50 (3 years ago)
Author:
sys
Message:

xed richText : debug undo/redo xed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_XedLib/chrome/content/scenarixedlib/libUiBase/widgets/xedUiRichTextInput.xbl.xml

    r12859 r12908  
    248248                        <method name="controlScroll"> 
    249249                                <body><![CDATA[ 
    250                                         var vRange = this.fRichTextZone.fHTMLEditor.selection.getRangeAt(0); 
     250                                        var vHtmlEditor = this.fRichTextZone.fHTMLEditor; 
     251                                        if(!vHtmlEditor) return; //pas encore init 
     252                                        var vRange = vHtmlEditor.selection.getRangeAt(0); 
    251253                                        var vNode = vRange.startContainer; 
    252254                                        if(vNode.nodeType==3) vNode = vNode.parentNode; 
     
    269271                        <method name="getRectToEnsureVisible"> 
    270272                                <body><![CDATA[ 
    271                                         var vRange = this.fRichTextZone.fHTMLEditor.selection.getRangeAt(0); 
     273                                        var vHtmlEditor = this.fRichTextZone.fHTMLEditor; 
     274                                        if(!vHtmlEditor) return; //pas encore init 
     275                                        var vRange = vHtmlEditor.selection.getRangeAt(0); 
    272276                                        var vNode = vRange.startContainer; 
    273277                                        if(vNode.nodeType==3) vNode = vNode.parentNode; 
Note: See TracChangeset for help on using the changeset viewer.