Status |
---|
| |
---|
colour | Yellow |
---|
title | 릴리즈 2.2.0 이상 |
---|
|
파일 업로드가 완료된 후 발생합니다.
...
This event occurs after a file is uploaded.
Adding Event: Using API
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var editor = new SynapEditor(editorId, editorConfig, html);
editor.setEventListener('afterUploadFile', function (e) {
}); |
...
Adding Event:
...
Function
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
function SynapEditorAfterUploadFile(e) {
}
new SynapEditor(editorId, editorConfig, html); |
...
Adding Event: When the Editor is initialized
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var eventListeners = {
afterUploadFile: function (e) {
}
};
new SynapEditor(editorId, editorConfig, html, eventListeners); |
함수로 전달되는 객체 형태
...
Object Delivered through Functions
In the form of parameter e delivered through functions
Code Block |
---|
|
// release 2.2.0
{
editor: SynapEditor,
eventType: 'afterUploadFile',
cancelable: false,
returnValue: null,
path: '/upload/path/filename.zip' // 업로드된 경로The upload path.
}
// release 2.2.1 이상or above
{
editor: SynapEditor,
eventType: 'afterUploadFile',
cancelable: false,
returnValue: null,
fileType: 'file', // [2.2.1] 파일File 타입type
path: '/upload/path/filename.zip'
} |
...