Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

임포트 가능 확장자 설정을 위한 editor.import.extensions 키는 릴리즈 2.8.0 이상에서만 제공합니다.

`editor.import.extensions` 키를 사용해 임포트 가능한 문서 확장자를 설정할 수 있습니다.

synapeditor.config.js
{   // import 기본 확장자
    'editor.import.extensions' : ['docx', 'doc', 'hwp', 'hml', 'html', 'htm', 'txt', 'xls', 'xlsx', 'odt'],
    // 3.0.0 이상
    'editor.import.extensions' : ['docx', 'doc', 'hwp', 'hwpx', 'hml', 'html', 'htm', 'txt', 'xls', 'xlsx', 'odt', 'ppt', 'pptx'],
}

'editor.upload.image.extensions' 키를 사용해 허용할 이미지파일의  확장자를 설정할 수 있습니다.

synapeditor.config.js
{   // image 기본 확장자
	'editor.upload.image.extensions': ['jpg', 'gif', 'png', 'jpeg'],
}


'editor.upload.video.extensions' 키를 사용해 허용할 비디오파일의 확장자를 설정할 수 있습니다.

synapeditor.config.js
{   // video 기본 확장자
	'editor.upload.video.extensions': ['mp4', 'ogg', 'webm'],
}


'editor.upload.file.extensions' 키를 사용해 허용할 업로드 파일 확장자를 설정할 수 있습니다.

주의가 필요한 파일 형식
1. 문서 계열 (doc, docx, ppt, pptx, xls, xlsx, pdf, rtf, odt, ods, odp, hwp, hwpx 등)
 - 매크로나 스크립트가 포함될 수 있음

2. 마크업 / 스타일 언어 (xml, css, svg, textile, html 등)
 - XSS나 스크립트 삽입 위험이 있음

3. 실행 파일 / 임베디드 파일 (swf, eof 등)
 - 직접 실행될 수 있거나 안전하지 않음

synapeditor.config.js
{   // file 기본 확장자
	'editor.upload.file.extensions': [
        'bmp', 'css', 'csv', 'diff', 'doc', 
        'docx', 'eof', 'gif', 'jpeg', 'jpg', 
        'json', 'mp3', 'mp4', 'm4a', 'odp', 
        'ods', 'odt', 'ogg', 'otf', 'patch', 
        'pdf', 'png', 'ppt', 'pptx', 'rtf', 
        'svg', 'swf', 'textile', 'tif', 'tiff',
        'ttf', 'txt', 'wav', 'webm', 'woff',
        'xls', 'xlsx', 'xml', 'md', 'vtt', 
        'hwp', 'hml', 'html'
    ],
    // 3.2.2509, 2.20.2509 이상
	'editor.upload.file.extensions': [
        'bmp', 'gif', 'jpeg', 'jpg', 'png', 'tif', 'tiff', 'webp',
        'mp3', 'mp4', 'm4a', 'ogg', 'wav', 'webm', 'vtt',
        'csv', 'json', 'txt', 'md', 'diff', 'patch',
        'otf', 'ttf', 'woff'
    ]
}



  • No labels