1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
4 | <html xmlns="http://www.w3.org/1999/xhtml" |
---|
5 | xmlns:h="http://java.sun.com/jsf/html" |
---|
6 | xmlns:f="http://java.sun.com/jsf/core"> |
---|
7 | <h:head> |
---|
8 | <h:outputScript library="ckeditor" name="ckeditor.js" /> |
---|
9 | </h:head> |
---|
10 | <h:body> |
---|
11 | <textarea name="editor1" id="editor1" rows="10" cols="80"> |
---|
12 | This is my textarea to be replaced with CKEditor. |
---|
13 | </textarea> |
---|
14 | <script type="text/javascript"> |
---|
15 | // Replace the <textarea id="editor1"> with a CKEditor |
---|
16 | // instance, using default configuration. |
---|
17 | CKEDITOR.replace('editor1'); |
---|
18 | </script> |
---|
19 | </h:body> |
---|
20 | </html> |
---|