| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 2 | <html> |
|---|
| 3 | <head> |
|---|
| 4 | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> |
|---|
| 5 | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script> |
|---|
| 6 | <meta content="text/html; charset=utf-8" http-equiv="content-type" /> |
|---|
| 7 | <script type="text/javascript" src="http://ckeditor.com/apps/ckeditor/3.6.1/ckeditor.js?1311599564"></script> |
|---|
| 8 | </head> |
|---|
| 9 | <body id="mybody"> |
|---|
| 10 | <form action="#" onsubmit="return runTest();" method="get"> |
|---|
| 11 | <textarea cols="80" id="editor2" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea> |
|---|
| 12 | <input type="submit" accesskey="s" value="Submit" /> |
|---|
| 13 | </form> |
|---|
| 14 | <script type="text/javascript"> |
|---|
| 15 | var e = CKEDITOR.replace( 'editor1' ,{ |
|---|
| 16 | bodyId : "myBodyId" |
|---|
| 17 | }); |
|---|
| 18 | |
|---|
| 19 | function runTest() |
|---|
| 20 | { |
|---|
| 21 | alert('submitted'); |
|---|
| 22 | return false; |
|---|
| 23 | } |
|---|
| 24 | </script> |
|---|
| 25 | |
|---|
| 26 | </body> |
|---|
| 27 | </html> |
|---|