Mercurial > hg > rr-repo
comparison sites/all/libraries/ckeditor/_samples/tableresize.html @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ff03f76ab3fe |
---|---|
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-2013, 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>Using TableResize Plugin — 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 <script src="sample.js" type="text/javascript"></script> | |
12 <link href="sample.css" rel="stylesheet" type="text/css" /> | |
13 </head> | |
14 <body> | |
15 <h1 class="samples"> | |
16 CKEditor Sample — Using the TableResize Plugin | |
17 </h1> | |
18 <div class="description"> | |
19 <p> | |
20 This sample shows how to configure CKEditor instances to use the | |
21 <strong>TableResize</strong> (<code>tableresize</code>) plugin that allows | |
22 the user to edit table columns by using the mouse. | |
23 </p> | |
24 <p> | |
25 The TableResize plugin makes it possible to modify table column width. Hover | |
26 your mouse over the column border to see the cursor change to indicate that | |
27 the column can be resized. Click and drag your mouse to set the desired width. | |
28 </p> | |
29 <p> | |
30 By default the plugin is turned off. To add a CKEditor instance using the | |
31 TableResize plugin, insert the following JavaScript call into your code: | |
32 </p> | |
33 <pre class="samples">CKEDITOR.replace( '<em>textarea_id</em>', | |
34 { | |
35 <strong>extraPlugins : 'tableresize'</strong> | |
36 });</pre> | |
37 <p> | |
38 Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of | |
39 the <code><textarea></code> element to be replaced with CKEditor. | |
40 </p> | |
41 </div> | |
42 <!-- This <div> holds alert messages to be display in the sample page. --> | |
43 <div id="alerts"> | |
44 <noscript> | |
45 <p> | |
46 <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript | |
47 support, like yours, you should still see the contents (HTML data) and you should | |
48 be able to edit it normally, without a rich editor interface. | |
49 </p> | |
50 </noscript> | |
51 </div> | |
52 <form action="sample_posteddata.php" method="post"> | |
53 <p> | |
54 <label for="editor1"> | |
55 CKEditor using the <code>tableresize</code> plugin:</label> | |
56 <textarea cols="80" id="editor1" name="editor1" rows="10"> | |
57 <table style="width: 500px;"> | |
58 <caption> | |
59 A sample table</caption> | |
60 <tbody> | |
61 <tr> | |
62 <td> | |
63 Column 1</td> | |
64 <td> | |
65 Column 2</td> | |
66 </tr> | |
67 <tr> | |
68 <td> | |
69 You can resize a table column.</td> | |
70 <td> | |
71 Hover your mouse over its border.</td> | |
72 </tr> | |
73 <tr> | |
74 <td> | |
75 Watch the cursor change.</td> | |
76 <td> | |
77 Now click and drag to resize.</td> | |
78 </tr> | |
79 </tbody> | |
80 </table> | |
81 | |
82 | |
83 </textarea> | |
84 <script type="text/javascript"> | |
85 //<![CDATA[ | |
86 | |
87 // This call can be placed at any point after the | |
88 // <textarea>, or inside a <head><script> in a | |
89 // window.onload event handler. | |
90 | |
91 // Replace the <textarea id="editor"> with an CKEditor | |
92 // instance, using default configurations. | |
93 CKEDITOR.replace( 'editor1', { | |
94 extraPlugins : 'tableresize' | |
95 }); | |
96 | |
97 //]]> | |
98 </script> | |
99 </p> | |
100 <p> | |
101 <input type="submit" value="Submit" /> | |
102 </p> | |
103 </form> | |
104 <div id="footer"> | |
105 <hr /> | |
106 <p> | |
107 CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> | |
108 </p> | |
109 <p id="copy"> | |
110 Copyright © 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico | |
111 Knabben. All rights reserved. | |
112 </p> | |
113 </div> | |
114 </body> | |
115 </html> |