详细说明: 最新的文本编辑器 Ajax — CKEditor Sample [removed] //, setting its value to html var config = {}; editor = CKEDITOR.appendTo( 'editor', config, html ); } function removeEditor() { if ( !editor ) return; // Retrieve the editor contents. In an Ajax application, this data would be // sent to the server or used in any other way. document.getElementById( 'editorcontents' )[removed] = html = editor.getData(); document.getElementById( 'contents' ).style.display = ''; // Destroy the editor. editor.destroy(); editor = null; } //]]> [removed]
CKEditor Sample — Create and Destroy Editor Instances for Ajax Applications
This sample shows how to create and destroy CKEditor instances on the fly. After the removal of CKEditor the content created inside the editing area will be displayed in a
element.
For details of how to create this setup check the source code of this sample page for JavaScript code responsible for the creation and destruction of a CKEditor instance.
Click the buttons to create and remove a CKEditor instance.