(Article contents added) |
(Minor rewording) |
||
Line 4: | Line 4: | ||
If you want to write some content into CKEditor, use the <code>[http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#setData setData(''data'', ''callback'')]</code> method. | If you want to write some content into CKEditor, use the <code>[http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#setData setData(''data'', ''callback'')]</code> method. | ||
− | An example of how to use these functions can be found in the <code>api.html</code> | + | An example of how to use these functions can be found in the '''Basic usage of the API''' sample (<code>api.html</code>) located in the <code>_samples</code> directory of CKEditor installation package. |
Latest revision as of 14:10, 7 March 2011
If you want to read CKEditor contents, use the getData()
method.
If you want to write some content into CKEditor, use the setData(data, callback)
method.
An example of how to use these functions can be found in the Basic usage of the API sample (api.html
) located in the _samples
directory of CKEditor installation package.