8
0
Pārlūkot izejas kodu

Added manual test.

Maksymilian Barnaś 9 gadi atpakaļ
vecāks
revīzija
50369a840e

+ 7 - 0
packages/ckeditor5-autoformat/tests/manual/autoformat.html

@@ -0,0 +1,7 @@
+<head>
+	<link rel="stylesheet" href="%APPS_DIR%ckeditor/build/modules/amd/theme/ckeditor.css">
+</head>
+
+<div id="editor">
+	<p><em>This</em> is an <strong>editor</strong> instance.</p>
+</div>

+ 19 - 0
packages/ckeditor5-autoformat/tests/manual/autoformat.js

@@ -0,0 +1,19 @@
+/**
+ * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md.
+ */
+
+/* globals console:false, window, document */
+
+import ClassicEditor from '/ckeditor5/editor-classic/classic.js';
+
+ClassicEditor.create( document.querySelector( '#editor' ), {
+	features: [ 'enter', 'typing', 'paragraph', 'undo', 'basic-styles/bold', 'basic-styles/italic' ],
+	toolbar: [ 'bold', 'italic', 'undo', 'redo' ]
+} )
+.then( editor => {
+	window.editor = editor;
+} )
+.catch( err => {
+	console.error( err.stack );
+} );

+ 7 - 0
packages/ckeditor5-autoformat/tests/manual/autoformat.md

@@ -0,0 +1,7 @@
+@bender-ui: collapsed
+
+## Autoformat
+
+1. Type `#` and press space to replace current paragraph with the heading.
+2. Type `*` and press space to replace current paragraph with list item.
+3. Type number from the range `1`-`3` to replace current paragraph with numbered list item.