mirror of
https://github.com/supanadit/todo.git
synced 2024-11-25 20:06:44 +00:00
210 lines
8.0 KiB
HTML
210 lines
8.0 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<!--
|
||
|
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
||
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
|
-->
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>Using Magicline plugin — CKEditor Sample</title>
|
||
|
<script src="../../../ckeditor.js"></script>
|
||
|
<link rel="stylesheet" href="../../../samples/old/sample.css">
|
||
|
<meta name="ckeditor-sample-name" content="Magicline plugin">
|
||
|
<meta name="ckeditor-sample-group" content="Plugins">
|
||
|
<meta name="ckeditor-sample-description" content="Using the Magicline plugin to access difficult focus spaces.">
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1 class="samples">
|
||
|
<a href="../../../samples/old/index.html">CKEditor Samples</a> » Using Magicline plugin
|
||
|
</h1>
|
||
|
<div class="warning deprecated">
|
||
|
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>.
|
||
|
</div>
|
||
|
<div class="description">
|
||
|
<p>
|
||
|
This sample shows the advantages of <strong>Magicline</strong> plugin
|
||
|
which is to enhance the editing process. Thanks to this plugin,
|
||
|
a number of difficult focus spaces which are inaccessible due to
|
||
|
browser issues can now be focused.
|
||
|
</p>
|
||
|
<p>
|
||
|
<strong>Magicline</strong> plugin shows a red line with a handler
|
||
|
which, when clicked, inserts a paragraph and allows typing. To see this,
|
||
|
focus an editor and move your mouse above the focus space you want
|
||
|
to access. The plugin is enabled by default so no additional
|
||
|
configuration is necessary.
|
||
|
</p>
|
||
|
</div>
|
||
|
<div>
|
||
|
<label for="editor1">
|
||
|
Editor 1:
|
||
|
</label>
|
||
|
<div class="description">
|
||
|
<p>
|
||
|
This editor uses a default <strong>Magicline</strong> setup.
|
||
|
</p>
|
||
|
</div>
|
||
|
<textarea cols="80" id="editor1" name="editor1" rows="10">
|
||
|
<table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td>This table</td>
|
||
|
<td>is the</td>
|
||
|
<td>very first</td>
|
||
|
<td>element of the document.</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>We are still</td>
|
||
|
<td>able to acces</td>
|
||
|
<td>the space before it.</td>
|
||
|
<td>
|
||
|
<table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td>This table is inside of a cell of another table.</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>We can type&nbsp;either before or after it though.</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<p>Two succesive horizontal lines (<tt>HR</tt> tags). We can access the space in between:</p>
|
||
|
|
||
|
<hr />
|
||
|
<hr />
|
||
|
<ol>
|
||
|
<li>This numbered list...</li>
|
||
|
<li>...is a neighbour of a horizontal line...</li>
|
||
|
<li>...and another list.</li>
|
||
|
</ol>
|
||
|
|
||
|
<ul>
|
||
|
<li>We can type between the lists...</li>
|
||
|
<li>...thanks to <strong>Magicline</strong>.</li>
|
||
|
</ul>
|
||
|
|
||
|
<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>
|
||
|
|
||
|
<p>Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.</p>
|
||
|
|
||
|
<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>
|
||
|
|
||
|
<div style="border: 2px dashed green; background: #ddd; text-align: center;">
|
||
|
<p>This text is wrapped in a&nbsp;<tt>DIV</tt>&nbsp;element. We can type after this element though.</p>
|
||
|
</div>
|
||
|
</textarea>
|
||
|
<script>
|
||
|
|
||
|
// This call can be placed at any point after the
|
||
|
// <textarea>, or inside a <head><script> in a
|
||
|
// window.onload event handler.
|
||
|
|
||
|
CKEDITOR.replace( 'editor1', {
|
||
|
extraPlugins: 'magicline', // Ensure that magicline plugin, which is required for this sample, is loaded.
|
||
|
allowedContent: true // Switch off the ACF, so very complex content created to
|
||
|
// show magicline's power isn't filtered.
|
||
|
} );
|
||
|
|
||
|
</script>
|
||
|
</div>
|
||
|
<br>
|
||
|
<div>
|
||
|
<label for="editor2">
|
||
|
Editor 2:
|
||
|
</label>
|
||
|
<div class="description">
|
||
|
<p>
|
||
|
This editor is using a blue line.
|
||
|
</p>
|
||
|
<pre class="samples">
|
||
|
CKEDITOR.replace( 'editor2', {
|
||
|
magicline_color: 'blue'
|
||
|
});</pre>
|
||
|
</div>
|
||
|
<textarea cols="80" id="editor2" name="editor2" rows="10">
|
||
|
<table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td>This table</td>
|
||
|
<td>is the</td>
|
||
|
<td>very first</td>
|
||
|
<td>element of the document.</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>We are still</td>
|
||
|
<td>able to acces</td>
|
||
|
<td>the space before it.</td>
|
||
|
<td>
|
||
|
<table border="1" cellpadding="1" cellspacing="1" style="width: 100%; ">
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td>This table is inside of a cell of another table.</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>We can type&nbsp;either before or after it though.</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<p>Two succesive horizontal lines (<tt>HR</tt> tags). We can access the space in between:</p>
|
||
|
|
||
|
<hr />
|
||
|
<hr />
|
||
|
<ol>
|
||
|
<li>This numbered list...</li>
|
||
|
<li>...is a neighbour of a horizontal line...</li>
|
||
|
<li>...and another list.</li>
|
||
|
</ol>
|
||
|
|
||
|
<ul>
|
||
|
<li>We can type between the lists...</li>
|
||
|
<li>...thanks to <strong>Magicline</strong>.</li>
|
||
|
</ul>
|
||
|
|
||
|
<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>
|
||
|
|
||
|
<p>Quisque iaculis, dui lectus varius vitae, tortor. Proin lacus. Pellentesque ac lacus. Aenean nonummy commodo nec, pede. Etiam blandit risus elit.</p>
|
||
|
|
||
|
<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>
|
||
|
|
||
|
<div style="border: 2px dashed green; background: #ddd; text-align: center;">
|
||
|
<p>This text is wrapped in a&nbsp;<tt>DIV</tt>&nbsp;element. We can type after this element though.</p>
|
||
|
</div>
|
||
|
</textarea>
|
||
|
<script>
|
||
|
|
||
|
// This call can be placed at any point after the
|
||
|
// <textarea>, or inside a <head><script> in a
|
||
|
// window.onload event handler.
|
||
|
|
||
|
CKEDITOR.replace( 'editor2', {
|
||
|
extraPlugins: 'magicline', // Ensure that magicline plugin, which is required for this sample, is loaded.
|
||
|
magicline_color: 'blue', // Blue line
|
||
|
allowedContent: true // Switch off the ACF, so very complex content created to
|
||
|
// show magicline's power isn't filtered.
|
||
|
});
|
||
|
|
||
|
</script>
|
||
|
</div>
|
||
|
<div id="footer">
|
||
|
<hr>
|
||
|
<p>
|
||
|
CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
|
||
|
</p>
|
||
|
<p id="copy">
|
||
|
Copyright © 2003-2019, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
|
||
|
Knabben. All rights reserved.
|
||
|
</p>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|