정보&강의 XE Ckeditor config.js 설정 정보
- 운영자
- 421
- 0
기록을 위해 남겨 놓습니다.
/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; // config.extraPlugins ="uploadimage"; config.extraPlugins ="uploadimage,amembed,amemoji"; config.toolbarStartupExpanded = false; // 툴바 접기 }; function checkMobileDevice() { var mobileKeyWords = new Array('Android', 'iPhone', 'iPod', 'BlackBerry', 'Windows CE', 'SAMSUNG', 'LG', 'MOT', 'SonyEricsson'); for (var info in mobileKeyWords) { if (navigator.userAgent.match(mobileKeyWords[info]) != null) { return true; } } return false; } if(checkMobileDevice()==true) { CKEDITOR.editorConfig = function( config ) { config.toolbarStartupExpanded = false; // 툴바 접기 config.height = 230; // 높이 설정 config.removePlugins = 'liststyle,tabletools,contextmenu'; // context menu disable }; CKEDITOR.replace( 'iframe', { removePlugins: 'contextmenu,tabletools' // context menu disable } ); }
이런 글도 찾아보세요!
댓글 0
권한이 없습니다. 로그인