wangeditor
Version:
wangEditor - 轻量级 web 富文本编辑器,配置方便,使用简单,开源免费
37 lines (30 loc) • 655 B
text/typescript
/**
* @description 事件配置
* @author wangfupeng
*/
import { EMPTY_FN } from '../utils/const'
export type TCatalog = {
tag: string
id: string
text: string
}
/**
* 提示信息
* @param alertInfo alert info
* @param alertType 错误提示类型
* @param debugInfo debug info
*/
function customAlert(alertInfo: string, alertType: string, debugInfo?: string): void {
window.alert(alertInfo)
if (debugInfo) {
console.error('wangEditor: ' + debugInfo)
}
}
export default {
onchangeTimeout: 200,
onchange: null,
onfocus: EMPTY_FN,
onblur: EMPTY_FN,
onCatalogChange: null,
customAlert,
}