提交 f05d9ac9 编写于 作者: U unknown

修复images笔误

上级 f594e4e6
...@@ -147,13 +147,12 @@ MWF.xApplication.cms.Xform.Htmleditor = MWF.CMSHtmleditor = new Class({ ...@@ -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"); return (this.editor && this.editor.document) ? this.editor.document.getBody().getText() : this.node.get("text");
}, },
getImages: function () { getImages: function () {
debugger;
var result = []; var result = [];
if( this.editor && this.editor.document ){ if( this.editor && this.editor.document ){
var imgaes = this.editor.document.find("img"); var images = this.editor.document.find("img");
if (imgaes) { if (images) {
for (var i = 0; i < imgaes.$.length; i++) { for (var i = 0; i < images.$.length; i++) {
result.push(imgaes.getItem(i).$); result.push(images.getItem(i).$);
} }
} }
return result; return result;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册