forked from zicloud/bigscreen_admin
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
513 B
TypeScript
14 lines
513 B
TypeScript
import Inline from '../blots/inline.js';
|
|
declare class Link extends Inline {
|
|
static blotName: string;
|
|
static tagName: string;
|
|
static SANITIZED_URL: string;
|
|
static PROTOCOL_WHITELIST: string[];
|
|
static create(value: string): HTMLElement;
|
|
static formats(domNode: HTMLElement): string | null;
|
|
static sanitize(url: string): string;
|
|
format(name: string, value: unknown): void;
|
|
}
|
|
declare function sanitize(url: string, protocols: string[]): boolean;
|
|
export { Link as default, sanitize };
|