- // Create a new editor inside the <div id="editor">\r
- editor = CKEDITOR.appendTo( 'editor' );\r
- editor.setData( html );\r
-\r
- // This sample may break here if the ckeditor_basic.js is used. In such case, the following code should be used instead:\r
- /*\r
- if ( editor.setData )\r
- editor.setData( html );\r
- else\r
- {\r
- CKEDITOR.on( 'loaded', function()\r
- {\r
- editor.setData( html );\r
- });\r
- }\r
- */\r
+ // Create a new editor inside the <div id="editor">, setting its value to html\r
+ var config = {};\r
+ editor = CKEDITOR.appendTo( 'editor', config, html );\r