...
Code Block |
---|
|
{
editor: SynapEditor,
eventType: "beforeUploadImage",
cancelable: true,
returnValue: null,
fileName: "filename.png",
isBackground: false
} |
3. afterUploadImage
이미지를 업로드한 후 발생합니다.
이벤트 등록: 함수방식
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
function SynapEditorAfterUploadImage(e) {
}
new SynapEditor(editorId, editorConfig, html); |
이벤트 등록: 에디터 초기화시 등록
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var eventListeners = {
afterUploadImage: function (e) {
}
};
new SynapEditor(editorId, editorConfig, html, eventListeners); |
함수로 전달되는 객체 형태
함수로 전달되는 파라미터 e의 형식
Code Block |
---|
|
{
editor: SynapEditor,
eventType: "afterUploadImage",
cancelable: false,
returnValue: null,
path: "/upload/path/filename.png",
elementId: "se-123456-abcdefg-7890",
isBackground: false
} |
4. beforeUploadVideo
비디오를 업로드 하기 전에 발생합니다. 이벤트 진행 취소가 가능합니다.
이벤트 등록: 함수방식
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
function SynapEditorBeforeUploadVideo(e) {
}
new SynapEditor(editorId, editorConfig, html); |
이벤트 등록: 에디터 초기화시 등록
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var eventListeners = {
beforeUploadVideo: function (e) {
}
};
new SynapEditor(editorId, editorConfig, html, eventListeners); |
함수로 전달되는 객체 형태
함수로 전달되는 파라미터 e의 형식
Code Block |
---|
|
{
editor: SynapEditor,
eventType: "beforeUploadVideo",
cancelable: true,
returnValue: null,
fileName: "filename.mp4"
} |
5. afterUploadVideo
비디오를 업로드한 후 발생합니다.
이벤트 등록: 함수방식
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
function SynapEditorAfterUploadVideo(e) {
}
new SynapEditor(editorId, editorConfig, html); |
이벤트 등록: 에디터 초기화시 등록
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var eventListeners = {
afterUploadVideo: function (e) {
}
};
new SynapEditor(editorId, editorConfig, html, eventListeners); |
함수로 전달되는 객체 형태
함수로 전달되는 파라미터 e의 형식
Code Block |
---|
|
{
editor: SynapEditor,
eventType: "afterUploadVideo",
cancelable: false,
returnValue: null,
path: "/upload/path/filename.mp4",
elementId: "se-123456-abcdefg-7890"
} |
6. beforeUploadFile
파일을 업로드 하기 전에 발생합니다. 이벤트 진행 취소가 가능합니다.
이벤트 등록: 함수방식
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
function SynapEditorBeforeUploadFile(e) {
}
new SynapEditor(editorId, editorConfig, html); |
이벤트 등록: 에디터 초기화시 등록
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var eventListeners = {
beforeUploadFile: function (e) {
}
};
new SynapEditor(editorId, editorConfig, html, eventListeners); |
함수로 전달되는 객체 형태
함수로 전달되는 파라미터 e의 형식
Code Block |
---|
|
{
editor: SynapEditor,
eventType: "beforeUploadFile",
cancelable: true,
returnValue: null,
fileName: "filename.zip"
} |
7. afterUploadFile
파일을 업로드한 후 발생합니다.
이벤트 등록: 함수방식
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
function SynapEditorAfterUploadFile(e) {
}
new SynapEditor(editorId, editorConfig, html); |
이벤트 등록: 에디터 초기화시 등록
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var eventListeners = {
afterUploadFile: function (e) {
}
};
new SynapEditor(editorId, editorConfig, html, eventListeners); |
함수로 전달되는 객체 형태
함수로 전달되는 파라미터 e의 형식
Code Block |
---|
|
{
editor: SynapEditor,
eventType: "afterUploadFile",
cancelable: false,
returnValue: null,
path: "/upload/path/filename.zip"
} |