Ignore:
Timestamp:
02/28/09 22:10:15 (3 years ago)
Author:
sys
Message:

xed editor objectLeaf : selection et dbl click sur iframe (v3) + debug reinit sur undo d'une suppression

File:
1 edited

Legend:

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

    r12914 r12915  
    460460                                                                                var vRefUri = vXmlNode.getAttributeNS(SCNS, "refUri"); 
    461461                                                                                vHtmlChild.setAttribute("refUri", vRefUri); 
    462                                                                                 this.loadExtBlock(vHtmlChild, vRefUri); 
     462                                                                                //this.loadExtBlock(vHtmlChild, vRefUri); 
    463463                                                                        } 
    464464                                                                        break; 
     
    57465746                </implementation> 
    57475747                <handlers> 
    5748                         <handler event="ScText_mousedown1"><![CDATA[ 
    5749                                 this.focusObject(event.target); 
    5750                         ]]></handler> 
    5751                         <handler event="ScText_click2"><![CDATA[ 
     5748                        <handler event="ScText_init" phase="capturing"><![CDATA[ 
    57525749                                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); 
     5750                                if(vObj.nodeName=="EXTBLOCK") { 
     5751                                        this.loadExtBlock(vObj, vObj.getAttribute("refUri")); 
    57565752                                } 
    57575753                        ]]></handler> 
     
    57855781                        <html:div/> 
    57865782                        <html:iframe anonid="iframe" xbl:inherits="src" /> 
     5783                        <html:mask style="position:absolute; top:0px; left:0px; right:0px; bottom:0px;"/> 
    57875784                </content> 
    57885785                <implementation> 
    57895786                        <constructor> 
    57905787                                var vIframe = document.getAnonymousElementByAttribute(this, "anonid", "iframe"); 
    5791                                 function onMouse(pEvent){ 
    5792                                         try { 
    5793                                                 var vEvent = vIframe.ownerDocument.createEvent("Events"); 
    5794                                                 vEvent.initEvent("ScText_" + pEvent.type + pEvent.detail, true, false); 
    5795                                                 vIframe.parentNode.dispatchEvent(vEvent); 
    5796                                         }catch(e){alert(e);} 
    5797                                 } 
    5798                                 vIframe.contentWindow.addEventListener("mousedown", onMouse, false); 
    5799                                 vIframe.contentWindow.addEventListener("click", onMouse, false); 
     5788                                var vEvent = vIframe.ownerDocument.createEvent("Events"); 
     5789                                vEvent.initEvent("ScText_init", false, false); 
     5790                                vIframe.parentNode.dispatchEvent(vEvent); 
    58005791                        </constructor> 
    58015792                </implementation> 
    5802         </binding>               
     5793        </binding> 
    58035794 
    58045795        <binding id="tableCreator" extends="chrome://global/content/bindings/popup.xml#panel"> 
Note: See TracChangeset for help on using the changeset viewer.