8
0
Maciej Gołaszewski 5 лет назад
Родитель
Сommit
26c1cee6e6
2 измененных файлов с 36 добавлено и 0 удалено
  1. 24 0
      packages/ckeditor5-link/src/autolink.js
  2. 12 0
      packages/ckeditor5-link/tests/autolink.js

+ 24 - 0
packages/ckeditor5-link/src/autolink.js

@@ -0,0 +1,24 @@
+/**
+ * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
+ */
+
+/**
+ * @module link/autolink
+ */
+
+import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
+
+/**
+ * The auto link plugin.
+ *
+ * @extends module:core/plugin~Plugin
+ */
+export default class AutoLink extends Plugin {
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'AutoLink';
+	}
+}

+ 12 - 0
packages/ckeditor5-link/tests/autolink.js

@@ -0,0 +1,12 @@
+/**
+ * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
+ */
+
+import AutoLink from '../src/autolink';
+
+describe( 'AutoLink', () => {
+	it( 'should be named', () => {
+		expect( AutoLink.pluginName ).to.equal( 'AutoLink' );
+	} );
+} );