Page tree

Versions Compared

Key

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

사이냅 에디터에서 제공하는 템플릿 기능을 이용하면 더 더양한 문서를 빠르고 쉽게 작성 할 수 글머리기호, 글머리번호를 직접 표현하고 있습니다.

브라우저에서 접근가능한 특정 위치에 template 파일(HTML)을 등록하고 아래와 같이 설정하면 template기능을 기본 HTML 글머리렌더링기능을 사용 할 수 있습니다.

설정

Key설명
editor.template템플릿을 설정합니다.editor.template.headers
Status
colourYellow
title릴리즈 2.7.0 이상
 템플릿 요청 헤더를 useHTMLList
2.8.0 기본 HTML 글머리렌더링을 설정합니다.

설정예시

Code Block
languagejs
themeEmacs
titlesynapeditor.config.js
{
	'editor.templateuseHTMLList': [
		{
			'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': {}
}

Image Removed

관련기능

템플릿 불러오기 체험하기
true
}

해당옵션을 true로 사용 할 경우, 다단계 글머리는 지원을 하지 않습니다. 툴바에서 제거하시고 사용하시기를 권장드립니다.

'editor.useHTMLList': false (기본값)

'editor.useHTMLList': true 

Image Added

Image Added