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