 + actions over text
 + placeholders for first (empty) node
 + on paste set caret to the last (or first?) element
++ parse images or objects
++ remove inner spans and other shits
++ WRAP INTO PARAGRAPHS ORPHANS
+  + convert divs into p
+  + a, img,  wrap with p
 ###
 
 # make it accessible

    #next_node = anchor_node.nextSibling

    if (e.which == 8)
      return false if !anchor_node or anchor_node.nodeType is 3

      if $(@getNode()).hasClass("graf--first")
        console.log "THE FIRST ONE! UP"
        @reachedTop = true
        @markAsSelected(@getNode())
        @setupFirstAndLast()
        false

      if !anchor_node
        console.log("preventing now!")
        @prevented = true
        #e.preventDefault()
        false

      @markAsSelected(@getNode())

    childs.first().addClass("graf--first")
    childs.last().addClass("graf--last")

  wrapTextNodes: ()->
    $(@el).find(".section-inner").contents().filter(->
      @nodeType is 3 and @data.trim().length > 0
    ).wrap "<p class='graf grap--p'></p>"

class Editor.Menu extends Backbone.View
  el: "#editor-menu"
