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

  setCurrentAttribute: (name, value) ->
    @composition.setCurrentAttribute(name, value)

  # --

  canDecreaseIndentationLevel: ->
    @composition.canDecreaseIndentationLevel()

    if @canIncreaseIndentationLevel()
      @composition.increaseIndentationLevel()

  # Undo/redo

  canRedo: ->
    @undoManager.canRedo()
