瀏覽代碼

Remove unnecessary pluginName property from BlockAutoformatEditing and InlineAutoformatEditing. Closes #7290.

Tomek Wytrębowicz 5 年之前
父節點
當前提交
5c76f05121

+ 0 - 7
packages/ckeditor5-autoformat/src/blockautoformatediting.js

@@ -22,13 +22,6 @@ import LiveRange from '@ckeditor/ckeditor5-engine/src/model/liverange';
  */
 export default class BlockAutoformatEditing {
 	/**
-	 * @inheritDoc
-	 */
-	static get pluginName() {
-		return 'BlockAutoformatEditing';
-	}
-
-	/**
 	 * Creates a listener triggered on `change` event in the document.
 	 * Calls the callback when inserted text matches the regular expression or the command name
 	 * if provided instead of the callback.

+ 0 - 7
packages/ckeditor5-autoformat/src/inlineautoformatediting.js

@@ -22,13 +22,6 @@ import getLastTextLine from '@ckeditor/ckeditor5-typing/src/utils/getlasttextlin
  */
 export default class InlineAutoformatEditing {
 	/**
-	 * @inheritDoc
-	 */
-	static get pluginName() {
-		return 'InlineAutoformatEditing';
-	}
-
-	/**
 	 * Enables autoformatting mechanism for a given {@link module:core/editor/editor~Editor}.
 	 *
 	 * It formats the matched text by applying the given model attribute or by running the provided formatting callback.

+ 0 - 4
packages/ckeditor5-autoformat/tests/blockautoformatediting.js

@@ -29,10 +29,6 @@ describe( 'BlockAutoformatEditing', () => {
 			} );
 	} );
 
-	it( 'should have pluginName', () => {
-		expect( BlockAutoformatEditing.pluginName ).to.equal( 'BlockAutoformatEditing' );
-	} );
-
 	describe( 'command name', () => {
 		it( 'should run a command when the pattern is matched', () => {
 			const spy = testUtils.sinon.spy();

+ 0 - 4
packages/ckeditor5-autoformat/tests/inlineautoformatediting.js

@@ -30,10 +30,6 @@ describe( 'InlineAutoformatEditing', () => {
 			} );
 	} );
 
-	it( 'should have pluginName', () => {
-		expect( InlineAutoformatEditing.pluginName ).to.equal( 'InlineAutoformatEditing' );
-	} );
-
 	describe( 'attribute', () => {
 		it( 'should stop early if there are less than 3 capture groups', () => {
 			new InlineAutoformatEditing( editor, /(\*)(.+?)\*/g, 'testAttribute' ); // eslint-disable-line no-new