         theme: 'monokai'
       onChange: =>
         @setChanged()
+      onfocus: =>
+        @setFocus()
         return
     return
 

    @type = @element.data 'type'
    @page = @element.data 'page'
    @airmode = true
    @changed = false
    @summernote()
    return

    @content = $(".summernote[data-name=#{@name}]").code()
    return

  setFocus: ->
    @focus = true
    return

  setChanged: ->
    @changed = true
    $('#quadro-actions').show()
