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


  pushHistory: ->
    @history.push('frist!!!!') # !remove
    @history.push(@html())


  execCommand: (action, options) ->
    @focus()
    @pushHistory() unless action == 'undo' || action == 'redo'

    Carmenta.log('execCommand', action, options.value)

    handler.call(@, options) if handler = Carmenta.Regions.Snippetable.actions[action]






  build: ->
    @element.css({minHeight: 20}) if @element.css('minHeight') == '0px'


  bindEvents: ->
