| 1 | <!DOCTYPE html> |
|---|
| 2 | <html> |
|---|
| 3 | <head> |
|---|
| 4 | <title>IE11 bug example</title> |
|---|
| 5 | <meta charset="utf-8"> |
|---|
| 6 | <script src="../ckeditor.js"></script> |
|---|
| 7 | <script> |
|---|
| 8 | var showEditor = false; |
|---|
| 9 | function toggleEditor() { |
|---|
| 10 | var divEditor1 = document.getElementById('div_editor1'); |
|---|
| 11 | var divEditor2 = document.getElementById('div_editor2'); |
|---|
| 12 | if (showEditor == false) { |
|---|
| 13 | divEditor1.style.display = 'block'; |
|---|
| 14 | divEditor2.style.display = 'none'; |
|---|
| 15 | showEditor = true; |
|---|
| 16 | } else { |
|---|
| 17 | divEditor1.style.display = 'none'; |
|---|
| 18 | divEditor2.style.display = 'block'; |
|---|
| 19 | showEditor = false; |
|---|
| 20 | } |
|---|
| 21 | } |
|---|
| 22 | </script> |
|---|
| 23 | </head> |
|---|
| 24 | <body> |
|---|
| 25 | |
|---|
| 26 | <a href="javascript:void(0)" onclick="toggleEditor()">show/hide</a> |
|---|
| 27 | |
|---|
| 28 | <div id="div_editor1" style="display:none;"> |
|---|
| 29 | <h1>Editor 1</h1> |
|---|
| 30 | <textarea cols="80" id="editor1" name="editor1" rows="10"><p>test text</p></textarea> |
|---|
| 31 | <script>CKEDITOR.replace( 'editor1' );</script> |
|---|
| 32 | </div> |
|---|
| 33 | |
|---|
| 34 | <div id="div_editor2" style="display:none;"> |
|---|
| 35 | <h1>Editor 2</h1> |
|---|
| 36 | <textarea cols="80" id="editor2" name="editor1" rows="10"><p>test text</p></textarea> |
|---|
| 37 | <script>CKEDITOR.replace( 'editor2' );</script> |
|---|
| 38 | </div> |
|---|
| 39 | |
|---|
| 40 | </body> |
|---|
| 41 | </html> |
|---|