|
|
@@ -10,7 +10,7 @@
|
|
|
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
|
|
|
import LinkCommand from './linkcommand';
|
|
|
import UnlinkCommand from './unlinkcommand';
|
|
|
-import { createLinkElement, ensureSafeUrl, getLocalizedDecorators, getNormalizedDecorators } from './utils';
|
|
|
+import { createLinkElement, ensureSafeUrl, getLocalizedDecorators, normalizeDecorators } from './utils';
|
|
|
import AutomaticDecorators from './utils/automaticdecorators';
|
|
|
import ManualDecorator from './utils/manualdecorator';
|
|
|
import bindTwoStepCaretToAttribute from '@ckeditor/ckeditor5-engine/src/utils/bindtwostepcarettoattribute';
|
|
|
@@ -77,7 +77,7 @@ export default class LinkEditing extends Plugin {
|
|
|
editor.commands.add( 'link', new LinkCommand( editor ) );
|
|
|
editor.commands.add( 'unlink', new UnlinkCommand( editor ) );
|
|
|
|
|
|
- const linkDecorators = getLocalizedDecorators( editor.t, getNormalizedDecorators( editor ) );
|
|
|
+ const linkDecorators = getLocalizedDecorators( editor.t, normalizeDecorators( editor.config.get( 'link.decorators' ) ) );
|
|
|
|
|
|
this._enableAutomaticDecorators( linkDecorators.filter( item => item.mode === DECORATOR_AUTOMATIC ) );
|
|
|
this._enableManualDecorators( linkDecorators.filter( item => item.mode === DECORATOR_MANUAL ) );
|