Ticket #7836: focus_issue.html

File focus_issue.html, 1.7 KB (added by Niek Kouwenberg, 14 years ago)

Test case (copied from _samples) displaying the odd behavior.

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<!--
3Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
4For licensing, see LICENSE.html or http://ckeditor.com/license
5-->
6<html xmlns="http://www.w3.org/1999/xhtml">
7<head>
8        <title>Replace Textarea by Code &mdash; CKEditor Sample</title>
9        <meta content="text/html; charset=utf-8" http-equiv="content-type" />
10        <!-- CKReleaser %REMOVE_LINE%
11        <script type="text/javascript" src="../ckeditor.js"></script>
12        CKReleaser %REMOVE_START% -->
13        <script type="text/javascript" src="../ckeditor_source.js"></script>
14        <!-- CKReleaser %REMOVE_END% -->
15        <script src="sample.js" type="text/javascript"></script>
16        <link href="sample.css" rel="stylesheet" type="text/css" />
17</head>
18<body>
19                <input type="button" onclick="document.getElementById('editor1-container').style.display='block';" value="show" />
20                <p id="editor1-container" style="display: none;">
21                        <label for="editor1">
22                                Editor 1:</label>
23                        <textarea cols="80" id="editor1" name="editor1" rows="10"></textarea>
24                        <script type="text/javascript">
25                        //<![CDATA[
26
27                                // This call can be placed at any point after the
28                                // <textarea>, or inside a <head><script> in a
29                                // window.onload event handler.
30
31                                // Replace the <textarea id="editor"> with an CKEditor
32                                // instance, using default configurations.
33                                CKEDITOR.replace( 'editor1' );
34
35                        //]]>
36                        </script>
37                        <br />
38                        <input type="button" onclick="document.getElementById('editor1-container').style.display='block'; CKEDITOR.instances['editor1'].focus();" value="focus" />
39                </p>
40
41</body>
42</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy