Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

How to set up 설정방법

Configuration Method

KeyDescriptions
editor.import.maxSize

Set Sets the maximum file size. (unit - byte, default - 10MB)

As this This value of file size is set by the browser (client), the value of maximum importable file size following may vary depending on the server configuration is distinguished from it.임포트 최대 파일사이즈를 설정합니다 (단위 byte, 기본값 10MB)
이 사이즈는 브라우저(Client)에서 설정하는 값으로 서버 설정에 따라 임포트 가능한 파일 크기가 달라 질 수 있습니다.

editor.import.api

Set API for import (URL). This API(URL) can be used to send the document file.

임포트 API(URL)를 설정합니다. 해당 API (URL)로 문서 파일을 전송합니다.

editor.import.param

Set the parameter to send along with the import request.

임포트 요청시 함께 전송 할 파라메터를 설정합니다.

editor.upload.maxSize

Set the maximum file size. (unit byte, default 3MB)

업로드 최대 파일사이즈를 설정합니다 (단위 byte, 기본값 3MB)

As this value o f file size is set by browser (client), the value of uploadable file size following the server configuration is distinguished from it.
이 사이즈는 브라우저(Client)에서 설정하는 값으로 서버 설정에 따라 업로드 가능한 파일 크기가 달라 질 수 있습니다.

editor.upload.image.api

Set the API for uploading image. This API (URL) can be used to send the image.

이미지 업로드 API(URL)을 설정합니다. 해당 API (URL)로 이미지를 전송합니다.

editor.upload.image.param

Set the parameter to send along with the upload image request.

이미지 업로드 요청시 함께 전송 할 파라메터를 설정합니다.

editor.upload.video.api

Set the parameter for uploading video. This API (URL) can be used to send the video.

동영상 업로드 API(URL)을 설정합니다. 해당 API (URL)로 동영상을 전송합니다.

editor.upload.video.param

Set the parameter to send along with the upload video request.

동영상 업로드 요청시 함께 전송 할 파라메터를 설정합니다.

editor.upload.file.api

Set the parameter for uploading file. This API (URL) can be sued to send the file.

파일 업로드 API(URL)을 설정합니다. 해당 API (URL)로 파일을 전송합니다.

editor.upload.file.param

Set the parameter to send along with the upload file request.

파일 업로드 요청시 함께 전송 할 파라메터를 설정합니다.

Example of configuration 설정예시

Code Block
languagejs
themeEmacs
titlesynapeditor.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': {},
}