Changeset 12914 for trunk/Xul_XedLib/chrome/content/scenarixedlib/libUiBase/widgets/xedUiRichTextInput.xbl.xml
- Timestamp:
- 02/28/09 21:14:41 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Xul_XedLib/chrome/content/scenarixedlib/libUiBase/widgets/xedUiRichTextInput.xbl.xml
r12908 r12914 661 661 </method> 662 662 663 <!-- Sélectionne un noeud HTML. --> 664 <method name="focusHtmlNode"> 665 <parameter name="pHtmlNode"/> 666 <body> 667 try{ 668 if( ! this.fRichTextInput.hasAttribute("inputFocused")) { 669 this.fEditorNode.contentWindow.focus(); 670 } 671 var vDoc = this.fEditorNode.contentDocument; 672 var vSel = this.fHTMLEditor.selection; 673 var vOffs = this.getOffsetInParent(pHtmlNode) 674 vSel.collapse(pHtmlNode.parentNode, vOffs); 675 vSel.extend(pHtmlNode.parentNode, vOffs+1); 676 }catch(e){xed.debug("richTextZone.focusHtmlNode::"+e+pHtmlNode);} 677 </body> 678 </method> 679 663 680 <!-- 664 681 @param pFrom : 1 = focus (default), 2 = start, 3 = end … … 1023 1040 ]]></body> 1024 1041 </method> 1025 1026 <!-- Sélectionne un noeud HTML. -->1027 <method name="focusHtmlNode">1028 <parameter name="pHtmlNode"/>1029 <body>1030 try{1031 var vDoc = this.fEditorNode.contentDocument;1032 var vSel = this.fHTMLEditor.selection;1033 var vOffs = this.getOffsetInParent(pHtmlNode)1034 vSel.collapse(pHtmlNode.parentNode, vOffs);1035 vSel.extend(pHtmlNode.parentNode, vOffs+1);1036 }catch(e){xed.debug("richTextZone.focusHtmlNode::"+e+pHtmlNode);}1037 </body>1038 </method>1039 1042 <!-- Ouvre les propriétés d'un noeud. --> 1040 1043 <method name="xOpenSubEditor">
Note: See TracChangeset
for help on using the changeset viewer.