CKEditor Samples » Append To Page Element Using JavaScript Code

The CKEDITOR.appendTo() method serves to to place editors inside existing DOM elements. Unlike CKEDITOR.replace(), a target container to be replaced is no longer necessary. A new editor instance is inserted directly wherever it is desired.

CKEDITOR.appendTo( 'container_id',
	{ /* Configuration options to be used. */ }
	'Editor content to be used.'