@zodiac-ui/editor
Version:
A rich text editor for Angular based on `@atlaskit/editor-core`.
16 lines (15 loc) • 404 B
TypeScript
export declare const isSafeUrl: (url: string) => boolean;
export interface Match {
schema: any;
index: number;
lastIndex: number;
raw: string;
text: string;
url: string;
length?: number;
}
export declare function getLinkMatch(str: string): '' | Match | null;
/**
* Adds protocol to url if needed.
*/
export declare function normalizeUrl(url: string): string;