1 | import { Element } from '@ckeditor/ckeditor5-engine';
|
2 | import { DowncastConversionApi } from '@ckeditor/ckeditor5-engine/src/conversion/downcastdispatcher';
|
3 | import Schema from '@ckeditor/ckeditor5-engine/src/model/schema';
|
4 | import AttributeElement from '@ckeditor/ckeditor5-engine/src/view/attributeelement';
|
5 | import Node from '@ckeditor/ckeditor5-engine/src/view/node';
|
6 | import { Locale } from '@ckeditor/ckeditor5-utils';
|
7 | import { LinkDecoratorDefinition } from './link';
|
8 |
|
9 | export const LINK_KEYSTROKE: 'Ctrl+K';
|
10 |
|
11 | export function isLinkElement(node: Node): boolean;
|
12 |
|
13 | export function createLinkElement(href: string, api: DowncastConversionApi): AttributeElement;
|
14 |
|
15 | export function ensureSafeUrl(url: string): string;
|
16 |
|
17 | export function getLocalizedDecorators(t: Locale['t'], decorators: LinkDecoratorDefinition[]): void;
|
18 |
|
19 | export function normalizeDecorators(decorators: Record<string, LinkDecoratorDefinition>): LinkDecoratorDefinition[];
|
20 |
|
21 | export function isLinkableElement(element: Element, schema: Schema): boolean;
|
22 |
|
23 | export function isEmail(value: string): boolean;
|
24 |
|
25 | export function addLinkProtocolIfApplicable(link: string, defaultProtocol: string): boolean;
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | export function openLink(link: string): void;
|