<img 에 loding="lazy"를 사용하기 위해 width, height가 필요한데 이미지 업로드시 생성되지 않아 질문드립니다.
common/js/plugins/jquery.fileupload/js/main.js 파일에
if(result.error == 0) { if(/\.(gif|jpe?g|png|webp)$/i.test(result.source_filename) && opt.autoinsertTypes.image) { temp_code += '<img src="' + result.download_url + '" alt="' + result.source_filename + '" editor_component="image_link" data-file-srl="' + result.file_srl + '" />';
modules/editor/tpl/js/uploader.js 파일을 참고해서
temp_code += '<img src="' + result.download_url + '" alt="' + result.source_filename + '" editor_component="image_link" data-file-srl="' + result.file_srl + '" loading="lazy" width="' + obj.width + '" height="' + obj.height + '" />';
loading="lazy" width="' + obj.width + '" height="' + obj.height + '"
이 부분을 추가해 봤는데 width, height는 안나오네요.
업로드한 이미지에 width height를 자동으로 넣는 방법이 있을까요?