Ignore:
Timestamp:
02/28/09 21:14:41 (3 years ago)
Author:
sys
Message:

xed editor objectLeaf : selection et dbl click sur iframe.

File:
1 edited

Legend:

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

    r12913 r12914  
    791791                                                                }; 
    792792                                        vTrans.doTransaction = function(){ 
     793                                                //this.fNode.setAttribute("refUri", this.fNewUri); 
    793794                                                this.fXbl.loadExtBlock(this.fNode, this.fNewUri); 
    794795                                        }; 
    795796                                        vTrans.undoTransaction = function(){ 
     797                                                //this.fNode.setAttribute("refUri", this.fOldUri); 
    796798                                                this.fXbl.loadExtBlock(this.fNode, this.fOldUri); 
    797799                                                this.fXbl.focusObject(this.fNode); 
    798800                                        }; 
    799801                                        vTrans.redoTransaction = function(){ 
     802                                                //this.fNode.setAttribute("refUri", this.fNewUri); 
    800803                                                this.fXbl.loadExtBlock(this.fNode, this.fNewUri); 
    801804                                                this.fXbl.focusObject(this.fNode); 
     
    57425745                        --> 
    57435746                </implementation> 
    5744  
     5747                <handlers> 
     5748                        <handler event="ScText_mousedown1"><![CDATA[ 
     5749                                this.focusObject(event.target); 
     5750                        ]]></handler> 
     5751                        <handler event="ScText_click2"><![CDATA[ 
     5752                                var vObj = event.target; 
     5753                                if(vObj.nodeType==1 && this.fClasses[vObj.nodeName].isHighlightable) { 
     5754                                        var vSubEd = this.fClasses[vObj.nodeName].getUrlSubEditor(vObj); 
     5755                                        if(vSubEd) this.xOpenSubEditor(this.fClasses[vObj.nodeName].getUrlSubEditor(vObj), vObj); 
     5756                                } 
     5757                        ]]></handler> 
     5758                </handlers> 
    57455759        </binding> 
    57465760         
     
    57775791                                function onMouse(pEvent){ 
    57785792                                        try { 
    5779                                         var vEvent = vIframe.ownerDocument.createEvent('MouseEvent'); 
    5780                                         vEvent.initMouseEvent(pEvent.type, true, true, vIframe.view, pEvent.detail, 
    5781                                                                 pEvent.screenX, pEvent.screenY, pEvent.clientX, pEvent.clientY, 
    5782                                                                 pEvent.ctrlKey, pEvent.altKey, pEvent.shiftKey, pEvent.metaKey, 
    5783                                                                 pEvent.button, null); 
    5784                                         vIframe.dispatchEvent(vEvent); 
     5793                                                var vEvent = vIframe.ownerDocument.createEvent("Events"); 
     5794                                                vEvent.initEvent("ScText_" + pEvent.type + pEvent.detail, true, false); 
     5795                                                vIframe.parentNode.dispatchEvent(vEvent); 
    57855796                                        }catch(e){alert(e);} 
    57865797                                } 
Note: See TracChangeset for help on using the changeset viewer.