Merge remote-tracking branch 'origin/master'

This commit is contained in:
김현욱
2025-12-16 16:18:54 +09:00
5 changed files with 9 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
class UploadAdapter {
constructor(loader) {
constructor(loader, url) {
this.loader = loader;
this.url = url;
}
upload() {
@@ -13,7 +14,7 @@ class UploadAdapter {
_initRequest() {
const xhr = this.xhr = new XMLHttpRequest();
xhr.open('POST', '/comm/ckeditor/image/fileUpload', true);
xhr.open('POST', this.url, true);
xhr.responseType = 'json';
}
@@ -43,5 +44,5 @@ class UploadAdapter {
}
}
function getDownloadUrl(item) {
return encodeURI(`${API_ROOT_URL}/download/images/${item.linkId}`);
return encodeURI(`${API_ROOT_URL}/download/images/${item.linkId}`);
}