Status | ||||
---|---|---|---|---|
|
다운로드 받은 이미지들의 업로드가 모두 완료되면 지정된 callbackFunc을 호출합니다.
callbackFunc에서 getPublishingHtml()을 호출하면 변경된 이미지 URL을 포함한 HTML tag를 얻을 수 있습니다.
지정된 패턴이 없을 경우 callbackFunc만 호출하고 바로 return 합니다
|
'If there is a specified URL pattern among the images included in the editor body, upload all images after downloading them.
When all downloaded images are uploaded, the designated callbackFunc is called.
By calling getPublishingHtml() in callbackFunc, you can get the HTML tag including the URLs of the changed images.
If there is no specified pattern, only callbackFunc is called and immediately returned.
Parameters:
Name | Type | Attribute | Description |
---|---|---|---|
callbackFunc | Function | 모든 이미지 업로드 후 실행할 callback 함수를 지정합니다. Specify the callback function to be executed after uploading all images (optional). | |
urlPattern | REGEXP | 다운로드 받을 이미지의 URL 패턴. 지정하지 않으면 config파일에 설정된 패턴을 참고합니다. URL patterns of the images to be downloaded. If not specified, refer to the pattern set in the config file. |
Example:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
editor.downloadAndUploadImages(undefined, urlPattern).then(function() { var html = editor.getPublishingHtml(); }); |
...