Web-Front/TinyMCE
[TinyMCE] Integration options 종류
usang0810
2020. 5. 27. 17:47
tinymce.init({
selector: 'css선택자',
integration options...
});
auto_focus: '요소의 id값'
-
에디터가 생성된 후 포커스를 해당 에디터로 자동으로 맞춰준다.
init_instance_callback : function(editor) {}
- 에디터 객체가 초기화 된 후의 콜백함수를 지정할 수 있다.
plugins
- TinyMCE가 로드할 때 로드할 플러그인을 지정한다.
- 기본적으로 TinyMCE는 플러그인을 로드하지 않는다.
- 여러개의 플러그인을 로드할 때는 구분자를 ' ' 공백으로 작성한다.
자주 사용하는 플러그인 목록
plugins: [
'advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker',
'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking',
'table emoticons template paste help'
]
setup: function(editor) {}
- 에디터가 로드되기 전의 콜백함수를 지정할 수 있다.