| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|---|
| 2 | <!-- |
|---|
| 3 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. |
|---|
| 4 | For licensing, see LICENSE.html or http://ckeditor.com/license |
|---|
| 5 | --> |
|---|
| 6 | <html> |
|---|
| 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 | </head> |
|---|
| 12 | <body> |
|---|
| 13 | <center> |
|---|
| 14 | <form id="AddEntry" name="AddEntry" method="POST" action="addentrydb.asp"> |
|---|
| 15 | <textarea name="entrytext" id="entrytext"></textarea> |
|---|
| 16 | <script> |
|---|
| 17 | CKEDITOR.replace("entrytext"); |
|---|
| 18 | CKEDITOR.on('instanceReady', function() { |
|---|
| 19 | alert('loaded'); |
|---|
| 20 | } |
|---|
| 21 | ); |
|---|
| 22 | </script> |
|---|
| 23 | <br> |
|---|
| 24 | <input type=submit value="save" > <input type=button value="cancel" onclick="history.back"> |
|---|
| 25 | </form> |
|---|
| 26 | </center> |
|---|
| 27 | <iframe width=100% src="thisweek2.asp" target="_blank"></iframe> |
|---|
| 28 | </body> |
|---|
| 29 | </html> |
|---|