Page tree

Versions Compared

Key

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

...

이벤트 객체를 통해 내보내기 API, Request Header, Parameter, Request Options를 Parameter를 변경할 수 있습니다.

이벤트 등록: API 사용

...

Code Block
languagejs
titlee
// release 3.3.2603 이상
{
	editor: SynapEditor,
	eventType:  'beforeExportFile',
	cancelable: false,
	returnValue: null,
	fileName: 'exportFileName',  // defalut: 'untitled'
    pageOrientation: 'portrait', // 'portrait'(defalutdefault) | 'landscape',
    exportFileFormat: 'hwpx'     // 'docx' | 'hwpx'(defalutdefault) | 'hwp'
}


API

event.setApi(api)

...