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