Ticket #6302: test3.html

File test3.html, 1.3 KB (added by Scalar, 14 years ago)

Test file, demonstrates the bug

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-2010, 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>ERROR IN FIREFOX</title>
9        <meta content="text/html; charset=utf-8" http-equiv="content-type" />
10        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
11        <script type="text/javascript" src="http://ckeditor.com/apps/ckeditor/3.4/ckeditor.js"></script>
12        <script type="text/javascript" src="http://ckeditor.com/apps/ckeditor/3.4/adapters/jquery.js"></script>
13        <script type="text/javascript">
14        //<![CDATA[
15                function TestFocus(){
16                        alert('FOCUS!'); /
17                }
18                function TestClick(){
19                        alert('Click!'); 
20                }
21                $(function()
22                {
23                        var EDITOR=$('#test').ckeditor().ckeditorGet();
24                        EDITOR.on('instanceReady',function(){
25                                EDITOR.document.on('blur',TestFocus);   ///
26                                                                                                                /// Comment one of this lines, and it will work correctly!
27                                EDITOR.document.on('click',TestClick);  ///
28                        });
29                });
30
31        //]]>
32        </script>
33</head>
34<body>
35        <textarea id='test'></textarea>
36</body>
37</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy