UNPKG

@zodiac-ui/editor

Version:

A rich text editor for Angular based on `@atlaskit/editor-core`.

12 lines (11 loc) 814 B
import { Predicate } from "../../lib/utils/filter"; import { Command } from "../../lib/interfaces/command"; import { INPUT_METHOD } from "../block-type/keymap"; export declare function isTextAtPos(pos: number): Predicate; export declare function isLinkAtPos(pos: number): Predicate; export declare function setLinkHref(href: string, pos: number, to?: number): Command; export declare function setLinkText(text: string, pos: number, to?: number): Command; export declare function insertLink(from: number, to: number, href: string, text?: string): Command; export declare function removeLink(pos: number): Command; export declare function showLinkToolbar(inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.SHORTCUT): Command; export declare function hideLinkToolbar(): Command;