1 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
2 | <head> |
---|
3 | <title>Replace Textarea by Code — CKEditor Sample</title> |
---|
4 | <meta content="text/html; charset=utf-8" http-equiv="content-type" /> |
---|
5 | <script type="text/javascript" src="../ckeditor.js"></script> |
---|
6 | <script src="sample.js" type="text/javascript"></script> |
---|
7 | <link href="sample.css" rel="stylesheet" type="text/css" /> |
---|
8 | <script language="JavaScript"> |
---|
9 | document.domain = 'dragonus.local.pl'; |
---|
10 | </script> |
---|
11 | </head> |
---|
12 | <body> |
---|
13 | <textarea id="editor1"><p>Foo</p></textarea> |
---|
14 | <script> |
---|
15 | CKEDITOR.config.forceCustomDomain = true; |
---|
16 | CKEDITOR.replace( 'editor1' ); |
---|
17 | </script> |
---|
18 | </body> |
---|
19 | </html> |
---|