| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 2 | <!-- |
|---|
| 3 | Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. |
|---|
| 4 | For licensing, see LICENSE.html or http://ckeditor.com/license |
|---|
| 5 | --> |
|---|
| 6 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 7 | <head> |
|---|
| 8 | <title>Replace Textarea by Code - CKEditor Sample</title> |
|---|
| 9 | <meta content="text/html; charset=utf-8" http-equiv="content-type" /> |
|---|
| 10 | <script type="text/javascript" src="../ckeditor.js"></script> |
|---|
| 11 | <script src="sample.js" type="text/javascript"></script> |
|---|
| 12 | <link href="sample.css" rel="stylesheet" type="text/css" /> |
|---|
| 13 | </head> |
|---|
| 14 | <body> |
|---|
| 15 | <form action="sample_posteddata.php" method="post"> |
|---|
| 16 | <p> |
|---|
| 17 | <label for="editor1"> |
|---|
| 18 | Editor 1:</label><br /> |
|---|
| 19 | |
|---|
| 20 | <div id="editor1" name="editor1"></div> |
|---|
| 21 | <script type="text/javascript"> |
|---|
| 22 | |
|---|
| 23 | var config, html = ''; |
|---|
| 24 | var e = CKEDITOR.appendTo( 'editor1', config, html ); |
|---|
| 25 | setTimeout(function(){ |
|---|
| 26 | document.getElementById('editor1').style.display = 'none'; |
|---|
| 27 | setTimeout(function(){document.getElementById('editor1').style.display = 'block';},1000); |
|---|
| 28 | },5000); |
|---|
| 29 | |
|---|
| 30 | </script> |
|---|
| 31 | </p> |
|---|
| 32 | |
|---|
| 33 | <input type="submit" value="Submit" /> |
|---|
| 34 | </p> |
|---|
| 35 | </form> |
|---|
| 36 | |
|---|
| 37 | </body> |
|---|
| 38 | </html> |
|---|