8
0
Просмотр исходного кода

Other: Added `pluginName` property to editing plugin.

Szymon Cofalik 6 лет назад
Родитель
Сommit
fede9b7522

+ 7 - 0
packages/ckeditor5-horizontal-line/src/horizontallineediting.js

@@ -19,6 +19,13 @@ import '../theme/horizontalline.css';
  * @extends module:core/plugin~Plugin
  * @extends module:core/plugin~Plugin
  */
  */
 export default class HorizontalLineEditing extends Plugin {
 export default class HorizontalLineEditing extends Plugin {
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'HorizontalLineEditing';
+	}
+
 	/**
 	/**
 	 * @inheritDoc
 	 * @inheritDoc
 	 */
 	 */

+ 4 - 0
packages/ckeditor5-horizontal-line/tests/horizontallineediting.js

@@ -33,6 +33,10 @@ describe( 'HorizontalLineEditing', () => {
 			} );
 			} );
 	} );
 	} );
 
 
+	it( 'should have pluginName', () => {
+		expect( HorizontalLineEditing.pluginName ).to.equal( 'HorizontalLineEditing' );
+	} );
+
 	it( 'should be loaded', () => {
 	it( 'should be loaded', () => {
 		expect( editor.plugins.get( HorizontalLineEditing ) ).to.be.instanceOf( HorizontalLineEditing );
 		expect( editor.plugins.get( HorizontalLineEditing ) ).to.be.instanceOf( HorizontalLineEditing );
 	} );
 	} );