3 Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
\r
4 For licensing, see LICENSE.html or http://ckeditor.com/license
\r
8 <title>Using Magicline plugin — CKEditor Sample</title>
\r
9 <meta charset="utf-8">
\r
10 <script src="../../../ckeditor.js"></script>
\r
11 <link rel="stylesheet" href="../../../samples/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 <meta name="ckeditor-sample-isnew" content="1">
\r
18 <h1 class="samples">
\r
19 <a href="../../../samples/index.html">CKEditor Samples</a> » Using Magicline plugin
\r
21 <div class="description">
\r
23 This sample shows the advantages of <strong>Magicline</strong> plugin
\r
24 which is to enhance the editing process. Thanks to this plugin,
\r
25 a number of difficult focus spaces which are inaccessible due to
\r
26 browser issues can now be focused.
\r
29 <strong>Magicline</strong> plugin shows a red line with a handler
\r
30 which, when clicked, inserts a paragraph and allows typing. To see this,
\r
31 focus an editor and move your mouse above the focus space you want
\r
32 to access. The plugin is enabled by default so no additional
\r
33 configuration is necessary.
\r
37 <label for="editor1">
\r
40 <div class="description">
\r
42 This editor uses a default <strong>Magicline</strong> setup.
\r
45 <textarea cols="80" id="editor1" name="editor1" rows="10">
\r
46 <table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
\r
49 <td>This table</td>
\r
50 <td>is the</td>
\r
51 <td>very first</td>
\r
52 <td>element of the document.</td>
\r
55 <td>We are still</td>
\r
56 <td>able to acces</td>
\r
57 <td>the space before it.</td>
\r
59 <table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
\r
62 <td>This table is inside of a cell of another table.</td>
\r
65 <td>We can type&nbsp;either before or after it though.</td>
\r
74 <p>Two succesive horizontal lines (<tt>HR</tt> tags). We can access the space in between:</p>
\r
79 <li>This numbered list...</li>
\r
80 <li>...is a neighbour of a horizontal line...</li>
\r
81 <li>...and another list.</li>
\r
85 <li>We can type between the lists...</li>
\r
86 <li>...thanks to <strong>Magicline</strong>.</li>
\r
89 <p>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.</p>
\r
91 <p>Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.</p>
\r
93 <p>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.</p>
\r
95 <div style="border: 2px dashed green; background: #ddd; text-align: center;">
\r
96 <p>This text is wrapped in a&nbsp;<tt>DIV</tt>&nbsp;element. We can type after this element though.</p>
\r
101 // This call can be placed at any point after the
\r
102 // <textarea>, or inside a <head><script> in a
\r
103 // window.onload event handler.
\r
105 CKEDITOR.replace( 'editor1', {
\r
106 extraPlugins: 'magicline' // Ensure that magicline plugin, which is required for this sample, is loaded.
\r
113 <label for="editor2">
\r
116 <div class="description">
\r
118 This editor is using a blue line.
\r
120 <pre class="samples">
\r
121 CKEDITOR.replace( 'editor2', {
\r
122 magicline_color: 'blue'
\r
125 <textarea cols="80" id="editor2" name="editor2" rows="10">
\r
126 <table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
\r
129 <td>This table</td>
\r
130 <td>is the</td>
\r
131 <td>very first</td>
\r
132 <td>element of the document.</td>
\r
135 <td>We are still</td>
\r
136 <td>able to acces</td>
\r
137 <td>the space before it.</td>
\r
139 <table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
\r
142 <td>This table is inside of a cell of another table.</td>
\r
145 <td>We can type&nbsp;either before or after it though.</td>
\r
154 <p>Two succesive horizontal lines (<tt>HR</tt> tags). We can access the space in between:</p>
\r
159 <li>This numbered list...</li>
\r
160 <li>...is a neighbour of a horizontal line...</li>
\r
161 <li>...and another list.</li>
\r
165 <li>We can type between the lists...</li>
\r
166 <li>...thanks to <strong>Magicline</strong>.</li>
\r
169 <p>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.</p>
\r
171 <p>Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.</p>
\r
173 <p>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.</p>
\r
175 <div style="border: 2px dashed green; background: #ddd; text-align: center;">
\r
176 <p>This text is wrapped in a&nbsp;<tt>DIV</tt>&nbsp;element. We can type after this element though.</p>
\r
181 // This call can be placed at any point after the
\r
182 // <textarea>, or inside a <head><script> in a
\r
183 // window.onload event handler.
\r
185 CKEDITOR.replace( 'editor2', {
\r
186 extraPlugins: 'magicline', // Ensure that magicline plugin, which is required for this sample, is loaded.
\r
187 magicline_color: 'blue' // Blue line
\r
195 CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
\r
198 Copyright © 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
\r
199 Knabben. All rights reserved.
\r