Преглед на файлове

Merge pull request #120 from ckeditor/t/ckeditor5-utils/257

Internal: Simplified the way editor configuration is accessed (see ckeditor/ckeditor5-utils#257).
Aleksander Nowodzinski преди 7 години
родител
ревизия
871880fe65
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      packages/ckeditor5-heading/src/utils.js

+ 1 - 2
packages/ckeditor5-heading/src/utils.js

@@ -22,8 +22,7 @@ export function getLocalizedOptions( editor ) {
 		const title = localizedTitles[ option.title ];
 
 		if ( title && title != option.title ) {
-			// Clone the option to avoid altering the original `config.heading.options`.
-			option = Object.assign( {}, option, { title } );
+			option.title = title;
 		}
 
 		return option;