瀏覽代碼

Internal: Renamed the insert special character command.

Marek Lewandowski 6 年之前
父節點
當前提交
5b195f9c56

+ 1 - 1
packages/ckeditor5-special-characters/src/specialcharactersediting.js

@@ -40,6 +40,6 @@ export default class SpecialCharactersEditing extends Plugin {
 		const editor = this.editor;
 
 		const command = new InsertSpecialCharacterCommand( editor );
-		editor.commands.add( 'specialCharacters', command );
+		editor.commands.add( 'insertSpecialCharacter', command );
 	}
 }

+ 1 - 1
packages/ckeditor5-special-characters/src/specialcharactersui.js

@@ -24,7 +24,7 @@ export default class SpecialCharactersUI extends Plugin {
 		const t = editor.t;
 		const specialCharacterPlugin = editor.plugins.get( 'SpecialCharacters' );
 		const label = t( 'Special characters' );
-		const command = editor.commands.get( 'specialCharacters' );
+		const command = editor.commands.get( 'insertSpecialCharacter' );
 
 		// Add the `specialCharacters` dropdown button to feature components.
 		editor.ui.componentFactory.add( 'specialCharacters', locale => {

+ 1 - 1
packages/ckeditor5-special-characters/tests/insertspecialcharactercommand.js

@@ -27,7 +27,7 @@ describe( 'InsertSpecialCharacterCommand', () => {
 			.then( newEditor => {
 				editor = newEditor;
 				model = editor.model;
-				command = editor.commands.get( 'specialCharacters' );
+				command = editor.commands.get( 'insertSpecialCharacter' );
 
 				editor.plugins.get( 'SpecialCharacters' ).addItems( 'Arrows', [
 					{ title: 'arrow left', character: '←' },

+ 1 - 1
packages/ckeditor5-special-characters/tests/specialcharactersediting.js

@@ -30,6 +30,6 @@ describe( 'SpecialCharactersEditing', () => {
 	} );
 
 	it( 'adds a command', () => {
-		expect( editor.commands.get( 'specialCharacters' ) ).to.be.instanceOf( InsertSpecialCharacterCommand );
+		expect( editor.commands.get( 'insertSpecialCharacter' ) ).to.be.instanceOf( InsertSpecialCharacterCommand );
 	} );
 } );