@wangeditor-next/editor 5.6.48 → 5.6.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -194,6 +194,11 @@ export interface IEditorConfig {
194
194
  * 自定义复制。拦截 event 添加或修改 clipboardData 数据
195
195
  */
196
196
  customCopy?: (editor: IDomEditor, e: ClipboardEvent) => void;
197
+ /**
198
+ * 自定义 HTML 清洗逻辑。在 setHtml / 初始化 html / 默认粘贴 HTML 前执行。
199
+ * 返回值会继续进入编辑器的 HTML 解析流程。
200
+ */
201
+ sanitizeHtml?: (html: string) => string;
197
202
  scroll: boolean;
198
203
  placeholder?: string;
199
204
  readOnly: boolean;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @description sanitize html before parsing/importing into editor
3
+ * @author Codex
4
+ */
5
+ export declare function defaultSanitizeHtml(html?: string): string;