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

  

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

{   // 이전 버전의 기본값
    'editor.import.extensions' : ['docx', 'doc', 'hwp', 'hml', 'html', 'htm', 'txt', 'xls', 'xlsx', 'odt'],

    // 2.18.0 이상 버전의 기본값
    'editor.import.extensions' : ['docx', 'doc', 'hwp', 'hwpx', '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' : ['docx', 'hwpx', 'xlsx', 'pptx'],
}

  

'editor.upload.image.extensions' 키를 사용해 업로드 가능한 이미지 파일 확장자를 설정할 수 있습니다.

{   // 기본값
	'editor.upload.image.extensions': ['jpg', 'gif', 'png', 'jpeg'],

    // 설정 예시
	'editor.upload.image.extensions': ['jpg', 'png'],
}

  

'editor.upload.video.extensions' 키를 사용해 업로드 가능한 비디오 파일 확장자를 설정할 수 있습니다.

{   // 기본값
	'editor.upload.video.extensions': ['mp4', 'ogg', 'webm'],

    // 설정 예시
	'editor.upload.video.extensions': ['mp4'],
}

  

'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 등)
 - 직접 실행될 수 있거나 안전하지 않음

  

{   // 이전 버전의 기본값
	'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',
        'txt'
    ],

    // 설정 예시
	'editor.upload.file.extensions': [
        'tif', 'tiff', 'webp', 'mp3', 'mp4', 'wav', 'webm'
    ]
}