1 | <html> |
---|
2 | <head> |
---|
3 | <title>CKEditor Width = 0 Bug</title> |
---|
4 | <script src="../ckeditor.js"></script> |
---|
5 | </head> |
---|
6 | <body> |
---|
7 | <h1> |
---|
8 | CKEditor Width = 0 Bug |
---|
9 | </h1> |
---|
10 | <div> |
---|
11 | <ol> |
---|
12 | <li> Place the html file in the same folder as ckeditor.js |
---|
13 | <li> Open the html file in Google Chrome |
---|
14 | <li> <b>Note:</b> There is text in the CKEditor and it is editable |
---|
15 | <li> Click the "Hide CKEditor" button |
---|
16 | <li> Resize your browser window |
---|
17 | <li> Click the "Show CKEditor" button |
---|
18 | <li> <b>Note:</b> The text is missing from the editor, the editor is not editable (the reason is the CKEditor's iframe has width = 0) |
---|
19 | <li> Resize your browser window again |
---|
20 | <li> <b>Note:</b> The text is now visible/editable on the editor again |
---|
21 | </ol> |
---|
22 | <p> |
---|
23 | <input type="button" id="hide" value="Hide CKEditor" onclick="document.getElementById('container').style.display='none';"> |
---|
24 | <input type="button" id="show" value="Show CKEditor" onclick="document.getElementById('container').style.display='block';"> |
---|
25 | </p> |
---|
26 | </div> |
---|
27 | <div id='container'> |
---|
28 | <textarea cols="80" id="editor1" name="editor1" rows="10"> |
---|
29 | <b>Some default text in the editor.</b> |
---|
30 | <i>This text will be visible when you first load the editor.</i> |
---|
31 | But this text will not be visible after running through the steps listed above the editor. |
---|
32 | </textarea> |
---|
33 | </div> |
---|
34 | |
---|
35 | <script> |
---|
36 | CKEDITOR.replace( 'editor1' ); |
---|
37 | </script> |
---|
38 | </body> |
---|
39 | </html> |
---|