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

    contentContainer = doc.createElement('div')
    contentContainer.id = Tandem.Editor.CONTAINER_ID
    doc.body.appendChild(contentContainer)
    contentContainer.innerHTML = html
    return iframe

  disable: ->

    @ignoreDomChanges = false
    TandemEditor.editors.push(this)

  createIframe: (parent, keepHTML) ->
    html = parent.innerHTML
    parent.innerHTML = ''
    iframe = document.createElement('iframe')
