| | 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>TableResize Plugin - CKEditor Sample</title> |
| | 9 | <meta content="text/html; charset=utf-8" http-equiv="content-type" /> |
| | 10 | <!-- CKReleaser %REMOVE_LINE% |
| | 11 | <script type="text/javascript" src="../ckeditor.js"></script> |
| | 12 | CKReleaser %REMOVE_START% --> |
| | 13 | <script type="text/javascript" src="../ckeditor_source.js"></script> |
| | 14 | <!-- CKReleaser %REMOVE_END% --> |
| | 15 | <script src="sample.js" type="text/javascript"></script> |
| | 16 | <link href="sample.css" rel="stylesheet" type="text/css" /> |
| | 17 | </head> |
| | 18 | <body> |
| | 19 | <h1> |
| | 20 | CKEditor Sample |
| | 21 | </h1> |
| | 22 | <!-- This <div> holds alert messages to be display in the sample page. --> |
| | 23 | <div id="alerts"> |
| | 24 | <noscript> |
| | 25 | <p> |
| | 26 | <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript |
| | 27 | support, like yours, you should still see the contents (HTML data) and you should |
| | 28 | be able to edit it normally, without a rich editor interface. |
| | 29 | </p> |
| | 30 | </noscript> |
| | 31 | </div> |
| | 32 | <form action="sample_posteddata.php" method="post"> |
| | 33 | <p> |
| | 34 | In this sample the TableResize plugin is available. It allows easy resizing of table columns.</p> |
| | 35 | <p> |
| | 36 | <label for="editor1"> |
| | 37 | Sample editor:</label><br /> |
| | 38 | <textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p> |
| | 39 | <table style="width: 500px;"> |
| | 40 | <caption> |
| | 41 | A sample table</caption> |
| | 42 | <tbody> |
| | 43 | <tr> |
| | 44 | <td> |
| | 45 | Cell1</td> |
| | 46 | <td> |
| | 47 | Cell2</td> |
| | 48 | </tr> |
| | 49 | <tr> |
| | 50 | <td> |
| | 51 | You can resize these columns</td> |
| | 52 | <td> |
| | 53 | Move the mouse over them</td> |
| | 54 | </tr> |
| | 55 | <tr> |
| | 56 | <td> |
| | 57 | And drag so they are placed</td> |
| | 58 | <td> |
| | 59 | Like you want</td> |
| | 60 | </tr> |
| | 61 | </tbody> |
| | 62 | </table> |
| | 63 | |
| | 64 | |
| | 65 | </textarea> |
| | 66 | <script type="text/javascript"> |
| | 67 | //<![CDATA[ |
| | 68 | |
| | 69 | CKEDITOR.replace( 'editor1', { |
| | 70 | extraPlugins : 'tableresize' |
| | 71 | }); |
| | 72 | |
| | 73 | //]]> |
| | 74 | </script> |
| | 75 | </p> |
| | 76 | <p> |
| | 77 | <input type="submit" value="Submit" /> |
| | 78 | </p> |
| | 79 | </form> |
| | 80 | <div id="footer"> |
| | 81 | <hr /> |
| | 82 | <p> |
| | 83 | CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a> |
| | 84 | </p> |
| | 85 | <p id="copy"> |
| | 86 | Copyright © 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico |
| | 87 | Knabben. All rights reserved. |
| | 88 | </p> |
| | 89 | </div> |
| | 90 | </body> |
| | 91 | </html> |