You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
513 B
13 lines
513 B
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 };
|
|
|