wangeditor
Version:
wangEditor - 轻量级 web 富文本编辑器,配置方便,使用简单,开源免费
20 lines (19 loc) • 612 B
TypeScript
/**
* @description 删除时保留 EMPTY_P
* @author wangfupeng
*/
import Editor from '../../editor/index';
/**
* 删除时保留 EMPTY_P
* @param editor 编辑器实例
* @param deleteUpEvents delete 键 up 时的 hooks
* @param deleteDownEvents delete 建 down 时的 hooks
*/
declare function deleteToKeepP(editor: Editor, deleteUpEvents: Function[], deleteDownEvents: Function[]): void;
/**
* 剪切时保留 EMPTY_P
* @param editor 编辑器实例
* @param cutEvents keydown hooks
*/
export declare function cutToKeepP(editor: Editor, cutEvents: Function[]): void;
export default deleteToKeepP;