X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_samples%2Fajax.html;h=153e5469cdcc1734abba364c0e95584745739cbb;hp=0cd8ce8b68edd7778ea9ef35fd73cd4e1d0600c4;hb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1;hpb=059b4c2fef02528bf1af189f7996e80652faddfb diff --git a/_samples/ajax.html b/_samples/ajax.html index 0cd8ce8..153e546 100644 --- a/_samples/ajax.html +++ b/_samples/ajax.html @@ -22,22 +22,9 @@ function createEditor() var html = document.getElementById( 'editorcontents' ).innerHTML; - // Create a new editor inside the
- editor = CKEDITOR.appendTo( 'editor' ); - editor.setData( html ); - - // This sample may break here if the ckeditor_basic.js is used. In such case, the following code should be used instead: - /* - if ( editor.setData ) - editor.setData( html ); - else - { - CKEDITOR.on( 'loaded', function() - { - editor.setData( html ); - }); - } - */ + // Create a new editor inside the
, setting its value to html + var config = {}; + editor = CKEDITOR.appendTo( 'editor', config, html ); } function removeEditor()