Skip to content

Commit

Permalink
Merge pull request #7984 from ckeditor/i/7682
Browse files Browse the repository at this point in the history
Other (link): The link plugin now comes with the autolink feature enabled by default. Closes #7682.
  • Loading branch information
pomek committed Sep 11, 2020
2 parents 4671ed1 + 7d4e51c commit c9533f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/ckeditor5-link/src/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -24,7 +25,7 @@ export default class Link extends Plugin {
* @inheritDoc
*/
static get requires() {
return [ LinkEditing, LinkUI ];
return [ LinkEditing, LinkUI, AutoLink ];
}

/**
Expand Down
5 changes: 3 additions & 2 deletions packages/ckeditor5-link/tests/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit c9533f1

Please sign in to comment.