       CACHE[@editor.getPath()] = {
         html: @element?.innerHTML or '',
         codeChunksData: @codeChunksData,
-        graphData: @graphData
+        graphData: @graphData,
+        presentationMode: @presentationMode,
+        slideConfigs: @slideConfigs
       }
 
       @element.innerHTML = '<p style="font-size: 24px;"> loading preview... </p>'

      @element.innerHTML = d.html
      @graphData = d.graphData
      @codeChunksData = d.codeChunksData

      @setInitialScrollPos()
      # console.log 'restore ' + @editor.getPath()

  html: @element.innerHTML
  codeChunksData: @codeChunksData
  graphData: @graphData
  presentationMode: @presentationMode
  slideConfigs: @slideConfigs
}
###
CACHE = {}
