1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
2 | <html lang="en"> |
---|
3 | <head> |
---|
4 | <title>CKEditor Test</title> |
---|
5 | <script type="text/javascript" src="http://rev.ckeditor.com/ckeditor/trunk/7551/ckeditor.js"></script> |
---|
6 | </head> |
---|
7 | <body> |
---|
8 | <div id="main"> |
---|
9 | <div id="editor"></div> |
---|
10 | </div> |
---|
11 | |
---|
12 | <input type="button" onclick="document.getElementById('main').style.display='none';" value="Hide"></input> |
---|
13 | <input type="button" onclick="editor.setData('<p>Test</p>');" value="call setData();"></input> |
---|
14 | |
---|
15 | </body> |
---|
16 | <script type="text/javascript"> |
---|
17 | var editor = CKEDITOR.replace('editor', {extraPlugins: 'autogrow'}); |
---|
18 | </script> |
---|
19 | </html> |
---|