Editor Object
Methods exposed on the SynapEditor instance.
Editor lifecycle / mode
destroy— Clean up resources to prevent memory leaksrender— Render pending model changessetMode— Switch between edit / preview / source-code viewisEditModeisPreviewModeisCodeViewMode
Content open / save
openHTML— Load HTML into the editoropenDocumentByURLopenDocumentByDataopenDocumentOnServeropenSEModel— Open from an SE modelgetPublishingHtml— Get HTML outputgetBodyModelJSON— Get body model JSONgetModelDiffHTML— Diff two body modelsexportFile— Export to hwpx / hwp / docxxhtml4pubdoc— Filter HTML for Korean public documents
Dirty / edit state
Text extraction / replacement
HTML insertion
Selection / DOM access
getSelectiongetHTMLElementgetHTMLElementsgetContentsDocumentgetTableCellHTMLElementgetTableCellDataByFieldName
API model
Locking
Uploads
addUploadPathgetUploadedFilesuploadBase64ImagesdownloadAndUploadImagessetCustomUploadFunctionsetCustomImportFunction
Commands
execCommand— Run an action (see Actions)