Ticket #7301: 7301.patch

File 7301.patch, 930 bytes (added by Sa'ar Zac Elias, 13 years ago)
  • _samples/ajax.html

     
    1717        <script type="text/javascript">
    1818        //<![CDATA[
    1919
    20 var editor;
     20var editor, html = '';
    2121
    2222function createEditor()
    2323{
    2424        if ( editor )
    2525                return;
    2626
    27         var html = document.getElementById( 'editorcontents' ).innerHTML;
    2827
    2928        // Create a new editor inside the <div id="editor">, setting its value to html
    3029        var config = {};
     
    3837
    3938        // Retrieve the editor contents. In an Ajax application, this data would be
    4039        // 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();
    4241        document.getElementById( 'contents' ).style.display = '';
    4342
    4443        // Destroy the editor.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy