1 | <!DOCTYPE html> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <script type="text/javascript" src="../ckeditor.js"></script> |
---|
5 | <title>CKEditor Example</title> |
---|
6 | </head> |
---|
7 | |
---|
8 | <body style="font-family: Arial, Helvetica, sans-serif; font-size: 9pt; color: #444;"> |
---|
9 | <h3>CKEditor Example</h3> |
---|
10 | <textarea id="textarea"></textarea> |
---|
11 | <input type="button" value="getData()" onclick="alert(editor.getData())" /> |
---|
12 | <input type="button" value="Clear" onclick="editor.setData('')" /> |
---|
13 | <script type="text/javascript"> |
---|
14 | var editor; |
---|
15 | window.onload = function () |
---|
16 | { |
---|
17 | var config = |
---|
18 | { |
---|
19 | //extraAllowedContent: "img[*]", |
---|
20 | //removePlugins: 'image' |
---|
21 | //removeButtons : 'Image', |
---|
22 | extraPlugins: 'divarea' |
---|
23 | }; |
---|
24 | editor = CKEDITOR.replace(document.getElementById("textarea"), config); |
---|
25 | }; |
---|
26 | </script> |
---|
27 | </body> |
---|
28 | |
---|
29 | </html> |
---|