필수 스크립트
Import 기능을 사용하기 위해서는 필수 스크립트를 include 해야 합니다.
임포트 확장 기능 : 링크
도형 편집기능 적용 : 링크
엑셀 함수 적용 : 링크
'editor.import.api', 'editor.upload.image.api', 'editor.upload.video.api', 'editor.upload.file.api' 키를 사용하여 업로드 및 임포트 API를 설정합니다.
서버쪽 API (URL)는 Back-end 구현에 따라 변경해야 합니다. 자세한 사항은 서버연동 매뉴얼을 참고합니다.
설정
| Key | 설명 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| editor.import.maxSize | 임포트 최대 파일사이즈를 설정합니다 (단위 byte, 기본값 10MB) | ||||||||
| editor.import.api | 임포트 API(URL)를 설정합니다. 해당 API (URL)로 문서 파일을 전송합니다. | ||||||||
| editor.import.param | 임포트 요청시 함께 전송 할 파라메터를 설정합니다. | ||||||||
| editor.import.headers |
| ||||||||
| editor. | import.requestOptions|||||||||
| Status | |||||||||
| colour | Yellow | ||||||||
| title | 릴리즈 3.2.2507 이상 |
| key | type | 설명 |
|---|---|---|
| credentials | boolean | 다른 도메인으로 AJAX 요청을 보낼 때 인증 정보(쿠키, 인증 헤더 등)를 함께 보낼지 여부를 설정합니다. |
| cache | boolean | 브라우저가 이전에 요청했던 응답을 캐시(저장)해두고 재사용할지 여부를 결정합니다. |
| timeout | number | 요청에 대한 응답 대기 시간을 밀리초(ms) 단위로 설정합니다 |
이 사이즈는 브라우저(Client)에서 설정하는 값으로 서버 설정에 따라 업로드 가능한 파일 크기가 달라 질 수 있습니다.
| Status | ||||
|---|---|---|---|---|
|
| key | type | 설명 |
|---|---|---|
| credentials | boolean | 다른 도메인으로 AJAX 요청을 보낼 때 인증 정보(쿠키, 인증 헤더 등)를 함께 보낼지 여부를 설정합니다. |
| cache | boolean | 브라우저가 이전에 요청했던 응답을 캐시(저장)해두고 재사용할지 여부를 결정합니다. |
| timeout | number | 요청에 대한 응답 대기 시간을 밀리초(ms) 단위로 설정합니다 |
| Status | ||||
|---|---|---|---|---|
|
| key | type | 설명 |
|---|---|---|
| credentials | boolean | 다른 도메인으로 AJAX 요청을 보낼 때 인증 정보(쿠키, 인증 헤더 등)를 함께 보낼지 여부를 설정합니다. |
| cache | boolean | 브라우저가 이전에 요청했던 응답을 캐시(저장)해두고 재사용할지 여부를 결정합니다. |
| timeout | number | 요청에 대한 응답 대기 시간을 밀리초(ms) 단위로 설정합니다 |
| Status | ||||
|---|---|---|---|---|
|
| key | type | 설명 |
|---|---|---|
| credentials | boolean | 다른 도메인으로 AJAX 요청을 보낼 때 인증 정보(쿠키, 인증 헤더 등)를 함께 보낼지 여부를 설정합니다. |
| cache | boolean | 브라우저가 이전에 요청했던 응답을 캐시(저장)해두고 재사용할지 여부를 결정합니다. |
| timeout | number | 요청에 대한 응답 대기 시간을 밀리초(ms) 단위로 설정합니다 |
설정예시
| Code Block | ||||||
|---|---|---|---|---|---|---|
| ||||||
{
'editor.import.maxSize': 10485760,
'editor.import.api': '/importDoc.do',
'editor.import.param': {},
'editor.import.headers': {},
'editor.import.requestOptions': {credentials: true, cache: true:, timeout: 300},
'editor.upload.maxSize': 3145728,
'editor.upload.image.api': '/uploadImage.do',
'editor.upload.image.param': {},
'editor.upload.image.headers': {},
'editor.import.requestOptions': {credentials: true, cache: true:, timeout: 300},
'editor.upload.video.api': '/uploadVideo.do',
'editor.upload.video.param': {},
'editor.upload.video.headers': {},
'editor.import.requestOptions': {credentials: true, cache: true:, timeout: 300},
'editor.upload.file.api': '/uploadFile.do',
'editor.upload.file.param': {},
'editor.upload.file.headers': {},
'editor.import.requestOptions': {credentials: true, cache: true:, timeout: 300}
} |