<script type="text/javascript">\r
//<![CDATA[\r
\r
-var editor;\r
+var editor, html = '';\r
\r
function createEditor()\r
{\r
if ( editor )\r
return;\r
\r
- var html = document.getElementById( 'editorcontents' ).innerHTML;\r
\r
// Create a new editor inside the <div id="editor">, setting its value to html\r
var config = {};\r
\r
// Retrieve the editor contents. In an Ajax application, this data would be\r
// sent to the server or used in any other way.\r
- document.getElementById( 'editorcontents' ).innerHTML = editor.getData();\r
+ document.getElementById( 'editorcontents' ).innerHTML = html = editor.getData();\r
document.getElementById( 'contents' ).style.display = '';\r
\r
// Destroy the editor.\r