You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
4.9 KiB

7 years ago
7 years ago
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or http://ckeditor.com/license
  4. */
  5. CKEDITOR.editorConfig = function( config ) {
  6. config.language = "ko";
  7. config.height = 350;
  8. config.skin = "moono-lisa";
  9. config.allowedContent = true;
  10. config.extraPlugins= 'autoembed,image2,uploadimage,uploadfile,youtube';
  11. config.removePlugins= 'image';
  12. config.removeDialogTabs = 'image:advanced;link:advanced';
  13. config.toolbar = [
  14. ['Format','Font','FontSize'],
  15. ['Image','Youtube','Link','-','Table','-','Smiley'],
  16. ['Print','Maximize'],
  17. ['Source'],
  18. '/',
  19. ['Bold','Italic','Underline','Strike','-','TextColor','BGColor','-','Find','Replace','-','Outdent','Indent'],
  20. ['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock']
  21. ];
  22. config.youtube_width = '640';
  23. config.youtube_height = '480';
  24. config.youtube_responsive = false;
  25. config.youtube_related = false;
  26. config.youtube_older = false;
  27. config.youtube_privacy = false;
  28. config.youtube_autoplay = false;
  29. config.youtube_controls = true;
  30. config.font_defaultLabel = "나눔고딕";
  31. config.font_names = "굴림;돋움;바탕;궁서;굴림체;돋움체;바탕체;궁서체;나눔고딕;나눔명조;"+
  32. 'Arial;Comic Sans MS;Courier New;Lucida Sans Unicode;monospace;sans-serif;serif;Tahoma;Times New Roman;Verdana';
  33. config.fontSize_defaultLabel = "12px";
  34. config.fontSize_sizes = "7px/9px;9px/11px;11px/12px;12px/13px;13px/15px;15px/19px;18px/24px;24px/32px;32px/48px;";
  35. config.enterMode = CKEDITOR.ENTER_DIV;
  36. config.shiftEnterMode = CKEDITOR.ENTER_DIV;
  37. config.uploadUrl = base_url + "/ajax/editor/ckeditor/json";
  38. config.filebrowserUploadUrl = base_url + "/ajax/editor/ckeditor/";
  39. config.keystrokes=[
  40. // Formatting
  41. [ CKEDITOR.CTRL + 81 /*Q*/, 'blockquote' ],
  42. [ CKEDITOR.CTRL + 66 /*B*/, 'bold' ],
  43. [ CKEDITOR.CTRL + 56 /*8*/, 'bulletedlist' ],
  44. [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 56 /*8*/, 'bulletedListStyle' ],
  45. [ CKEDITOR.CTRL + 77 /*M*/, 'indent' ],
  46. [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 77 /*M*/, 'outdent' ],
  47. [ CKEDITOR.CTRL + 73 /*I*/, 'italic' ],
  48. [ CKEDITOR.CTRL + 74 /*J*/, 'justifyblock' ],
  49. [ CKEDITOR.CTRL + 69 /*E*/, 'justifycenter' ],
  50. [ CKEDITOR.CTRL + 76 /*L*/, 'justifyleft' ],
  51. [ CKEDITOR.CTRL + 82 /*R*/, 'justifyright' ],
  52. [ CKEDITOR.CTRL + 55 /*7*/, 'numberedlist' ],
  53. [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 55 /*7*/, 'numberedListStyle' ],
  54. [ CKEDITOR.CTRL + 89 /*Y*/, 'redo' ],
  55. [ CKEDITOR.CTRL + 32 /*SPACE*/, 'removeFormat' ],
  56. [ CKEDITOR.CTRL + 65 /*A*/, 'selectall' ],
  57. [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 88 /*X*/, 'strike' ],
  58. [ CKEDITOR.CTRL + 188 /*COMMA*/, 'subscript' ],
  59. [ CKEDITOR.CTRL + 190 /*PERIOD*/, 'superscript' ],
  60. [ CKEDITOR.CTRL + 85 /*U*/, 'underline' ],
  61. [ CKEDITOR.CTRL + 90 /*Z*/, 'undo' ],
  62. // Insert
  63. [ CKEDITOR.ALT + 65 /*A*/, 'anchor' ],
  64. [ CKEDITOR.ALT + 68 /*D*/, 'creatediv' ],
  65. [ CKEDITOR.ALT + CKEDITOR.SHIFT + 68 /*D*/, 'editdiv' ],
  66. [ CKEDITOR.ALT + 70 /*F*/, 'flash' ],
  67. [ CKEDITOR.ALT + 72 /*H*/, 'horizontalrule' ],
  68. [ CKEDITOR.CTRL + 57 /*9*/, 'image' ],
  69. [ CKEDITOR.ALT + 73 /*I*/, 'image' ],
  70. [ CKEDITOR.CTRL + 75 /*K*/, 'link' ],
  71. [ CKEDITOR.ALT + 76 /*L*/, 'link' ],
  72. [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 75 /*K*/, 'unlink' ],
  73. [ CKEDITOR.ALT + CKEDITOR.SHIFT + 76 /*L*/, 'unlink' ],
  74. [ CKEDITOR.CTRL + 13 /*ENTER*/, 'pagebreak' ],
  75. [ CKEDITOR.ALT + 13 /*ENTER*/, 'pagebreak' ],
  76. [ CKEDITOR.ALT + 69 /*E*/, 'smiley' ],
  77. [ CKEDITOR.ALT + 67 /*C*/, 'specialchar' ],
  78. [ CKEDITOR.ALT + 84 /*T*/, 'table' ],
  79. [ CKEDITOR.ALT + 79 /*O*/, 'templates' ],
  80. // Other - dialogs, views, etc.
  81. [ 112 /*F1*/, 'about' ],
  82. [ CKEDITOR.ALT + 48 /*ZERO*/, 'blur' ],
  83. [ CKEDITOR.ALT + 8 /*Backspace*/, 'blur' ],
  84. [ CKEDITOR.CTRL + 87 /*W*/, 'blur' ],
  85. [ CKEDITOR.ALT + 51 /*#3*/, 'colordialog' ],
  86. [ CKEDITOR.ALT + 77 /*M*/, 'contextMenu' ],
  87. [ CKEDITOR.ALT + 122 /*F11*/, 'elementsPathFocus' ],
  88. [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 70 /*F*/, 'find' ],
  89. [ CKEDITOR.ALT + 88 /*X*/, 'maximize' ],
  90. [ CKEDITOR.CTRL + 113 /*F2*/, 'preview' ],
  91. [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 80 /*P*/, 'print' ],
  92. [ CKEDITOR.CTRL + 72 /*H*/, 'replace' ],
  93. [ CKEDITOR.ALT + 83 /*S*/, 'scaytcheck' ],
  94. [ CKEDITOR.ALT + 66 /*B*/, 'showblocks' ],
  95. [ CKEDITOR.ALT + CKEDITOR.SHIFT + 84 /*T*/, 'showborders' ],
  96. [ CKEDITOR.ALT + 90 /*Z*/, 'source' ],
  97. [ CKEDITOR.ALT + 48 /*ZERO*/, 'toolbarCollapse' ],
  98. [ CKEDITOR.ALT + 121 /*F10*/, 'toolbarFocus' ]
  99. ];
  100. };