         e.data('diff_sync', new DiffSyncDoc(cm:cm, readonly:false))
 
         cm.clearHistory()  # ensure that the undo history doesn't start with "empty document"
-        $(cm.getWrapperElement()).addClass('salvus-new-task-cm-editor').addClass('salvus-new-task-cm-editor-focus')
+        $(cm.getWrapperElement()).addClass('salvus-new-task-cm-editor')
         $(cm.getScrollerElement()).addClass('salvus-new-task-cm-scroll')
 
-        cm.focus()
+
         elt.find("a[href=#close]").tooltip(delay:{ show: 500, hide: 100 }).click (event) =>
             stop_editing()
             event.preventDefault()

                            if misc.mswalltime() - last_sync >= min_time
                                sync_desc()
                        timer = setTimeout(f, min_time - (t - last_sync))

    edit_due_date: (task) =>
        @set_current_task(task)

                @render_task_list()

    init_search: () =>
        @_last_search = misc.walltime()
        search_delay = 300  # do the search when user stops typing for this many ms
        search_box = @element.find(".salvus-tasks-search")
        search_box.keyup (evt) =>
            if evt.which == 27
                search_box.val('').blur()
                @render_task_list()
                return
            else if evt.which == 13
                @edit_desc(@current_task)
                return
            t = misc.walltime()
            if t - @_last_search >= search_delay
                @_last_search = t
