JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1.1
[ckeditor.git] / _samples / ui_languages.html
index c610588..35fd52d 100644 (file)
@@ -30,10 +30,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                <p>\r
                        <label for="editor1">\r
                                Available languages (<span id="count"> </span>languages!):</label><br />\r
-                       <select disabled="disabled" id="languages" onchange="createEditor( this.value );">\r
                                <script type="text/javascript">\r
                                //<![CDATA[\r
-\r
+                                       document.write( '<select disabled="disabled" id="languages" onchange="createEditor( this.value );">' );\r
                                        // Get the language list from the _languages.js file.\r
                                        for ( var i = 0 ; i < window.CKEDITOR_LANGS.length ; i++ )\r
                                        {\r
@@ -42,10 +41,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                                window.CKEDITOR_LANGS[i].name +\r
                                                        '</option>' );\r
                                        }\r
-\r
+                                       document.write( '</select>' );\r
                                //]]>\r
                                </script>\r
-                       </select>\r
                        <br />\r
                        <span style="color: #888888">(You may see strange characters if your system doesn't\r
                                support the selected language)</span>\r