Page tree

Versions Compared

Key

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

Status
colourYellow
title릴리즈 2.4.1 이상

에디터 객체에 api, params를 입력 하여 임포트 할 수 있는 API를 제공합니다API to import a document by entering api and params in the Editor object.


Parameters:

Name

Type

Description

apiString서버로 요청할 apiAPI to request to the server
paramsObjectapi request에 설정할 parameterParameter to set in the api request
bOverwriteBoolean임포트시 덮어쓰기 (true인 경우 덮어쓰기)

참고) 절대 경로를 활용한 import

...

Overwrite during import (overwrite when set to true)


Note) Import Using Absolute Path

You may import a document by receiving the document's absolute server path as params and using that in the server's import logic.


Example:

Code Block
languagejs
themeEmacs
const api = "./importOnServer";
const params = { path: "D:\test.docx" };
editor.openDocumentOnServer(api, params, true);

...