1 | <!DOCTYPE html> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <meta charset="utf-8"> |
---|
5 | <title>A Simple Page with CKEditor</title> |
---|
6 | <!-- Make sure the path to CKEditor is correct. --> |
---|
7 | <script src="bower_components/ckeditor/ckeditor.js"></script> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <form> |
---|
11 | <textarea name="editor1" id="editor1" rows="10" cols="80"> |
---|
12 | This is my textarea to be replaced with CKEditor. |
---|
13 | </textarea> |
---|
14 | <script> |
---|
15 | // Replace the <textarea id="editor1"> with a CKEditor |
---|
16 | // instance, using default configuration. |
---|
17 | CKEDITOR.replace( 'editor1' ); |
---|
18 | </script> |
---|
19 | </form> |
---|
20 | </body> |
---|
21 | </html> |
---|
22 | |
---|