내용 필터

HTML 태그

<iframe> 태그 삽입 허용

editor.contentFilter.allowIframe 옵션을 true로 설정하면 <iframe> 태그 삽입이 허용됩니다. (기본값: false)

// synapeditor.config.js
{
    'editor.contentFilter.allowIframe': false
}

<embed> 태그 삽입 허용

editor.contentFilter.allowEmbed 옵션을 true로 설정하면 <embed> 태그 삽입이 허용됩니다. (기본값: false)

// synapeditor.config.js
{
    'editor.contentFilter.allowEmbed': false
}

<object> 태그 삽입 허용

editor.contentFilter.allowObject 옵션을 true로 설정하면 <object> 태그 삽입이 허용됩니다. (기본값: false)

// synapeditor.config.js
{
    'editor.contentFilter.allowObject': false
}

2.7.0 버전부터 지원합니다. editor.contentFilter.allowLink 옵션을 true로 설정하면 <link> 태그 삽입이 허용됩니다. (기본값: false)

// synapeditor.config.js
{
    'editor.contentFilter.allowLink': false
}

HTML SCRIPT 및 이벤트 속성

주의!

이 옵션을 사용할 때 발생할 수 있는 보안 문제는 당사의 책임 범위에 포함되지 않습니다.

이러한 옵션은 XSS(크로스 사이트 스크립팅) 공격에 취약할 수 있습니다. 이는 개인정보 유출, 세션 탈취, 악성 코드 실행과 같은 위험으로 이어질 수 있습니다. 사용 시 보안에 유의합니다.

<script> 태그 삽입 허용

editor.contentFilter.allowScript 옵션을 true로 설정하면 <script> 태그 삽입이 허용됩니다. (기본값: false)

// synapeditor.config.js
{
    'editor.contentFilter.allowScript': false
}

이벤트 속성 삽입 허용

2.7.0 버전부터 지원합니다. editor.contentFilter.allowEventAttribute 옵션을 true로 설정하면 HTML 태그에 이벤트 속성(onclick, onload, onchange, ...) 삽입이 허용됩니다. (기본값: false)

// synapeditor.config.js
{
    'editor.contentFilter.allowEventAttribute': false
}