...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ 'editor.lang' : 'en' } |
고급 설정
포커스 지정
'editor.initFocus' 설정으로 에디터 첫 로딩후 안쪽으로 포커스 지정 여부를 설정합니다. (기본값 = true)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
'editor.initFocus': true
} |
템플릿
브라우저에서 접근가능한 특정 위치에 template 파일을 등록하고 아래와 같이 설정하면 template기능을 사용 할 수 있다.
...
'editor.contentFilter.allowIFrame' 값을 설정을 false로 설정하면 사용자 iframe tag 삽입을 제한하여 자동 태그 제거.
'editor.contentFilter.allowIScript' 값을 false로 설정하면 사용자 script tag 삽입을 제한하여 자동 태그 제거.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ 'editor.contentFilter.allowIFrame': false, } |
'editor.contentFilter.allowIScript' 설정을 false로 설정하면 사용자 script tag 삽입을 제한하여 자동 태그 제거.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
'editor.contentFilter.allowScript': false
} |
Unload 메세지
'editor.unloadMessage' 값을 설정을 true로 설정하면 웹페이지가 unload 되었을 때 '페이지를 나가시겠습니까' 확인메세지가 보여집니다. (기본값 = false)
...
'editor.horizontalScroll' 값을 설정을 true로 설정하면 에디터에서 가로스크롤을 사용합니다. (기본값 = true)
...
레이어 가이드
'editor.guide.div' 값을 설정을 true로 설정하면 에디터에서 레이어 가이드를 표시합니다. (기본값 = false)
...
툴바영역 고정
'editor.mode.sticky' 값으로 설정으로 에디터에서 헤더 영역을 외부 스크롤에 고정할지 여부를 설정 합니다. (기본값 = false)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ 'editor.mode.sticky': false } |
높이 조절
'editor.resizable' 값으로 에디터의 설정으로 에디터의 높이 조절가능 여부를 설정합니다. (기본값 = false)
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
'editor.upload.image.extensions': ['jpg', 'gif', 'png', 'jpeg'],
'editor.upload.video.extensions': ['mp4', 'ogg', 'webm'],
'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']
} |
base64 이미지 사용
'editor.upload.image.base64' 설정으로 이미지 업로드 시 base64를 사용할 것인지를 설정합니다. (기본값 = false)
true로 설정이 이미지 업로드 후 base64로 이미지가 표현됩니다.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
'editor.upload.image.base64': false,
} |