1 | <html> |
---|
2 | <head> |
---|
3 | <script type="text/javascript" src="ckeditor/ckeditor.js"></script> |
---|
4 | <script type="text/javascript" src="ckeditor/skins/lotus21/skin.js"></script> |
---|
5 | <link href="ckeditor/skins/lotus21/editor.css" type="text/css" rel="stylesheet"> |
---|
6 | </head> |
---|
7 | <body> |
---|
8 | <div id="divContainer"> |
---|
9 | |
---|
10 | <textarea id="mytextA"></textarea> |
---|
11 | </div> |
---|
12 | <script type="text/javascript"> |
---|
13 | |
---|
14 | CKEDITOR.replace( 'mytextA', |
---|
15 | { |
---|
16 | fullPage : true |
---|
17 | }); |
---|
18 | |
---|
19 | function showEditor(){ |
---|
20 | document.getElementById("divContainer").style.display = "block"; |
---|
21 | } |
---|
22 | |
---|
23 | function hideEditor(){ |
---|
24 | document.getElementById("divContainer").style.display = "none"; |
---|
25 | } |
---|
26 | </script> |
---|
27 | <button onclick="showEditor()"> show Editor</button> |
---|
28 | <button onclick="hideEditor()"> hide Editor</button> |
---|
29 | |
---|
30 | </body> |
---|
31 | </html> |
---|