Explorar el Código

Introduced basic manual test.

Oskar Wrobel hace 9 años
padre
commit
363ece6963

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

@@ -0,0 +1,7 @@
+<head>
+	<link rel="stylesheet" href="%APPS_DIR%ckeditor/build/modules/amd/theme/ckeditor.css">
+</head>
+
+<div id="editor">
+	<p>This is an <a href="http://ckeditor.com">CKEditor5</a> from <a href="http://cksource.com">CKSource</a>.</p>
+</div>

+ 19 - 0
packages/ckeditor5-link/tests/manual/link.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: [ 'link', 'typing', 'paragraph', 'undo' ],
+	toolbar: [ 'link', 'undo', 'redo' ]
+} )
+.then( editor => {
+	window.editor = editor;
+} )
+.catch( err => {
+	console.error( err.stack );
+} );

+ 5 - 0
packages/ckeditor5-link/tests/manual/link.md

@@ -0,0 +1,5 @@
+@bender-ui: collapsed
+
+## Link
+
+1. Test the link feature live.