]> git.immae.eu Git - perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git/blame - release/samples/old/magicline/magicline.html
Upgrade to 4.5.7 and add some plugin
[perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git] / release / samples / old / magicline / magicline.html
CommitLineData
7adcb81e
IB
1<!DOCTYPE html>\r
2<!--\r
3b35bd27 3Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.\r
7adcb81e
IB
4For 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 Magicline 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="Magicline plugin">\r
13 <meta name="ckeditor-sample-group" content="Plugins">\r
14 <meta name="ckeditor-sample-description" content="Using the Magicline plugin to access difficult focus spaces.">\r
15</head>\r
16<body>\r
17 <h1 class="samples">\r
18 <a href="../../../samples/old/index.html">CKEditor Samples</a> &raquo; Using Magicline 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/magicline.html">brand new version in CKEditor SDK</a>.\r
22 </div>\r
23 <div class="description">\r
24 <p>\r
25 This sample shows the advantages of <strong>Magicline</strong> plugin\r
26 which is to enhance the editing process. Thanks to this plugin,\r
27 a number of difficult focus spaces which are inaccessible due to\r
28 browser issues can now be focused.\r
29 </p>\r
30 <p>\r
31 <strong>Magicline</strong> plugin shows a red line with a handler\r
32 which, when clicked, inserts a paragraph and allows typing. To see this,\r
33 focus an editor and move your mouse above the focus space you want\r
34 to access. The plugin is enabled by default so no additional\r
35 configuration is necessary.\r
36 </p>\r
37 </div>\r
38 <div>\r
39 <label for="editor1">\r
40 Editor 1:\r
41 </label>\r
42 <div class="description">\r
43 <p>\r
44 This editor uses a default <strong>Magicline</strong> setup.\r
45 </p>\r
46 </div>\r
47 <textarea cols="80" id="editor1" name="editor1" rows="10">\r
48 &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt;\r
49 &lt;tbody&gt;\r
50 &lt;tr&gt;\r
51 &lt;td&gt;This table&lt;/td&gt;\r
52 &lt;td&gt;is the&lt;/td&gt;\r
53 &lt;td&gt;very first&lt;/td&gt;\r
54 &lt;td&gt;element of the document.&lt;/td&gt;\r
55 &lt;/tr&gt;\r
56 &lt;tr&gt;\r
57 &lt;td&gt;We are still&lt;/td&gt;\r
58 &lt;td&gt;able to acces&lt;/td&gt;\r
59 &lt;td&gt;the space before it.&lt;/td&gt;\r
60 &lt;td&gt;\r
61 &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt;\r
62 &lt;tbody&gt;\r
63 &lt;tr&gt;\r
64 &lt;td&gt;This table is inside of a cell of another table.&lt;/td&gt;\r
65 &lt;/tr&gt;\r
66 &lt;tr&gt;\r
67 &lt;td&gt;We can type&amp;nbsp;either before or after it though.&lt;/td&gt;\r
68 &lt;/tr&gt;\r
69 &lt;/tbody&gt;\r
70 &lt;/table&gt;\r
71 &lt;/td&gt;\r
72 &lt;/tr&gt;\r
73 &lt;/tbody&gt;\r
74 &lt;/table&gt;\r
75\r
76 &lt;p&gt;Two succesive horizontal lines (&lt;tt&gt;HR&lt;/tt&gt; tags). We can access the space in between:&lt;/p&gt;\r
77\r
78 &lt;hr /&gt;\r
79 &lt;hr /&gt;\r
80 &lt;ol&gt;\r
81 &lt;li&gt;This numbered list...&lt;/li&gt;\r
82 &lt;li&gt;...is a neighbour of a horizontal line...&lt;/li&gt;\r
83 &lt;li&gt;...and another list.&lt;/li&gt;\r
84 &lt;/ol&gt;\r
85\r
86 &lt;ul&gt;\r
87 &lt;li&gt;We can type between the lists...&lt;/li&gt;\r
88 &lt;li&gt;...thanks to &lt;strong&gt;Magicline&lt;/strong&gt;.&lt;/li&gt;\r
89 &lt;/ul&gt;\r
90\r
91 &lt;p&gt;Lorem ipsum dolor sit amet dui. Morbi vel turpis. Nullam et leo. Etiam rutrum, urna tellus dui vel tincidunt mattis egestas, justo fringilla vel, massa. Phasellus.&lt;/p&gt;\r
92\r
93 &lt;p&gt;Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.&lt;/p&gt;\r
94\r
95 &lt;p&gt;Ut pretium. Vestibulum rutrum in, adipiscing elit. Sed in quam in purus sem vitae pede. Pellentesque bibendum, urna sem vel risus. Vivamus posuere metus. Aliquam gravida iaculis nisl. Nam enim. Aliquam erat ac lacus tellus ac felis.&lt;/p&gt;\r
96\r
97 &lt;div style=&quot;border: 2px dashed green; background: #ddd; text-align: center;&quot;&gt;\r
98 &lt;p&gt;This text is wrapped in a&amp;nbsp;&lt;tt&gt;DIV&lt;/tt&gt;&amp;nbsp;element. We can type after this element though.&lt;/p&gt;\r
99 &lt;/div&gt;\r
100 </textarea>\r
101 <script>\r
102\r
103 // This call can be placed at any point after the\r
104 // <textarea>, or inside a <head><script> in a\r
105 // window.onload event handler.\r
106\r
107 CKEDITOR.replace( 'editor1', {\r
108 extraPlugins: 'magicline', // Ensure that magicline plugin, which is required for this sample, is loaded.\r
109 allowedContent: true // Switch off the ACF, so very complex content created to\r
110 // show magicline's power isn't filtered.\r
111 } );\r
112\r
113 </script>\r
114 </div>\r
115 <br>\r
116 <div>\r
117 <label for="editor2">\r
118 Editor 2:\r
119 </label>\r
120 <div class="description">\r
121 <p>\r
122 This editor is using a blue line.\r
123 </p>\r
124<pre class="samples">\r
125CKEDITOR.replace( 'editor2', {\r
126 magicline_color: 'blue'\r
127});</pre>\r
128 </div>\r
129 <textarea cols="80" id="editor2" name="editor2" rows="10">\r
130 &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt;\r
131 &lt;tbody&gt;\r
132 &lt;tr&gt;\r
133 &lt;td&gt;This table&lt;/td&gt;\r
134 &lt;td&gt;is the&lt;/td&gt;\r
135 &lt;td&gt;very first&lt;/td&gt;\r
136 &lt;td&gt;element of the document.&lt;/td&gt;\r
137 &lt;/tr&gt;\r
138 &lt;tr&gt;\r
139 &lt;td&gt;We are still&lt;/td&gt;\r
140 &lt;td&gt;able to acces&lt;/td&gt;\r
141 &lt;td&gt;the space before it.&lt;/td&gt;\r
142 &lt;td&gt;\r
143 &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt;\r
144 &lt;tbody&gt;\r
145 &lt;tr&gt;\r
146 &lt;td&gt;This table is inside of a cell of another table.&lt;/td&gt;\r
147 &lt;/tr&gt;\r
148 &lt;tr&gt;\r
149 &lt;td&gt;We can type&amp;nbsp;either before or after it though.&lt;/td&gt;\r
150 &lt;/tr&gt;\r
151 &lt;/tbody&gt;\r
152 &lt;/table&gt;\r
153 &lt;/td&gt;\r
154 &lt;/tr&gt;\r
155 &lt;/tbody&gt;\r
156 &lt;/table&gt;\r
157\r
158 &lt;p&gt;Two succesive horizontal lines (&lt;tt&gt;HR&lt;/tt&gt; tags). We can access the space in between:&lt;/p&gt;\r
159\r
160 &lt;hr /&gt;\r
161 &lt;hr /&gt;\r
162 &lt;ol&gt;\r
163 &lt;li&gt;This numbered list...&lt;/li&gt;\r
164 &lt;li&gt;...is a neighbour of a horizontal line...&lt;/li&gt;\r
165 &lt;li&gt;...and another list.&lt;/li&gt;\r
166 &lt;/ol&gt;\r
167\r
168 &lt;ul&gt;\r
169 &lt;li&gt;We can type between the lists...&lt;/li&gt;\r
170 &lt;li&gt;...thanks to &lt;strong&gt;Magicline&lt;/strong&gt;.&lt;/li&gt;\r
171 &lt;/ul&gt;\r
172\r
173 &lt;p&gt;Lorem ipsum dolor sit amet dui. Morbi vel turpis. Nullam et leo. Etiam rutrum, urna tellus dui vel tincidunt mattis egestas, justo fringilla vel, massa. Phasellus.&lt;/p&gt;\r
174\r
175 &lt;p&gt;Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.&lt;/p&gt;\r
176\r
177 &lt;p&gt;Ut pretium. Vestibulum rutrum in, adipiscing elit. Sed in quam in purus sem vitae pede. Pellentesque bibendum, urna sem vel risus. Vivamus posuere metus. Aliquam gravida iaculis nisl. Nam enim. Aliquam erat ac lacus tellus ac felis.&lt;/p&gt;\r
178\r
179 &lt;div style=&quot;border: 2px dashed green; background: #ddd; text-align: center;&quot;&gt;\r
180 &lt;p&gt;This text is wrapped in a&amp;nbsp;&lt;tt&gt;DIV&lt;/tt&gt;&amp;nbsp;element. We can type after this element though.&lt;/p&gt;\r
181 &lt;/div&gt;\r
182 </textarea>\r
183 <script>\r
184\r
185 // This call can be placed at any point after the\r
186 // <textarea>, or inside a <head><script> in a\r
187 // window.onload event handler.\r
188\r
189 CKEDITOR.replace( 'editor2', {\r
190 extraPlugins: 'magicline', // Ensure that magicline plugin, which is required for this sample, is loaded.\r
191 magicline_color: 'blue', // Blue line\r
192 allowedContent: true // Switch off the ACF, so very complex content created to\r
193 // show magicline's power isn't filtered.\r
194 });\r
195\r
196 </script>\r
197 </div>\r
198 <div id="footer">\r
199 <hr>\r
200 <p>\r
201 CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>\r
202 </p>\r
203 <p id="copy">\r
3b35bd27 204 Copyright &copy; 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico\r
7adcb81e
IB
205 Knabben. All rights reserved.\r
206 </p>\r
207 </div>\r
208</body>\r
209</html>\r