Built motion from commit 99feb03.|0.0.140
[motion.git] / public / assets / plugins / ckeditor / samples / old / tableresize / tableresize.html
1 <!DOCTYPE html>\r
2 <!--\r
3 Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.\r
4 For licensing, see LICENSE.md or http://ckeditor.com/license\r
5 -->\r
6 <html>\r
7 <head>\r
8         <meta charset="utf-8">\r
9         <title>Using TableResize Plugin &mdash; CKEditor Sample</title>\r
10         <script src="../../../ckeditor.js"></script>\r
11         <link rel="stylesheet" href="../../../samples/old/sample.css">\r
12         <meta name="ckeditor-sample-name" content="TableResize plugin">\r
13         <meta name="ckeditor-sample-group" content="Plugins">\r
14         <meta name="ckeditor-sample-description" content="Using the TableResize plugin to enable table column resizing.">\r
15 </head>\r
16 <body>\r
17         <h1 class="samples">\r
18                 <a href="../../../samples/old/index.html">CKEditor Samples</a> &raquo; Using the TableResize Plugin\r
19         </h1>\r
20         <div class="warning deprecated">\r
21                 This sample is not maintained anymore. Check out its <a href="http://sdk.ckeditor.com/samples/table.html">brand new version in CKEditor SDK</a>.\r
22         </div>\r
23         <div class="description">\r
24                 <p>\r
25                         This sample shows how to configure CKEditor instances to use the\r
26                         <strong>TableResize</strong> (<code>tableresize</code>) plugin that allows\r
27                         the user to edit table columns by using the mouse.\r
28                 </p>\r
29                 <p>\r
30                         The TableResize plugin makes it possible to modify table column width. Hover\r
31                         your mouse over the column border to see the cursor change to indicate that\r
32                         the column can be resized. Click and drag your mouse to set the desired width.\r
33                 </p>\r
34                 <p>\r
35                         By default the plugin is turned off. To add a CKEditor instance using the\r
36                         TableResize plugin, insert the following JavaScript call into your code:\r
37                 </p>\r
38 <pre class="samples">\r
39 CKEDITOR.replace( '<em>textarea_id</em>', {\r
40         <strong>extraPlugins: 'tableresize'</strong>\r
41 });</pre>\r
42                 <p>\r
43                         Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of\r
44                         the <code>&lt;textarea&gt;</code> element to be replaced with CKEditor.\r
45                 </p>\r
46         </div>\r
47         <form action="../../../samples/sample_posteddata.php" method="post">\r
48                 <p>\r
49                         <label for="editor1">\r
50                                 CKEditor using the <code>tableresize</code> plugin:\r
51                         </label>\r
52                         <textarea cols="80" id="editor1" name="editor1" rows="10">\r
53                                 &lt;table style="width: 500px;" border="1"&gt;\r
54                                         &lt;caption&gt;\r
55                                                 A sample table&lt;/caption&gt;\r
56                                         &lt;tbody&gt;\r
57                                                 &lt;tr&gt;\r
58                                                         &lt;td&gt;\r
59                                                                 Column 1&lt;/td&gt;\r
60                                                         &lt;td&gt;\r
61                                                                 Column 2&lt;/td&gt;\r
62                                                 &lt;/tr&gt;\r
63                                                 &lt;tr&gt;\r
64                                                         &lt;td&gt;\r
65                                                                 You can resize a table column.&lt;/td&gt;\r
66                                                         &lt;td&gt;\r
67                                                                 Hover your mouse over its border.&lt;/td&gt;\r
68                                                 &lt;/tr&gt;\r
69                                                 &lt;tr&gt;\r
70                                                         &lt;td&gt;\r
71                                                                 Watch the cursor change.&lt;/td&gt;\r
72                                                         &lt;td&gt;\r
73                                                                 Now click and drag to resize.&lt;/td&gt;\r
74                                                 &lt;/tr&gt;\r
75                                         &lt;/tbody&gt;\r
76                                 &lt;/table&gt;\r
77                         </textarea>\r
78                         <script>\r
79 \r
80                                 // This call can be placed at any point after the\r
81                                 // <textarea>, or inside a <head><script> in a\r
82                                 // window.onload event handler.\r
83 \r
84                                 // Replace the <textarea id="editor"> with an CKEditor\r
85                                 // instance, using default configurations.\r
86                                 CKEDITOR.replace( 'editor1', {\r
87                                         extraPlugins: 'tableresize'\r
88                                 });\r
89 \r
90                         </script>\r
91                 </p>\r
92                 <p>\r
93                         <input type="submit" value="Submit">\r
94                 </p>\r
95         </form>\r
96         <div id="footer">\r
97                 <hr>\r
98                 <p>\r
99                         CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>\r
100                 </p>\r
101                 <p id="copy">\r
102                         Copyright &copy; 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico\r
103                         Knabben. All rights reserved.\r
104                 </p>\r
105         </div>\r
106 </body>\r
107 </html>\r