1 | <? |
---|
2 | header('Content-Type: application/xhtml+xml; charset=utf-8'); |
---|
3 | echo '<'.'?xml version="1.0" encoding="UTF-8"?'.'>'; |
---|
4 | ?> |
---|
5 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> |
---|
6 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
7 | <head> |
---|
8 | <script type="text/javascript" src="../../fckeditor.js"></script> |
---|
9 | </head> |
---|
10 | <body> |
---|
11 | <div id="editordiv"></div> |
---|
12 | |
---|
13 | <script type="text/javascript"> |
---|
14 | var oFCKeditor = new FCKeditor('content'); oFCKeditor.BasePath = "../../"; |
---|
15 | oFCKeditor.Value = ''; |
---|
16 | |
---|
17 | //oFCKeditor.Create() = document.write( this.CreateHtml() ) ; but you can't use document.write. |
---|
18 | |
---|
19 | var a = oFCKeditor.CreateHtml(); |
---|
20 | document.getElementById('editordiv').innerHTML = a; |
---|
21 | |
---|
22 | </script> |
---|
23 | |
---|
24 | </body> |
---|
25 | </html> |
---|