| 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 = true; |
|---|
| 9 | function toggleEditor() { |
|---|
| 10 | var divEditor1 = document.getElementById( 'div_editor1' ); |
|---|
| 11 | if ( showEditor == false ) { |
|---|
| 12 | divEditor1.style.display = 'block'; |
|---|
| 13 | showEditor = true; |
|---|
| 14 | } else { |
|---|
| 15 | divEditor1.style.display = 'none'; |
|---|
| 16 | showEditor = false; |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | console.log( 'ed1', document.getElementById( 'editor1' ).innerHTML ); |
|---|
| 20 | } |
|---|
| 21 | </script> |
|---|
| 22 | </head> |
|---|
| 23 | <body> |
|---|
| 24 | |
|---|
| 25 | <p><a href="javascript:void(0)" onclick="toggleEditor()">show/hide</a></p> |
|---|
| 26 | |
|---|
| 27 | <div id="div_editor1"> |
|---|
| 28 | <div id="editor1" contenteditable="true"><p>Foo</p></div> |
|---|
| 29 | </div> |
|---|
| 30 | |
|---|
| 31 | </body> |
|---|
| 32 | </html> |
|---|