瀏覽代碼

Other: Added `pluginName` property to editing plugin.

Szymon Cofalik 6 年之前
父節點
當前提交
e9d4627b3d

+ 7 - 0
packages/ckeditor5-page-break/src/pagebreakediting.js

@@ -23,6 +23,13 @@ export default class PageBreakEditing extends Plugin {
 	/**
 	 * @inheritDoc
 	 */
+	static get pluginName() {
+		return 'PageBreakEditing';
+	}
+
+	/**
+	 * @inheritDoc
+	 */
 	init() {
 		const editor = this.editor;
 		const schema = editor.model.schema;

+ 4 - 0
packages/ckeditor5-page-break/tests/pagebreakediting.js

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