         @edit_buttons = @element.find(".salvus-editor-html-md-buttons")
         @edit_buttons.show()
         @preview = @element.find(".salvus-editor-html-md-preview")
-
         # initialize the codemirror editor
         @source_editor = codemirror_session_editor(@editor, @filename, @opts)
         @element.find(".salvus-editor-html-md-source-editor").append(@source_editor.element)


    init_buttons: () =>
        @element.find("a").tooltip(delay:{ show: 500, hide: 100 } )

        @element.find("a[href=#save]").click () =>
            @click_save_button()
        @init_edit_buttons()

    command: (cm, cmd, args) =>


        # TODO: implement printing for other file types
        if @filename.slice(@filename.length-7) != '.sagews'
            @element.find("a[href=#print]").unbind().hide()

    click_edit_button: (name) =>
        cm = @codemirror_with_last_focus
