diff --git a/packages/ckeditor5-link/src/link.js b/packages/ckeditor5-link/src/link.js index 9b2d5d98708..55eb2660bb8 100644 --- a/packages/ckeditor5-link/src/link.js +++ b/packages/ckeditor5-link/src/link.js @@ -10,6 +10,7 @@ import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; import LinkEditing from './linkediting'; import LinkUI from './linkui'; +import AutoLink from './autolink'; /** * The link plugin. @@ -24,7 +25,7 @@ export default class Link extends Plugin { * @inheritDoc */ static get requires() { - return [ LinkEditing, LinkUI ]; + return [ LinkEditing, LinkUI, AutoLink ]; } /** diff --git a/packages/ckeditor5-link/tests/link.js b/packages/ckeditor5-link/tests/link.js index e3e639168e2..dce9b103e06 100644 --- a/packages/ckeditor5-link/tests/link.js +++ b/packages/ckeditor5-link/tests/link.js @@ -4,12 +4,13 @@ */ import Link from '../src/link'; +import AutoLink from '../src/autolink'; import LinkEditing from '../src/linkediting'; import LinkUI from '../src/linkui'; describe( 'Link', () => { - it( 'should require LinkEditing and LinkUI', () => { - expect( Link.requires ).to.deep.equal( [ LinkEditing, LinkUI ] ); + it( 'should require LinkEditing, LinkUI and AutoLink', () => { + expect( Link.requires ).to.deep.equal( [ LinkEditing, LinkUI, AutoLink ] ); } ); it( 'should be named', () => {