From 4fee98ea58165ed182a9b307e0fa273fc177811e Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Wed, 15 Oct 2025 10:15:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=9B=91=E5=90=ACchange=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=20=E8=A7=A3=E5=86=B3=E4=B8=8A=E4=BC=A0=E5=90=8E?= =?UTF-8?q?=E4=B8=8D=E6=93=8D=E4=BD=9C=E6=97=A0=E6=B3=95=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/components/tinymce/src/editor.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/web-antd/src/components/tinymce/src/editor.vue b/apps/web-antd/src/components/tinymce/src/editor.vue index 21886452..276d84e5 100644 --- a/apps/web-antd/src/components/tinymce/src/editor.vue +++ b/apps/web-antd/src/components/tinymce/src/editor.vue @@ -173,8 +173,11 @@ const initOptions = computed((): InitOptions => { }); // 监听内容变化,处理待附加 data-oss-id 的图片 - editor.on('NodeChange', () => { - if (pendingImageMap.size === 0) return; + editor.on('change', () => { + if (pendingImageMap.size === 0) { + return; + } + pendingImageMap.forEach((ossId, url) => { const imgDoms = editor.dom.select(`img[src="${url}"]`); if (imgDoms && imgDoms.length > 0) {