Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

| Ultima modificación | Ver Log |

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