Ver código fonte

Cause we already have _addButton in the undo feature.

Piotrek Koszuliński 9 anos atrás
pai
commit
11a1ea3e88
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      packages/ckeditor5-list/src/list.js

+ 3 - 3
packages/ckeditor5-list/src/list.js

@@ -31,8 +31,8 @@ export default class List extends Feature {
 	init() {
 		// Create two buttons and link them with numberedList and bulletedList commands.
 		const t = this.editor.t;
-		this._setButton( 'numberedList', 'numberedlist', t( 'Numbered List' ) );
-		this._setButton( 'bulletedList', 'bulletedlist', t( 'Bulleted List' ) );
+		this._addButton( 'numberedList', 'numberedlist', t( 'Numbered List' ) );
+		this._addButton( 'bulletedList', 'bulletedlist', t( 'Bulleted List' ) );
 
 		const doc = this.editor.document;
 		const selection = doc.selection;
@@ -83,7 +83,7 @@ export default class List extends Feature {
 	 * @param {String} iconName Name of the icon resource.
 	 * @param {Object} label Button label.
 	 */
-	_setButton( commandName, iconName, label ) {
+	_addButton( commandName, iconName, label ) {
 		const editor = this.editor;
 		const command = editor.commands.get( commandName );