로그인

  • 목록
  • 아래로
  • 위로
  • 쓰기
  • 검색

정보&강의 XE Ckeditor config.js 설정 정보


기록을 위해 남겨 놓습니다.

 

/**
 * @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
        } );
}

 


이런 글도 찾아보세요!

공유

facebooktwitterpinterestbandkakao story
퍼머링크

댓글 0

권한이 없습니다. 로그인

신고

"님의 댓글"

이 댓글을 신고 하시겠습니까?

삭제

"님의 댓글"

이 댓글을 삭제하시겠습니까?