Ticket #7809: sample.html

File sample.html, 1.3 KB (added by Duncan, 14 years ago)

Sample showing the error.

Line 
1<html>
2    <head>
3    </head>
4    <body>
5                <h1>IE6 setData error</h1>
6        <div>
7            <textarea id="textArea1" name="textArea1" cols="80" rows="10"></textarea>
8        </div>
9        <div>
10                        <ul>
11                                <li><a href="javascript:void(0);" class="attachClick">Click me - attached via jQuery (errors... scrollbar disappears on click 1... error on click 2)</a></li>
12                                <li><a href="javascript:void(0);" class="attachClickWithWorkaround">Click me - attached via jQuery with workaround (works)</a></li>
13                                <li><a href="javascript:clickme();">Click me - attached directly (works)</a></li>
14                        </ul>
15        </div>
16                <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js" type="text/javascript"></script>
17        <script src="http://ckeditor.com/apps/ckeditor/3.5.3/ckeditor.js" type="text/javascript"></script>
18        <script type="text/javascript">
19           
20                        CKEDITOR.replace('textArea1', {});
21
22            function clickme() {
23                CKEDITOR.instances["textArea1"].setData("<p>setData succeeded! - " + new Date().getTime() + "</p>");
24            }
25                       
26                        jQuery(function($) {
27                                $("a.attachClick").click(clickme);
28                                $("a.attachClickWithWorkaround").click(function() { setTimeout(clickme, 0); });
29                        });
30                       
31        </script>
32    </body>
33</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy