Ticket #6300: test.html

File test.html, 1.3 KB (added by Scalar, 15 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 CHROME</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!'); //not working in Chrome 6.0.472.55
17                }
18                function TestBlur(){
19                        alert('BLUR!');//not working in Chrome 6.0.472.55
20                }
21                function TestClick(){
22                        alert('Click');//working
23                }
24                $(function()
25                {
26                        var EDITOR=$('#test').ckeditor().ckeditorGet();
27                        EDITOR.on('instanceReady',function(){
28                                EDITOR.document.on('focus',TestFocus);
29                                EDITOR.document.on('blur',TestBlur);
30                                EDITOR.document.on('click',TestClick);
31                        });
32                });
33
34        //]]>
35        </script>
36</head>
37<body>
38        <textarea id='test'></textarea>
39</body>
40</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy