   # Document delegate
 
   didEditDocument: (document) ->
-    if @skipRender
-      delete @skipRender
-    else
+    if @render
+      delete @render
       @delegate?.compositionDidChangeDocument?(@document)
 
   documentDidAddAttachment: (document, attachment) ->

            @insertBlock(newBlock)
          # Stay in the block, add a newline
          else
            @insertString("\n")
    else
      @insertString("\n")

  insertHTML: (html) ->
    document = Trix.Document.fromHTML(html)

      @selectionManager.expandSelectionInDirectionWithGranularity(direction, "character")

  notifyDelegateOfIntentionToSetLocationRange: ->
    @render = true
    @delegate?.compositionWillSetLocationRange()

  expandSelectionForEditing: ->
