Ticket #6301: test2.html

File test2.html, 1.1 KB (added by Scalar, 11 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!'); //fire inf. in firefox
17                }
18                $(function()
19                {
20                        var EDITOR=$('#test').ckeditor().ckeditorGet();
21                        EDITOR.on('instanceReady',function(){
22                                EDITOR.document.on('focus',TestFocus);
23                        });
24                });
25
26        //]]>
27        </script>
28</head>
29<body>
30        <textarea id='test'></textarea>
31</body>
32</html>
© 2003 – 2021 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy