Ticket #5123: 5123.patch

File 5123.patch, 1.0 KB (added by Wiktor Walc, 14 years ago)

I'm attaching a patch with a simple change that will make the sample a valid XHTML file.

  • _samples/ui_languages.html

     
    3535                <p>
    3636                        <label for="editor1">
    3737                                Available languages (<span id="count"> </span>languages!):</label><br />
    38                         <select disabled="disabled" id="languages" onchange="createEditor( this.value );">
    3938                                <script type="text/javascript">
    4039                                //<![CDATA[
    41 
     40                                        document.write( '<select disabled="disabled" id="languages" onchange="createEditor( this.value );">' );
    4241                                        // Get the language list from the _languages.js file.
    4342                                        for ( var i = 0 ; i < window.CKEDITOR_LANGS.length ; i++ )
    4443                                        {
     
    4746                                                                window.CKEDITOR_LANGS[i].name +
    4847                                                        '</option>' );
    4948                                        }
    50 
     49                                        document.write( '</select>' );
    5150                                //]]>
    5251                                </script>
    53                         </select>
    5452                        <br />
    5553                        <span style="color: #888888">(You may see strange characters if your system doesn't
    5654                                support the selected language)</span>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy