1 | <html> |
---|
2 | <head> |
---|
3 | <title>A Simple Page with CKEditor</title> |
---|
4 | <META HTTP-EQUIV="X-UA-Compatible" content="IE=EmulateIE9"> |
---|
5 | <!-- Make sure the path to CKEditor is correct. --> |
---|
6 | <script src="https://cdn.ckeditor.com/4.6.2/full/ckeditor.js"></script> |
---|
7 | </head> |
---|
8 | <body> |
---|
9 | <form> |
---|
10 | <textarea name="editor1" id="editor1" rows="10" cols="80"> |
---|
11 | This is my textarea to be replaced with CKEditor. |
---|
12 | </textarea> |
---|
13 | <script> |
---|
14 | // Replace the <textarea id="editor1"> with a CKEditor |
---|
15 | // instance, using default configuration. |
---|
16 | CKEDITOR.replace( 'editor1' ); |
---|
17 | </script> |
---|
18 | </form> |
---|
19 | </body> |
---|
20 | </html> |
---|