Bug 639694 - Move EditModeToolbar from editorOverlay (missing commandset from editor.xul)
authorIan Neal <iann_cvs@blueyonder.co.uk>
Sat, 12 Mar 2011 01:59:37 +0000
changeset 7330 8c28537630df5e02d1970d4fdef5a1ec5fd23542
parent 7329 1e34839acfdd4e83ab80d44693e555285668407b
child 7331 6f848212dca4b60ccc58e2440aec21234830146e
push idunknown
push userunknown
push dateunknown
bugs639694
Bug 639694 - Move EditModeToolbar from editorOverlay (missing commandset from editor.xul) r=neil/standard8
editor/ui/composer/content/editor.xul
--- a/editor/ui/composer/content/editor.xul
+++ b/editor/ui/composer/content/editor.xul
@@ -94,16 +94,29 @@
 
   <popupset id="editorContentContextSet"/>
   <menupopup id="sidebarPopup"/>
   <menupopup id="popupNotificationMenu"/>
 
   <commandset id="editorCommands">
     <commandset id="commonEditorMenuItems"/>
     <commandset id="composerMenuItems"/>
+    <commandset id="composerModeMenuItems"
+                commandupdater="true"
+                events="create, mode_switch"
+                oncommandupdate="goUpdateComposerMenuItems(this);">
+      <command id="cmd_NormalMode"
+               oncommand="goDoCommand('cmd_NormalMode');"/>
+      <command id="cmd_AllTagsMode"
+               oncommand="goDoCommand('cmd_AllTagsMode');"/>
+      <command id="cmd_HTMLSourceMode"
+               oncommand="goDoCommand('cmd_HTMLSourceMode');"/>
+      <command id="cmd_PreviewMode"
+               oncommand="goDoCommand('cmd_PreviewMode');"/>
+    </commandset>
     <commandset id="composerEditMenuItems"/>
     <commandset id="composerSaveMenuItems"/>    
     <commandset id="composerStyleMenuItems"/>
     <commandset id="composerTableMenuItems"/>
     <commandset id="composerListMenuItems"/>
     <commandset id="tasksCommands"/>
     <!-- view menu -->
     <command id="cmd_viewEditModeToolbar"