-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
link.ts
35 lines (31 loc) · 819 Bytes
/
link.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module link/link
*/
import { Plugin } from 'ckeditor5/src/core.js';
import LinkEditing from './linkediting.js';
import LinkUI from './linkui.js';
import AutoLink from './autolink.js';
/**
* The link plugin.
*
* This is a "glue" plugin that loads the {@link module:link/linkediting~LinkEditing link editing feature}
* and {@link module:link/linkui~LinkUI link UI feature}.
*/
export default class Link extends Plugin {
/**
* @inheritDoc
*/
public static get requires() {
return [ LinkEditing, LinkUI, AutoLink ] as const;
}
/**
* @inheritDoc
*/
public static get pluginName() {
return 'Link' as const;
}
}