code: function (list) {
              var i, item, img, filetype, preview, icon, _this = this,
                  urlPrefix = editor.getOpt('fileManagerUrlPrefix');
              for (i = 0; i < list.length; i++) {
                  if(list[i] && list[i].url) {
                      item = document.createElement('li');
                      icon = document.createElement('span');
                      filetype = list[i].url.substr(list[i].url.lastIndexOf('.') + 1);
  
                      if ( "png|jpg|jpeg|gif|bmp".indexOf(filetype) != -1 ) {
                          preview = document.createElement('img');
                          domUtils.on(preview, 'load', (function(image){
                              return function(){
                                  _this.scale(image, image.parentNode.offsetWidth, image.parentNode.offsetHeight);
                              };
                          })(preview));
                          preview.width = 113;
                          preview.setAttribute('src', urlPrefix + list[i].url + (list[i].url.indexOf('?') == -1 ? '?noCache=':'&noCache=') + (+new Date()).toString(36) );
                      } else {
                          var ic = document.createElement('i'),
                              textSpan = document.createElement('span');
                          textSpan.innerHTML = list[i].url.substr(list[i].url.lastIndexOf('/') + 1);
                          preview = document.createElement('div');
                          preview.appendChild(ic);
                          preview.appendChild(textSpan);
                          domUtils.addClass(preview, 'file-wrapper');
                          domUtils.addClass(textSpan, 'file-title');
                          domUtils.addClass(ic, 'file-type-' + filetype);
                          domUtils.addClass(ic, 'file-preview');
                      }
                      domUtils.addClass(icon, 'icon');
                      item.setAttribute('data-url', urlPrefix + list[i].url);
                      if (list[i].original) {
                          item.setAttribute('data-title', list[i].original);
                      }
  
                      item.appendChild(preview);
                      item.appendChild(icon);
                      this.list.insertBefore(item, this.clearFloat);
                  }
              }
          }
docs: /* 添加图片到列表界面上