에디터 객체
SynapEditor 인스턴스에서 제공하는 메서드.
에디터 라이프사이클 / 모드
destroy— 메모리 누수를 방지하기 위해 리소스 정리render— 보류 중인 모델 변경 사항 렌더링setMode— 편집 / 미리보기 / 소스 코드 보기 모드 전환isEditModeisPreviewModeisCodeViewMode
내용 열기 / 저장
openHTML— HTML을 에디터에 불러오기openDocumentByURLopenDocumentByDataopenDocumentOnServeropenSEModel— SE 모델에서 열기getPublishingHtml— HTML 출력 가져오기getBodyModelJSON— 본문 모델 JSON 가져오기getBodyModelJSONForAI— AI용으로 필터링된 본문 모델 JSON 가져오기getModelDiffHTML— 두 본문 모델 비교(diff)exportFile— hwpx / hwp / docx로 내보내기xhtml4pubdoc— 공문서용 HTML 필터링
더티 / 편집 상태
텍스트 추출 / 교체
HTML 삽입
선택 / DOM 접근
getSelectiongetHTMLElementgetHTMLElementsgetContentsDocumentgetTableCellHTMLElementgetTableCellDataByFieldName
API 모델
잠금
업로드
addUploadPathgetUploadedFilesuploadBase64ImagesdownloadAndUploadImagessetCustomUploadFunctionsetCustomImportFunction
명령어
execCommand— 액션 실행 (자세한 내용은 Actions 참조)