로그인

검색

라이믹스에서 이미지 복사 붙여넣기 하기

라이믹스에서 이미지 복사 붙여넣기 하기

 

1. 애드온 설치

baro_upload.0.0.3.zip

 

 

2. 관리자 페이지

관리자 페이지 - 콘텐츠 - 파일 - 파일 업로드설정 - 이미지 설정변경.

 

image.png.jpg

 

 

 

 

 

*** 추가 2024. 04  (라이믹스 Rhymix 2.1.13)               설치해 봤는데, 잘 안되네요. ㅠㅠ

/addons/baro_upload/js/_ckeditor.js     파일 수정합니다.

 

기존

if ( data.getTypes().indexOf('Files') < 0 ) {
return;
}

 

변경

if ( data.getTypes().indexOf('Files') < 0 ) {
var img_regex = /^<img[^>]+src=[\"']?([^>\"']+)[\"']?[^>]*>?/;
var img_result = img_regex.exec(event.data.dataValue);
if ( img_result.length ) {
event.stop();
var dropped_file = getFileObjByDataURL(img_result[1]);
var notification = event.editor.showNotification('파일 업로드 중...', 'progress', 0);

form_data.append('Filedata', dropped_file);
procFileUpload(form_data, dropped_file.type, notification, event);
}
return;
}

 

 

 

 

 

이 게시물을

이 댓글을 삭제하시겠습니까?