템플릿

Synap Editor에서 제공하는 템플릿 기능을 사용하면 다양한 문서를 빠르고 쉽게 작성할 수 있습니다.

브라우저에서 접근할 수 있는 위치에 템플릿 파일(HTML)을 등록하고 아래와 같이 설정하면 템플릿 기능을 사용할 수 있습니다.

설정

키설명
editor.template템플릿을 설정합니다.
editor.template.headers2.7.0 버전부터 지원합니다. 템플릿 요청 헤더를 설정합니다.

설정 예시

// synapeditor.config.js
{
    'editor.template': [
        {
            'category': 'template_category1',
            'label': 'Report',
            'items': [
            {
                'name': 'Research Report',
                'path': '/resource/template/template1.html'
            },
            {
                'name': 'Sales Report',
                'path': '/resource/template/template2.html'
            }]
        }
    ],
    'editor.template.headers': {}
}

1.00

관련 정보

이 기능은 사용자 편의 기능 데모에서 사용해 볼 수 있습니다.