   undo: -> @html(@history.undo())
 
   redo: -> @html(@history.redo())
+
+  removesnippet: ->
+    @snippet.remove() if @snippet
+    @toolbar.hide(true)


  build: ->


  bindEvents: ->



  pushHistory: ->
    @history.push(@html())


  execCommand: (action, options = {}) ->
    @focus()
    Carmenta.log('execCommand', action, options.value)

    if handler = Carmenta.Regions.Snippetable.actions[action]
      Carmenta.changes = true
      handler.call(@, options)
      @pushHistory() unless action == 'undo' || action == 'redo'



