UNPKG

588 BTypeScriptView Raw
1/**
2 * @description 处理粘贴逻辑
3 * @author wangfupeng
4 */
5/**
6 * 获取粘贴的纯文本
7 * @param e Event 参数
8 */
9export declare function getPasteText(e: ClipboardEvent): string;
10/**
11 * 获取粘贴的 html 字符串
12 * @param e Event 参数
13 * @param filterStyle 是否过滤 style 样式
14 * @param ignoreImg 是否忽略 img 标签
15 */
16export declare function getPasteHtml(e: ClipboardEvent, filterStyle?: boolean, ignoreImg?: boolean): string;
17/**
18 * 获取粘贴的图片文件
19 * @param e Event 参数
20 */
21export declare function getPasteImgs(e: ClipboardEvent): File[];