Ignore:
Timestamp:
02/28/09 19:28:28 (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

    r12911 r12913  
    57665766         
    57675767         
    5768         <binding id="extBlock"> 
     5768        <binding id="extBlock" display="html:div"> 
    57695769                <content> 
    57705770                        <children/> 
    57715771                        <html:div/> 
    5772                         <html:iframe anonid="iframe" xbl:inherits="src"/> 
     5772                        <html:iframe anonid="iframe" xbl:inherits="src" /> 
    57735773                </content> 
    5774                 <!-- 
    57755774                <implementation> 
    57765775                        <constructor> 
    5777                                 this.refresh(); 
     5776                                var vIframe = document.getAnonymousElementByAttribute(this, "anonid", "iframe"); 
     5777                                function onMouse(pEvent){ 
     5778                                        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); 
     5785                                        }catch(e){alert(e);} 
     5786                                } 
     5787                                vIframe.contentWindow.addEventListener("mousedown", onMouse, false); 
     5788                                vIframe.contentWindow.addEventListener("click", onMouse, false); 
    57785789                        </constructor> 
    5779                         <method name="refresh"> 
    5780                                 <body><![CDATA[ 
    5781                                         //var vIframe = document.getAnonymousElementByAttribute(this, "anonid", "iframe"); 
    5782                                         //vIframe.setUserData("scViewContext", "TEST::::::::::::", null); 
    5783                                         //vIframe.setAttribute("src", "chrome://optim-0_0/content/sfile_png/preview.xul"); 
    5784                                 ]]></body> 
    5785                         </method> 
    57865790                </implementation> 
    5787                 <handlers> 
    5788                         <handler event="click"> 
    5789                                 alert("gggggggg"); 
    5790                         </handler> 
    5791                 </handlers> 
    5792                 --> 
    57935791        </binding>               
    57945792 
Note: See TracChangeset for help on using the changeset viewer.