?? editoroverlay.xul
字號:
<menuitem label="&styleSamp.label;" accesskey="&styleSamp.accesskey;" observes="cmd_samp" type="checkbox"/> <menuitem label="&styleVar.label;" accesskey="&styleVar.accesskey;" observes="cmd_var" type="checkbox"/> </menupopup> </menu> <!-- Note: "cmd_fontColor" only monitors color state, it doesn't execute the command (We should use "cmd_fontColorState" and "cmd_backgroundColorState" ?) --> <menuitem id="fontColor" label="&formatFontColor.label;" accesskey="&formatfontcolor.accesskey;" observes="cmd_fontColor" oncommand="EditorSelectColor('Text', null);" position="4"/> <menuseparator id="removeSep" position="5"/> <!-- label and accesskey set at runtime from strings --> <menuitem id="removeStylesMenuitem" key="removestyleskb" observes="cmd_removeStyles" position="6"/> <menuitem id="removeLinksMenuitem" key="removelinkskb" observes="cmd_removeLinks" position="7"/> <menuitem id="removeNamedAnchorsMenuitem" label="&formatRemoveNamedAnchors.label;" key="removenamedanchorskb" accesskey="&formatRemoveNamedAnchors.accesskey;" observes="cmd_removeNamedAnchors" position="8"/> <menuseparator id="tabSep" position="9"/> <!-- Note: the 'Init' menu methods for Paragraph, List, and Align assume that the id = 'menu_'+tagName (the 'value' label), except for the first ('none') item --> <!-- Paragraph Style submenu --> <menu id="paragraphMenu" label="¶graphMenu.label;" accesskey="&formatparagraphmenu.accesskey;" position="10" onpopupshowing="InitParagraphMenu()"> <menupopup oncommand="doStatefulCommand('cmd_paragraphState', event.target.getAttribute('value'))"> <menuitem id="menu_bodyText" type="radio" name="1" label="&bodyTextCmd.label;" accesskey="&bodytext.accesskey;" value="" observes="cmd_renderedHTMLEnabler"/> <menuitem id="menu_p" type="radio" name="1" label="¶graphParagraphCmd.label;" accesskey="¶graphparagraph.accesskey;" value="p" observes="cmd_renderedHTMLEnabler"/> <menuitem id="menu_h1" type="radio" name="1" label="&heading1Cmd.label;" accesskey="&heading1.accesskey;" value="h1" observes="cmd_renderedHTMLEnabler"/> <menuitem id="menu_h2" type="radio" name="1" label="&heading2Cmd.label;" accesskey="&heading2.accesskey;" value="h2" observes="cmd_renderedHTMLEnabler"/> <menuitem id="menu_h3" type="radio" name="1" label="&heading3Cmd.label;" accesskey="&heading3.accesskey;" value="h3" observes="cmd_renderedHTMLEnabler"/> <menuitem id="menu_h4" type="radio" name="1" label="&heading4Cmd.label;" accesskey="&heading4.accesskey;" value="h4" observes="cmd_renderedHTMLEnabler"/> <menuitem id="menu_h5" type="radio" name="1" label="&heading5Cmd.label;" accesskey="&heading5.accesskey;" value="h5" observes="cmd_renderedHTMLEnabler"/> <menuitem id="menu_h6" type="radio" name="1" label="&heading6Cmd.label;" accesskey="&heading6.accesskey;" value="h6" observes="cmd_renderedHTMLEnabler"/> <menuitem id="menu_address" type="radio" name="1" label="¶graphAddressCmd.label;" accesskey="¶graphaddress.accesskey;" value="address" observes="cmd_renderedHTMLEnabler"/> <menuitem id="menu_pre" type="radio" name="1" label="¶graphPreformatCmd.label;" accesskey="¶graphpreformat.accesskey;" value="pre" observes="cmd_renderedHTMLEnabler"/> </menupopup> </menu> <!-- List Style submenu --> <menu id="listMenu" label="&formatlistMenu.label;" accesskey="&formatlistmenu.accesskey;" position="11" onpopupshowing="InitListMenu()"> <menupopup> <menuitem id="menu_noList" type="radio" name="1" label="&noneCmd.label;" accesskey="&none.accesskey;" observes="cmd_removeList"/> <menuitem id="menu_ul" type="radio" name="1" label="&listBulletCmd.label;" accesskey="&listbullet.accesskey;" observes="cmd_ul"/> <menuitem id="menu_ol" type="radio" name="1" label="&listNumberedCmd.label;" accesskey="&listnumbered.accesskey;" observes="cmd_ol"/> <menuitem id="menu_dt" type="radio" name="1" label="&listTermCmd.label;" accesskey="&listterm.accesskey;" observes="cmd_dt"/> <menuitem id="menu_dd" type="radio" name="1" label="&listDefinitionCmd.label;" accesskey="&listdefinition.accesskey;" observes="cmd_dd"/> <menuseparator/> <menuitem id="listProps" label="&listProps.label;" accesskey="&listprops.accesskey;" observes="cmd_listProperties"/> </menupopup> </menu> <menuseparator id="identingSep" position="12"/> <menuitem id="increaseIndent" label="&increaseIndent.label;" accesskey="&increaseindent.accesskey;" key="increaseindentkb" observes="cmd_indent" position="13"/> <menuitem id="decreaseIndent" label="&decreaseIndent.label;" accesskey="&decreaseindent.accesskey;" key="decreaseindentkb" observes="cmd_outdent" position="14"/> <menu id="alignMenu" label="&alignMenu.label;" accesskey="&formatalignmenu.accesskey;" onpopupshowing="InitAlignMenu()" position="15"> <!-- Align submenu --> <menupopup oncommand="doStatefulCommand('cmd_align', event.target.getAttribute('value'))"> <menuitem id="menu_left" label="&alignLeft.label;" accesskey="&alignleft.accesskey;" type="radio" name="1" value="left" observes="cmd_renderedHTMLEnabler"/> <menuitem id="menu_center" label="&alignCenter.label;" accesskey="&aligncenter.accesskey;" type="radio" name="1" value="center" observes="cmd_renderedHTMLEnabler"/> <menuitem id="menu_right" label="&alignRight.label;" accesskey="&alignright.accesskey;" type="radio" name="1" value="right" observes="cmd_renderedHTMLEnabler"/> <menuitem id="menu_justify" label="&alignJustify.label;" accesskey="&alignjustify.accesskey;" type="radio" name="1" value="justify" observes="cmd_renderedHTMLEnabler"/> </menupopup> </menu> <menuseparator id="tableSep" position="16"/> <!-- Merge Table Menu and separator in Messenger Composer here --> <!-- Merge property items here --> </menupopup> <menuitem id="snapToGrid" label="&grid.label;" accesskey="&grid.accesskey;" oncommand="goDoCommand('cmd_grid')" observes="cmd_renderedHTMLEnabler"/> <!-- Next 3 are items to append at the bottom of the formatMenuPopup --> <!-- label and accesskey filled in during menu creation --> <menuitem id="objectProperties" oncommand="goDoCommand('cmd_objectProperties')" observes="cmd_renderedHTMLEnabler"/> <!-- Dont use 'observes', must call command correctly --> <menuitem id="pageProperties" label="&pageProperties.label;" accesskey="&pageproperties.accesskey;" oncommand="goDoCommand('cmd_pageProperties')" observes="cmd_renderedHTMLEnabler"/> <menuitem id="colorsAndBackground" label="&colorsAndBackground.label;" accesskey="&colorsandbackground.accesskey;" oncommand="goDoCommand('cmd_colorProperties')" observes="cmd_renderedHTMLEnabler"/> <menu id="tableMenu" label="&tableMenu.label;" accesskey="&tablemenu.accesskey;"> <menupopup onpopupshowing="EditorInitTableMenu()"> <!-- From EditorCommandOverlay.xul (shared with context popup) --> <menu id="tableInsertMenu" label="&tableInsertMenu.label;" accesskey="&tableinsertmenu.accesskey;"> <menupopup> <menuitem label="&insertTableCmd.label;" accesskey="&tabletable.accesskey;" observes="cmd_InsertTable"/> <menuseparator /> <menuitem label="&tableRowAbove.label;" accesskey="&tablerow.accesskey;" observes="cmd_InsertRowAbove"/> <menuitem label="&tableRowBelow.label;" accesskey="&tablerowbelow.accesskey;" observes="cmd_InsertRowBelow"/> <menuseparator /> <menuitem label="&tableColumnBefore.label;" accesskey="&tablecolumn.accesskey;" observes="cmd_InsertColumnBefore"/> <menuitem label="&tableColumnAfter.label;" accesskey="&tablecolumnafter.accesskey;" observes="cmd_InsertColumnAfter"/> <menuseparator /> <menuitem label="&tableCellBefore.label;" accesskey="&tablecell.accesskey;" observes="cmd_InsertCellBefore"/> <menuitem label="&tableCellAfter.label;" accesskey="&tablecellafter.accesskey;" observes="cmd_InsertCellAfter"/> </menupopup> </menu> <menu id="tableSelectMenu" label="&tableSelectMenu.label;" accesskey="&tableselectmenu.accesskey;"> <menupopup id="tableSelectPopup"> <menuitem id="menu_SelectTable" label="&tableTable.label;" accesskey="&tabletable.accesskey;" observes="cmd_SelectTable" /> <menuitem id="menu_SelectRow" label="&tableRow.label;" accesskey="&tablerow.accesskey;" observes="cmd_SelectRow" /> <menuitem id="menu_SelectColumn" label="&tableColumn.label;" accesskey="&tablecolumn.accesskey;" observes="cmd_SelectColumn" /> <menuitem id="menu_SelectCell" label="&tableCell.label;" accesskey="&tablecell.accesskey;" observes="cmd_SelectCell" /> <menuitem id="menu_SelectAllCells" label="&tableAllCells.label;" accesskey="&tableallcells.accesskey;" observes="cmd_SelectAllCells" /> </menupopup> </menu> <menu id="tableDeleteMenu" label="&tableDeleteMenu.label;" accesskey="&tabledeletemenu.accesskey;"> <menupopup id="tableDeletePopup"> <menuitem id="menu_DeleteTable" label="&tableTable.label;" accesskey="&tabletable.accesskey;" observes="cmd_DeleteTable"/> <menuitem id="menu_DeleteRow" label="&tableRows.label;" accesskey="&tablerow.accesskey;" observes="cmd_DeleteRow"/> <menuitem id="menu_DeleteColumn" label="&tableColumns.label;" accesskey="&tablecolumn.accesskey;" observes="cmd_DeleteColumn"/> <menuitem id="menu_DeleteCell" label="&tableCells.label;" accesskey="&tablecell.accesskey;" observes="cmd_DeleteCell"/> <menuitem id="menu_DeleteCellContents" label="&tableCellContents.label;" accesskey="&tablecellcontents.accesskey;" observes="cmd_DeleteCellContents"/> </menupopup> </menu> <menuseparator /> <!-- menu label is set in InitTableMenu --> <menuitem id="menu_JoinTableCells" label="&tableJoinCells.label;" accesskey="&tablejoincells.accesskey;" observes="cmd_JoinTableCells"/> <menuitem id="menu_SlitTableCell" label="&tableSplitCell.label;" accesskey="&tablesplitcell.accesskey;" observes="cmd_SplitTableCell"/> <menuitem id="menu_ConvertToTable" label="&convertToTable.label;" accesskey="&converttotable.accesskey;" observes="cmd_ConvertToTable"/> <menuseparator /> <menuitem id="menu_TableOrCellColor" label="&tableOrCellColor.label;" accesskey="&tableOrCellColor.accesskey;" observes="cmd_TableOrCellColor"/> <menuitem id="menu_tableProperties" label="&tableProperties.label;" accesskey="&tableProperties.accesskey;" observes="cmd_editTable"/> </menupopup> </menu> <!-- this is only used in messengercompose.xul --> <toolbarbutton type="menu" id="AlignPopupButton" observes="cmd_align" tooltiptext="&AlignPopupButton.tooltip;"> <menupopup id="AlignPopup"> <menuitem id="AlignLeftItem" class="menuitem-iconic" label="&alignLeft.label;" oncommand="doStatefulCommand('cmd_align', 'left')" tooltiptext="&alignLeftButton.tooltip;" /> <menuitem id="AlignCenterItem" class="menuitem-iconic" label="&alignCenter.label;" oncommand="doStatefulCommand('cmd_align', 'center')" tooltiptext="&alignCenterButton.tooltip;" /> <menuitem id="AlignRightItem" class="menuitem-iconic" label="&alignRight.label;" oncommand="doStatefulCommand('cmd_align', 'right')" tooltiptext="&alignRightButton.tooltip;" /> <menuitem id="AlignJustifyItem" class="menuitem-iconic" label="&alignJustify.label;" oncommand="doStatefulCommand('cmd_align', 'justify')" tooltiptext="&alignjustifyButton.tooltip;" /> </menupopup> </toolbarbutton> <!-- InsertPopupButton is used by messengercompose.xul --> <toolbarbutton type="menu" id="InsertPopupButton" observes="cmd_renderedHTMLEnabler" tooltiptext="&InsertPopupButton.tooltip;"> <menupopup id="InsertPopup"> <menuitem id="InsertLinkItem" class="menuitem-iconic" observes="cmd_link" oncommand="goDoCommand('cmd_link')" label="&linkToolbarCmd.label;" tooltiptext="&linkToolbarCmd.tooltip;" /> <menuitem id="InsertAnchorItem" class="menuitem-iconic" observes="cmd_anchor" oncommand="goDoCommand('cmd_anchor')" label="&anchorToolbarCmd.label;" tooltiptext="&anchorToolbarCmd.tooltip;" /> <menuitem id="InsertImageItem" class="menuitem-iconic" observes="cmd_image" oncommand="goDoCommand('cmd_image')" label="&imageToolbarCmd.label;" tooltiptext="&imageToolbarCmd.tooltip;" /> <menuitem id="InsertHRuleItem" class="menuitem-iconic" observes="cmd_hline" oncommand="goDoCommand('cmd_hline')" label="&hruleToolbarCmd.label;" tooltiptext="&hruleToolbarCmd.tooltip;" /> <menuitem id="InsertTableItem" class="menuitem-iconic" observes="cmd_table" oncommand="goDoCommand('cmd_table')" label="&tableToolbarCmd.label;" tooltiptext="&tableToolbarCmd.tooltip;" /> </menupopup> </toolbarbutton> <!-- Editor toolbar items --> <!-- note that we override the submenu item label "Blank Window" with "New" used for the menu --> <toolbarbutton id="newButton" class="toolbarbutton-1" label="&newMenu.label;" command="cmd_newEditor" tooltiptext="&newToolbarCmd.tooltip;"/> <toolbarbutton id="openButton" class="toolbarbutton-1" label="&openToolbarCmd.label;" observes="cmd_open" tooltiptext="&openToolbarCmd.tooltip;"/> <toolbarbutton id="saveButton" class="toolbarbutton-1" observes="cmd_save" tooltiptext="&saveToolbarCmd.tooltip;"/>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -