/source/Plug-in/kind/examples/multi-language.html
http://prosporous.googlecode.com/ · HTML · 45 lines · 45 code · 0 blank · 0 comment · 0 complexity · 0ef4d522c7b4836621a7b281b2441cab MD5 · raw file
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8" />
- <title>Multi Language Examples</title>
- <style>
- form {
- margin: 0;
- }
- textarea {
- display: block;
- }
- </style>
- <script charset="utf-8" src="../kindeditor-min.js"></script>
- <script>
- var editor;
- KindEditor.ready(function(K) {
- K('select[name=lang]').change(function() {
- if (editor) {
- editor.remove();
- editor = null;
- }
- editor = K.create('textarea[name="content"]', {
- langType : this.value
- });
- });
- K('select[name=lang]').change();
- });
- </script>
- </head>
- <body>
- <h3>Multi Language</h3>
- <form>
- <p>
- <select name="lang">
- <option value="en">English</option>
- <option value="zh_CN">????</option>
- <option value="zh_TW">????</option>
- <option value="ar">Arabic</option>
- </select>
- </p>
- <textarea name="content" style="width:800px;height:200px;"></textarea>
- </form>
- </body>
- </html>