웹프로그램밍 자료실/JAVA 자료
[해피CGI][cgimall] CKEditor 플러그인 Easy Keymap
해피CGI윤실장
2017. 7. 5. 09:23
* ckeditor - CKEditor Easy Keymap
- 이 플러그인을 통해 에디터 사용시 단축키 설정을 손쉽게 할 수 있습니다.
* 라이센스(무료)
- GPLV3, LGPL3, MPL, MIT

* 설치방법
- 플러그인 파일을 다운로드 받아 ckeditor 가 설치된 폴더내 plugins 폴더안에 업로드 합니다.
예) http://example.com/ckeditor/plugins/easykeymap
- ckeditor 의 설정파일인 config.js 파일을 열어 아래 소스를 추가하고,
주석에 달린 설명에 맞게 설정을 조절합니다.
config.easykeymaps = {
키번호 : 실행할 소스 구문
};
- 예제로 아래와 같이 사용할 수 있습니다.
config.easykeymaps = {
4456530 : String.fromCharCode(174), //ALT + R
4456515 : String.fromCharCode(169) //ALT + C
};
OR
config.easykeymaps[CKEDITOR.ALT + 81] = String.fromCharCode(190); //ALT + Q
OR
CKEDITOR.config.easykeymaps = {
4456530 : String.fromCharCode(174), //ALT + R
4456515 : String.fromCharCode(169) //ALT + C
};
OR
config.easykeymaps[CKEDITOR.CTRL + 83] = function(editor){
alert("You have entered 'CTRL + S' In editor: " + editor.name);
};
- 이 플러그인을 통해 에디터 사용시 단축키 설정을 손쉽게 할 수 있습니다.
* 라이센스(무료)
- GPLV3, LGPL3, MPL, MIT

* 설치방법
- 플러그인 파일을 다운로드 받아 ckeditor 가 설치된 폴더내 plugins 폴더안에 업로드 합니다.
예) http://example.com/ckeditor/plugins/easykeymap
- ckeditor 의 설정파일인 config.js 파일을 열어 아래 소스를 추가하고,
주석에 달린 설명에 맞게 설정을 조절합니다.
config.easykeymaps = {
키번호 : 실행할 소스 구문
};
- 예제로 아래와 같이 사용할 수 있습니다.
config.easykeymaps = {
4456530 : String.fromCharCode(174), //ALT + R
4456515 : String.fromCharCode(169) //ALT + C
};
OR
config.easykeymaps[CKEDITOR.ALT + 81] = String.fromCharCode(190); //ALT + Q
OR
CKEDITOR.config.easykeymaps = {
4456530 : String.fromCharCode(174), //ALT + R
4456515 : String.fromCharCode(169) //ALT + C
};
OR
config.easykeymaps[CKEDITOR.CTRL + 83] = function(editor){
alert("You have entered 'CTRL + S' In editor: " + editor.name);
};