     contentContainer = doc.createElement('div')
     contentContainer.id = Tandem.Editor.CONTAINER_ID
     doc.body.appendChild(contentContainer)
-    contentContainer.innerHTML = html
+    contentContainer.innerHTML = html if keepHTML
     return iframe
 
   disable: ->

        line-height: 15px;
        margin: 0px;
        padding: 10px 15px; 
      }

      ##{TandemEditor.CONTAINER_ID} { outline: none; }


  constructor: (@container, enabled = true) ->
    @container = document.getElementById(@container) if _.isString(@container)
    this.reset(true)
    this.enable() if enabled

  reset: (keepHTML = false) ->
    @ignoreDomChanges = true
    @iframe = this.createIframe(@container, keepHTML)
    @doc = new Tandem.Document(this, @iframe.contentWindow.document.getElementById(TandemEditor.CONTAINER_ID))
    @currentSelection = null
    @keyboard = new Tandem.Keyboard(this)
