800fbb3b186d0748adcb39e0c5152244f542af7c
[ckeditor.git] / skins / ckeditor / samples / plugins / magicline / magicline.html
1 <!DOCTYPE html>
2 <!--
3 Copyright (c) 2003-2014, 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 Magicline plugin &mdash; CKEditor Sample</title>
10 <script src="../../../ckeditor.js"></script>
11 <link rel="stylesheet" href="../../../samples/sample.css">
12 <meta name="ckeditor-sample-name" content="Magicline plugin">
13 <meta name="ckeditor-sample-group" content="Plugins">
14 <meta name="ckeditor-sample-description" content="Using the Magicline plugin to access difficult focus spaces.">
15 </head>
16 <body>
17 <h1 class="samples">
18 <a href="../../../samples/index.html">CKEditor Samples</a> &raquo; Using Magicline plugin
19 </h1>
20 <div class="description">
21 <p>
22 This sample shows the advantages of <strong>Magicline</strong> plugin
23 which is to enhance the editing process. Thanks to this plugin,
24 a number of difficult focus spaces which are inaccessible due to
25 browser issues can now be focused.
26 </p>
27 <p>
28 <strong>Magicline</strong> plugin shows a red line with a handler
29 which, when clicked, inserts a paragraph and allows typing. To see this,
30 focus an editor and move your mouse above the focus space you want
31 to access. The plugin is enabled by default so no additional
32 configuration is necessary.
33 </p>
34 </div>
35 <div>
36 <label for="editor1">
37 Editor 1:
38 </label>
39 <div class="description">
40 <p>
41 This editor uses a default <strong>Magicline</strong> setup.
42 </p>
43 </div>
44 <textarea cols="80" id="editor1" name="editor1" rows="10">
45 &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt;
46 &lt;tbody&gt;
47 &lt;tr&gt;
48 &lt;td&gt;This table&lt;/td&gt;
49 &lt;td&gt;is the&lt;/td&gt;
50 &lt;td&gt;very first&lt;/td&gt;
51 &lt;td&gt;element of the document.&lt;/td&gt;
52 &lt;/tr&gt;
53 &lt;tr&gt;
54 &lt;td&gt;We are still&lt;/td&gt;
55 &lt;td&gt;able to acces&lt;/td&gt;
56 &lt;td&gt;the space before it.&lt;/td&gt;
57 &lt;td&gt;
58 &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt;
59 &lt;tbody&gt;
60 &lt;tr&gt;
61 &lt;td&gt;This table is inside of a cell of another table.&lt;/td&gt;
62 &lt;/tr&gt;
63 &lt;tr&gt;
64 &lt;td&gt;We can type&amp;nbsp;either before or after it though.&lt;/td&gt;
65 &lt;/tr&gt;
66 &lt;/tbody&gt;
67 &lt;/table&gt;
68 &lt;/td&gt;
69 &lt;/tr&gt;
70 &lt;/tbody&gt;
71 &lt;/table&gt;
72
73 &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;
74
75 &lt;hr /&gt;
76 &lt;hr /&gt;
77 &lt;ol&gt;
78 &lt;li&gt;This numbered list...&lt;/li&gt;
79 &lt;li&gt;...is a neighbour of a horizontal line...&lt;/li&gt;
80 &lt;li&gt;...and another list.&lt;/li&gt;
81 &lt;/ol&gt;
82
83 &lt;ul&gt;
84 &lt;li&gt;We can type between the lists...&lt;/li&gt;
85 &lt;li&gt;...thanks to &lt;strong&gt;Magicline&lt;/strong&gt;.&lt;/li&gt;
86 &lt;/ul&gt;
87
88 &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;
89
90 &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;
91
92 &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;
93
94 &lt;div style=&quot;border: 2px dashed green; background: #ddd; text-align: center;&quot;&gt;
95 &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;
96 &lt;/div&gt;
97 </textarea>
98 <script>
99
100 // This call can be placed at any point after the
101 // <textarea>, or inside a <head><script> in a
102 // window.onload event handler.
103
104 CKEDITOR.replace( 'editor1', {
105 extraPlugins: 'magicline', // Ensure that magicline plugin, which is required for this sample, is loaded.
106 allowedContent: true // Switch off the ACF, so very complex content created to
107 // show magicline's power isn't filtered.
108 } );
109
110 </script>
111 </div>
112 <br>
113 <div>
114 <label for="editor2">
115 Editor 2:
116 </label>
117 <div class="description">
118 <p>
119 This editor is using a blue line.
120 </p>
121 <pre class="samples">
122 CKEDITOR.replace( 'editor2', {
123 magicline_color: 'blue'
124 });</pre>
125 </div>
126 <textarea cols="80" id="editor2" name="editor2" rows="10">
127 &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt;
128 &lt;tbody&gt;
129 &lt;tr&gt;
130 &lt;td&gt;This table&lt;/td&gt;
131 &lt;td&gt;is the&lt;/td&gt;
132 &lt;td&gt;very first&lt;/td&gt;
133 &lt;td&gt;element of the document.&lt;/td&gt;
134 &lt;/tr&gt;
135 &lt;tr&gt;
136 &lt;td&gt;We are still&lt;/td&gt;
137 &lt;td&gt;able to acces&lt;/td&gt;
138 &lt;td&gt;the space before it.&lt;/td&gt;
139 &lt;td&gt;
140 &lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; style=&quot;width: 100%; &quot;&gt;
141 &lt;tbody&gt;
142 &lt;tr&gt;
143 &lt;td&gt;This table is inside of a cell of another table.&lt;/td&gt;
144 &lt;/tr&gt;
145 &lt;tr&gt;
146 &lt;td&gt;We can type&amp;nbsp;either before or after it though.&lt;/td&gt;
147 &lt;/tr&gt;
148 &lt;/tbody&gt;
149 &lt;/table&gt;
150 &lt;/td&gt;
151 &lt;/tr&gt;
152 &lt;/tbody&gt;
153 &lt;/table&gt;
154
155 &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;
156
157 &lt;hr /&gt;
158 &lt;hr /&gt;
159 &lt;ol&gt;
160 &lt;li&gt;This numbered list...&lt;/li&gt;
161 &lt;li&gt;...is a neighbour of a horizontal line...&lt;/li&gt;
162 &lt;li&gt;...and another list.&lt;/li&gt;
163 &lt;/ol&gt;
164
165 &lt;ul&gt;
166 &lt;li&gt;We can type between the lists...&lt;/li&gt;
167 &lt;li&gt;...thanks to &lt;strong&gt;Magicline&lt;/strong&gt;.&lt;/li&gt;
168 &lt;/ul&gt;
169
170 &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;
171
172 &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;
173
174 &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;
175
176 &lt;div style=&quot;border: 2px dashed green; background: #ddd; text-align: center;&quot;&gt;
177 &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;
178 &lt;/div&gt;
179 </textarea>
180 <script>
181
182 // This call can be placed at any point after the
183 // <textarea>, or inside a <head><script> in a
184 // window.onload event handler.
185
186 CKEDITOR.replace( 'editor2', {
187 extraPlugins: 'magicline', // Ensure that magicline plugin, which is required for this sample, is loaded.
188 magicline_color: 'blue', // Blue line
189 allowedContent: true // Switch off the ACF, so very complex content created to
190 // show magicline's power isn't filtered.
191 });
192
193 </script>
194 </div>
195 <div id="footer">
196 <hr>
197 <p>
198 CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
199 </p>
200 <p id="copy">
201 Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
202 Knabben. All rights reserved.
203 </p>
204 </div>
205 </body>
206 </html>