   toJSON: ->
     @getSnapshot()
 
-  # --
+  # Document manipulation
 
   deleteInDirection: (direction) ->
     @composition.deleteInDirection(direction)

    @undoManager = new Trix.UndoManager @composition
    @composition.loadSnapshot(snapshot)

  # --

  getDocument: ->
    @composition.document


    if @canIncreaseIndentationLevel()
      @composition.increaseIndentationLevel()

  # Undo/redo

  canRedo: ->
    @undoManager.canRedo()
