| 1 | <!DOCTYPE html> |
|---|
| 2 | <!-- |
|---|
| 3 | Copyright (c) 2003-2013, 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 charset="utf-8"> |
|---|
| 10 | <script src="../ckeditor.js"></script> |
|---|
| 11 | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> |
|---|
| 12 | <script src="../adapters/jquery.js"></script> |
|---|
| 13 | <link href="sample.css" rel="stylesheet"> |
|---|
| 14 | <style> #viewbar{ display:none; } </style> |
|---|
| 15 | </head> |
|---|
| 16 | <body> |
|---|
| 17 | <h1 class="samples"> |
|---|
| 18 | <a href="index.html">CKEditor Samples</a> » Replace Textarea Elements Using JavaScript Code |
|---|
| 19 | </h1> |
|---|
| 20 | <form action="sample_posteddata.php" method="post"> |
|---|
| 21 | |
|---|
| 22 | <div id="viewbar" style="display:block;"> |
|---|
| 23 | <textarea id="txa"></textarea> |
|---|
| 24 | </div> |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | <script type="text/javascript"> |
|---|
| 28 | //<![CDATA[ $().ready(function () { |
|---|
| 29 | var editor = $('#txa').ckeditor( function() { }, {}); |
|---|
| 30 | //]]> |
|---|
| 31 | </script> |
|---|
| 32 | |
|---|
| 33 | <p> |
|---|
| 34 | <input type="submit" value="Submit"> |
|---|
| 35 | </p> |
|---|
| 36 | </form> |
|---|
| 37 | <div id="footer"> |
|---|
| 38 | <hr> |
|---|
| 39 | <p> |
|---|
| 40 | CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> |
|---|
| 41 | </p> |
|---|
| 42 | <p id="copy"> |
|---|
| 43 | Copyright © 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico |
|---|
| 44 | Knabben. All rights reserved. |
|---|
| 45 | </p> |
|---|
| 46 | </div> |
|---|
| 47 | </body> |
|---|
| 48 | </html> |
|---|