...
Status colour Yellow title 릴리즈 2.15.1301 2301 이상
Code Block | ||||
---|---|---|---|---|
| ||||
// 비동기 함수 예제 (async) editor.setCustomUploadFunction(async (file, uploadFileType) => { const url = await new Promise(resolve => setTimeout(resolve, 1000)); // 파일 업로드 처리 return url; }); // 비동기 함수 예제 (promise) editor.setCustomUploadFunction((file, uploadFileType) => { return new Promise((resolve, reject) => { // 파일 업로드 처리 setTimeout(() => { resolve(url); }, 1000); }); }); |
...