Преглед изворни кода

Use default value obtained from the command.

Kamil Piechaczek пре 5 година
родитељ
комит
eaed6500da

+ 1 - 1
packages/ckeditor5-list/src/liststylecommand.js

@@ -29,7 +29,7 @@ export default class ListStyleCommand extends Command {
 		/**
 		 * The default type of the list style.
 		 *
-		 * @private
+		 * @protected
 		 * @member {String}
 		 */
 		this._defaultType = defaultType;

+ 1 - 1
packages/ckeditor5-list/src/liststyleui.js

@@ -211,7 +211,7 @@ function getStyleButtonCreator( { editor, listStyleCommand, parentCommandName }
 				}
 				// If the style was the same, remove it (the button works as an off toggle).
 				else {
-					editor.execute( 'listStyle', { type: 'default' } );
+					editor.execute( 'listStyle', { type: listStyleCommand._defaultType } );
 				}
 			}
 			// If the content the selection is anchored to is not a list, let's create a list of a desired style.