Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Use "editor.import.api", "editor.upload.image.api", "editor.upload.video.api", "editor.upload.file.api" keys to set up the location of upload / import APIs.
These API locations need to match with those of back-end implementation details. Please refer to Integration page for further information.

설정방법

Key설명
editor.import.maxSize

임포트 최대 파일사이즈를 설정합니다 (단위 byte, 기본값 10MB)
이 사이즈는 브라우저(Client)에서 설정하는 값으로 서버 설정에 따라 임포트 가능한 파일 크기가 달라 질 수 있습니다.

editor.import.api임포트 API(URL)를 설정합니다. 해당 API (URL)로 문서 파일을 전송합니다.
editor.import.param임포트 요청시 함께 전송 할 파라메터를 설정합니다.
editor.upload.maxSize업로드 최대 파일사이즈를 설정합니다 (단위 byte, 기본값 3MB)
이 사이즈는 브라우저(Client)에서 설정하는 값으로 서버 설정에 따라 업로드 가능한 파일 크기가 달라 질 수 있습니다.
editor.upload.image.api이미지 업로드 API(URL)을 설정합니다. 해당 API (URL)로 이미지를 전송합니다.
editor.upload.image.param이미지 업로드 요청시 함께 전송 할 파라메터를 설정합니다.
editor.upload.video.api동영상 업로드 API(URL)을 설정합니다. 해당 API (URL)로 동영상을 전송합니다.
editor.upload.video.param동영상 업로드 요청시 함께 전송 할 파라메터를 설정합니다.
editor.upload.file.api파일 업로드 API(URL)을 설정합니다. 해당 API (URL)로 파일을 전송합니다.
editor.upload.file.param파일 업로드 요청시 함께 전송 할 파라메터를 설정합니다.

설정예시

synapeditor.config.js
{  
	'editor.import.maxSize': 10485760,
	'editor.import.api': '/importDoc',
	'editor.import.param': {},
	'editor.upload.maxSize': 3145728,
	'editor.upload.image.api': '/uploadImage',
	'editor.upload.image.param': {},
	'editor.upload.video.api': '/uploadVideo',
	'editor.upload.video.param': {},
	'editor.upload.file.api': '/uploadFile',
	'editor.upload.file.param': {},
}
  • No labels