Page tree

Versions Compared

Key

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


Warning

임포트 가능 확장자 설정을 위한 editor.import.extensions 키는

Status
title릴리즈 2.8.0 이상
에서만 제공합니다.


'editor.import.extensions' 'editor.upload.image.extensions', 'editor.upload.video.extensions', 'editor.upload.file.extensions' 키를 사용해 업로드 가능 확장자를 설정할 키를 사용해 임포트 문서의 확장자를 설정 할 수 있습니다.

Code Block
languagejs
themeEmacs
titlesynapeditor.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.import.extensions', 'editor.upload.image.extensions', 'editor.upload.video.extensions', 'editor.upload.file.extensions' 키를 사용해 업로드 가능 확장자를 설정할 수 있습니다.

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


'editor.import.extensions', 'editor.upload.image.extensions', 'editor.upload.video.extensions', 'editor.upload.file.extensions' 키를 사용해 업로드 가능 확장자를 설정할 수 있습니다.

Code Block
languagejs
themeEmacs
titlesynapeditor.config.js
{   // video 기본 확장자
	'editor.upload.video.extensions': ['mp4', 'ogg', 'webm'],
}


'editor.import.extensions', 'editor.upload.image.extensions', 'editor.upload.video.extensions', 'editor.upload.file.extensions' 키를 사용해 업로드 가능 확장자를 설정할 수 있습니다.

Warning

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

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

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


Code Block
languagejs
themeEmacs
titlesynapeditor.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'
    ]
}