瀏覽代碼

Merge branch 'master' into t/ckeditor5-engine/1556

Maciej Gołaszewski 7 年之前
父節點
當前提交
573252ea43
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 1
      packages/ckeditor5-heading/package.json
  2. 1 2
      packages/ckeditor5-heading/src/utils.js

+ 1 - 1
packages/ckeditor5-heading/package.json

@@ -25,7 +25,7 @@
     "@ckeditor/ckeditor5-typing": "^11.0.2",
     "@ckeditor/ckeditor5-undo": "^10.0.4",
     "eslint": "^5.5.0",
-    "eslint-config-ckeditor5": "^1.0.7",
+    "eslint-config-ckeditor5": "^1.0.9",
     "husky": "^0.14.3",
     "lint-staged": "^7.0.0"
   },

+ 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;