浏览代码

Change target decorator default option to be false, correct config values naming.

Mateusz Samsel 6 年之前
父节点
当前提交
b00ef967ad
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-link/src/linkediting.js

+ 2 - 2
packages/ckeditor5-link/src/linkediting.js

@@ -35,7 +35,7 @@ export default class LinkEditing extends Plugin {
 		super( editor );
 
 		editor.config.define( 'link', {
-			targetDecorator: true
+			targetDecorator: false
 		} );
 	}
 
@@ -86,7 +86,7 @@ export default class LinkEditing extends Plugin {
 			} );
 		}
 
-		const linkDecorators = editor.config.get( 'link.decorator' ) || [];
+		const linkDecorators = editor.config.get( 'link.decorators' ) || [];
 		automaticDispatcher.add( linkDecorators.filter( item => item.mode === AUTO ) );
 
 		editor.conversion.for( 'downcast' ).add( automaticDispatcher.getCallback() );