Просмотр исходного кода

#279 delete image from tinymce by id, not by class

Alex Trofimov 10 лет назад
Родитель
Сommit
f67bbdbc7f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      modules/base/text/js/forms.js

+ 1 - 1
modules/base/text/js/forms.js

@@ -17,7 +17,7 @@ function bx_base_text_select_ghost(eCheckbox, sName) {
 function bx_base_text_delete_ghost (iFileId, sFileUrl, sFileIcon, aEditors, oUploaderInstance) {
     bx_editor_remove_img (
         aEditors,
-        ['img[src="' + sFileIcon + '"]', 'img[src="' + sFileUrl + '"]', '.bx-base-text-img-' + iFileId, '.bx-base-text-icon-' + iFileId]
+        ['img[src="' + sFileIcon + '"]', 'img[src="' + sFileUrl + '"]', '#bx-base-text-img-' + iFileId, '.bx-base-text-icon-' + iFileId]
     );
     oUploaderInstance.deleteGhost(iFileId);
 }