CKEditor Samples » Replace Textarea Elements Using JavaScript Code

This sample is not maintained anymore. Check out its brand new version in CKEditor SDK.

This editor is using an <iframe> element-based editing area, provided by the Wysiwygarea plugin.

CKEDITOR.replace( 'textarea_id' )

Append To Page Element Using JavaScript Code — CKEditor Sample

CKEditor Samples » Append To Page Element Using JavaScript Code

This sample is not maintained anymore. Check out the brand new samples in CKEditor SDK.

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.'
);