Explorar el Código

Docs: Horizontal line snippet updated. [skip ci]

Anna Tomanek hace 6 años
padre
commit
66bd805914

+ 43 - 3
packages/ckeditor5-horizontal-line/docs/_snippets/features/horizontal-line.html

@@ -1,6 +1,46 @@
 <div id="snippet-horizontal-line">
-	<h1>What is Lorem Ipsum?</h1>
-	<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
+	<h2 style="text-align:center;">The Flavorful Tuscany Meetup</h2>
+	<h3 style="text-align:center;">Welcome letter</h3>
+	<p>Dear Guest,</p>
+	<p>We are delighted to welcome you to the annual <i>Flavorful Tuscany Meetup</i> and hope you will enjoy the programme as well as your stay at the <a href="https://ckeditor.com">Bilancino Hotel</a>.</p>
+	<p>Please arrive at the <a href="https://ckeditor.com">Bilancino Hotel</a> reception desk at least half an hour earlier to make sure that the registration process goes as smoothly as possible.</p>
+	<p>We look forward to welcoming you to the event. The full schedule can be found below.</p>
+	<p><strong>Victoria Valc</strong></p>
+	<p><strong>Event Manager</strong><br><strong>Bilancino Hotel</strong></p>
 	<hr>
-	<p>It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
+	<h2 style="text-align:center;">The Flavorful Tuscany Meetup Schedule</h2>
+	<figure class="table">
+		<table>
+			<thead>
+				<tr>
+					<th colspan="2">Saturday, July 14</th>
+				</tr>
+			</thead>
+			<tbody>
+				<tr>
+					<td>9:30 AM - 11:30 AM</td>
+					<td>
+						<p><strong>Americano vs. Brewed</strong> - “know your coffee” with:&nbsp;</p>
+						<ul>
+							<li>Giulia Bianchi</li>
+							<li>Stefano Garau</li>
+							<li>Giuseppe Russo</li>
+						</ul>
+					</td>
+				</tr>
+				<tr>
+					<td>1:00 PM - 3:00 PM</td>
+					<td>
+						<p><strong>Pappardelle al pomodoro</strong> - live cooking</p>
+						<p>Incorporate the freshest ingredients&nbsp;<br>with Rita Fresco</p>
+					</td>
+				</tr>
+				<tr>
+					<td>5:00 PM - 8:00 PM</td>
+					<td><strong>Tuscan vineyards at a glance</strong> - wine-tasting&nbsp;<br>with Frederico Riscoli</td>
+				</tr>
+			</tbody>
+		</table>
+	</figure>
+	<p>&nbsp;</p>
 </div>

+ 6 - 1
packages/ckeditor5-horizontal-line/docs/_snippets/features/horizontal-line.js

@@ -7,8 +7,10 @@
 
 import ClassicEditor from '@ckeditor/ckeditor5-build-classic/src/ckeditor';
 import HorizontalLine from '@ckeditor/ckeditor5-horizontal-line/src/horizontalline';
+import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment';
 import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config';
 
+ClassicEditor.builtinPlugins.push( Alignment );
 ClassicEditor.builtinPlugins.push( HorizontalLine );
 
 ClassicEditor
@@ -19,11 +21,14 @@ ClassicEditor
 				'|',
 				'bold',
 				'italic',
+				'|',
+				'alignment',
+				'|',
 				'bulletedList',
 				'numberedList',
+				'|',
 				'blockQuote',
 				'link',
-				'|',
 				'imageUpload',
 				'mediaEmbed',
 				'insertTable',