             _.debounce (@lazyBound 'previewCss', no), 500
 
           CSSEditor.on "RunRequested", @lazyBound 'previewCss', yes
+          CSSEditor.on "SaveAllRequested", @bound 'saveAll'
           CSSEditor.on "AutoRunRequested", @bound 'toggleLiveReload'
           CSSEditor.on "FocusedOnMe", => @_lastActiveEditor = CSSEditor
 


    toggleFullscreen.on "viewAppended", ->
      toggleFullscreen.parent.setClass "default"


  viewAppended:->


            _.debounce (@lazyBound 'previewApp', no), 500

          JSEditor.on "RunRequested", @lazyBound 'previewApp', yes
          JSEditor.on "SaveAllRequested", @bound 'saveAll'
          JSEditor.on "AutoRunRequested", @bound 'toggleLiveReload'
          JSEditor.on "FocusedOnMe", => @_lastActiveEditor = JSEditor
          JSEditor.on "RecentFileLoaded", => @switchMode 'develop'

          @on 'saveAllMenuItemClicked', @bound 'saveAll'
          @on 'saveMenuItemClicked', =>
            @_lastActiveEditor?.handleSave()
          @on 'closeAllMenuItemClicked', =>
            delete @_lastActiveEditor
            @switchMode 'home'
