Ticket #6296: ckeditor_3_3.html

File ckeditor_3_3.html, 1.9 KB (added by Marcos Wright Kuhns, 9 years ago)

Reproduce the problem in CKEditor 3.3

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
2<html xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <title>CKEditor + Mac Safari Tab bug</title>
5    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js"></script>
6   
7    <script type="text/javascript">
8      CKEDITOR_BASEPATH = 'http://ckeditor.com/apps/ckeditor/3.3/';
9    </script>
10    <script type="text/javascript" src="http://ckeditor.com/apps/ckeditor/3.3/ckeditor.js?1284398892"></script>
11    <!--
12    <script type="text/javascript">
13      CKEDITOR_BASEPATH = 'http://localhost/javascripts/ckeditor_3.3/';
14    </script>
15    <script type="text/javascript" src="http://localhost/javascripts/ckeditor_3.3/ckeditor.js?1284398892"></script>
16    -->
17  </head>
18  <body>
19    <h1 id="wait" style="color:red;">Please wait <span id="number">a few</span> seconds</h1>
20    <p id="instructions" style="display:none;">Now use the tab key to try and focus on the CKEditor.</p>
21   
22    <form id="form1">
23      <input type="text" id="input1" name="input1" value="Input 1" />
24      <input type="checkbox" name="input2" />
25      <textarea id="input3" name="input3">CKEditor #1</textarea>
26      <input type="submit" name="submit" value="Submit" />
27    </form>
28   
29    <script type="text/javascript">
30    count = 3;
31    countdown = function() {
32      if(count > 0) {
33        $('number').update(count--);
34        countdown.delay(1);
35      } else {
36        $('wait').hide();
37        $('instructions').show();
38        $('input1').focus();
39      }
40    };
41   
42    loadCKEditor = function() {
43      try {
44        CKEDITOR.replace($('input3'), {
45          on: {
46            'instanceReady' : function(ev) { countdown(); }
47            }
48        });
49      } catch(err) { setTimeout(loadCKEditor, 300); }
50    };
51    loadCKEditor();
52    </script>
53   
54  </body>
55</html>
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy