1 | <!DOCTYPE html> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <title></title> |
---|
5 | <meta charset="utf-8"> |
---|
6 | <script src="../ckeditor.js"></script> |
---|
7 | </head> |
---|
8 | <body> |
---|
9 | <div style="display:none" id="hidden"> |
---|
10 | <textarea cols="80" id="editor1" name="editor1" rows="10">text</textarea> |
---|
11 | <script> |
---|
12 | CKEDITOR.replace( 'editor1', { on: { |
---|
13 | instanceReady: function() { |
---|
14 | console.log( 'ready to go!' ); |
---|
15 | } |
---|
16 | } } ); |
---|
17 | </script> |
---|
18 | </div> |
---|
19 | |
---|
20 | <button onclick="document.getElementById('hidden').style.display='block';">Show editor</button> |
---|
21 | </body> |
---|
22 | </html> |
---|