From f05d9ac9dec6fa5da0d5d17f5ebba22e22ed26b7 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 24 May 2022 14:12:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dimages=E7=AC=94=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- o2web/source/x_component_cms_Xform/Htmleditor.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/o2web/source/x_component_cms_Xform/Htmleditor.js b/o2web/source/x_component_cms_Xform/Htmleditor.js index 0173300485..60b416c063 100644 --- a/o2web/source/x_component_cms_Xform/Htmleditor.js +++ b/o2web/source/x_component_cms_Xform/Htmleditor.js @@ -147,13 +147,12 @@ MWF.xApplication.cms.Xform.Htmleditor = MWF.CMSHtmleditor = new Class({ return (this.editor && this.editor.document) ? this.editor.document.getBody().getText() : this.node.get("text"); }, getImages: function () { - debugger; var result = []; if( this.editor && this.editor.document ){ - var imgaes = this.editor.document.find("img"); - if (imgaes) { - for (var i = 0; i < imgaes.$.length; i++) { - result.push(imgaes.getItem(i).$); + var images = this.editor.document.find("img"); + if (images) { + for (var i = 0; i < images.$.length; i++) { + result.push(images.getItem(i).$); } } return result; -- GitLab