X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fajax.html;h=153e5469cdcc1734abba364c0e95584745739cbb;hb=refs%2Ftags%2Fv3.4;hp=931f58bcc501e1da7c875ed197c7b623e94dbfd5;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_samples/ajax.html b/_samples/ajax.html index 931f58b..153e546 100644 --- a/_samples/ajax.html +++ b/_samples/ajax.html @@ -22,20 +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()