Index: /CKEditor/trunk/_samples/ajax.html
===================================================================
--- /CKEditor/trunk/_samples/ajax.html	(revision 6600)
+++ /CKEditor/trunk/_samples/ajax.html	(revision 6601)
@@ -18,5 +18,5 @@
 	//<![CDATA[
 
-var editor;
+var editor, html = '';
 
 function createEditor()
@@ -25,5 +25,4 @@
 		return;
 
-	var html = document.getElementById( 'editorcontents' ).innerHTML;
 
 	// Create a new editor inside the <div id="editor">, setting its value to html
@@ -39,5 +38,5 @@
 	// Retrieve the editor contents. In an Ajax application, this data would be
 	// sent to the server or used in any other way.
-	document.getElementById( 'editorcontents' ).innerHTML = editor.getData();
+	document.getElementById( 'editorcontents' ).innerHTML = html = editor.getData();
 	document.getElementById( 'contents' ).style.display = '';
 
