| 1 | <!DOCTYPE html> |
|---|
| 2 | |
|---|
| 3 | <html> |
|---|
| 4 | |
|---|
| 5 | <head> |
|---|
| 6 | <title>test1</title> |
|---|
| 7 | <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script> |
|---|
| 8 | <script src="../../ckeditor.js"></script> |
|---|
| 9 | </head> |
|---|
| 10 | <body> |
|---|
| 11 | <iframe frameborder="0" name="ifr" id="ifr" width="100%" height="900" src="mytest2.html"></iframe> |
|---|
| 12 | <script> |
|---|
| 13 | |
|---|
| 14 | $(document).ready( |
|---|
| 15 | |
|---|
| 16 | function(){ |
|---|
| 17 | |
|---|
| 18 | ifr.onload=function(){ |
|---|
| 19 | console.log(ifr); |
|---|
| 20 | |
|---|
| 21 | var ed1 = CKEDITOR.inline(document.getElementById('ifr').contentWindow.document.getElementById('editorx1')); |
|---|
| 22 | |
|---|
| 23 | // error on drag and drop image if you add this line: |
|---|
| 24 | var ed2 = CKEDITOR.inline(document.getElementById('ifr').contentWindow.document.getElementById('editorx2')); |
|---|
| 25 | |
|---|
| 26 | } |
|---|
| 27 | |
|---|
| 28 | }); |
|---|
| 29 | </script> |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | </body> |
|---|
| 34 | </html> |
|---|