Ticket #7301: 7301.patch
File 7301.patch, 930 bytes (added by , 13 years ago) |
---|
-
_samples/ajax.html
17 17 <script type="text/javascript"> 18 18 //<![CDATA[ 19 19 20 var editor ;20 var editor, html = ''; 21 21 22 22 function createEditor() 23 23 { 24 24 if ( editor ) 25 25 return; 26 26 27 var html = document.getElementById( 'editorcontents' ).innerHTML;28 27 29 28 // Create a new editor inside the <div id="editor">, setting its value to html 30 29 var config = {}; … … 38 37 39 38 // Retrieve the editor contents. In an Ajax application, this data would be 40 39 // sent to the server or used in any other way. 41 document.getElementById( 'editorcontents' ).innerHTML = editor.getData();40 document.getElementById( 'editorcontents' ).innerHTML = html = editor.getData(); 42 41 document.getElementById( 'contents' ).style.display = ''; 43 42 44 43 // Destroy the editor.