8
0
فهرست منبع

Internal: Added names to the plugins that expose a public API (see ckeditor/ckeditor5#1336).

Aleksander Nowodzinski 6 سال پیش
والد
کامیت
d9f759dfd8
2فایلهای تغییر یافته به همراه11 افزوده شده و 0 حذف شده
  1. 7 0
      packages/ckeditor5-link/src/linkui.js
  2. 4 0
      packages/ckeditor5-link/tests/linkui.js

+ 7 - 0
packages/ckeditor5-link/src/linkui.js

@@ -38,6 +38,13 @@ export default class LinkUI extends Plugin {
 		return [ ContextualBalloon ];
 	}
 
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'LinkUI';
+	}
+
 	/**
 	 * @inheritDoc
 	 */

+ 4 - 0
packages/ckeditor5-link/tests/linkui.js

@@ -57,6 +57,10 @@ describe( 'LinkUI', () => {
 		return editor.destroy();
 	} );
 
+	it( 'should be named', () => {
+		expect( LinkUI.pluginName ).to.equal( 'LinkUI' );
+	} );
+
 	it( 'should load ContextualBalloon', () => {
 		expect( editor.plugins.get( ContextualBalloon ) ).to.be.instanceOf( ContextualBalloon );
 	} );