썸머노트 에디터 >  전체화면 제거 문의

https://imgur.com/a/trnDgae

썸머노트 에디터 >  전체화면 아이콘과 기능을

제거 또는 숨기기 또는 비활성화하려면 어떻게 해야 할까요?

 

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
  • 안녕하세요~^^

    KBoard 글 작성 에디터 중 썸머노트 에디터에서

    전체화면 아이콘을 안 보이게 하시려면

    아래의 코드를 활용해보시겠어요?

    add_action('wp_head', 'wp_head_20200608');
    function wp_head_20200608(){
    	?>
    	<script>
    	jQuery(document).ready(function(){
    		var kboard_mod = jQuery('input[name=mod]', '.kboard-form').val();
    		if(kboard_mod == 'editor'){
    			if(kboard_current.use_tree_category == 'yes'){
    				kboard_tree_category_parents();
    			}
    			
    			if(kboard_current.use_editor == 'snote'){ // summernote
    				jQuery('.summernote').each(function(){
    					var height = parseInt(jQuery(this).height());
    					var placeholder = jQuery(this).attr('placeholder');
    					var lang = 'en-US';
    					
    					if(kboard_settings.locale == 'ko_KR'){
    						lang = 'ko-KR';
    					}
    					else if(kboard_settings.locale == 'ja'){
    						lang = 'ja-JP';
    					}
    					
    					jQuery(this).summernote({
    						toolbar: [
    							['style', ['style']],
    							['fontsize', ['fontsize']],
    							['font', ['bold', 'italic', 'underline', 'clear']],
    							['fontname', ['fontname']],
    							['color', ['color']],
    							['para', ['ul', 'ol', 'paragraph']],
    							['height', ['height']],
    							['table', ['table']],
    							['insert', ['link', 'picture', 'hr']],
    							['view', ['codeview']],
    							['help', ['help']]
    						],
    						fontNames: ['Arial', 'Arial Black', 'Comic Sans MS', 'Courier New', 'Helvetica Neue', 'Helvetica', 'Impact', 'Lucida Grande', 'Tahoma', 'Times New Roman', 'Verdana', 'Nanum Gothic', 'Malgun Gothic', 'Noto Sans KR', 'Apple SD Gothic Neo'],
    						fontNamesIgnoreCheck: ['Arial', 'Arial Black', 'Comic Sans MS', 'Courier New', 'Helvetica Neue', 'Helvetica', 'Impact', 'Lucida Grande', 'Tahoma', 'Times New Roman', 'Verdana', 'Nanum Gothic', 'Malgun Gothic', 'Noto Sans KR', 'Apple SD Gothic Neo'],
    						fontSizes: ['8','9','10','11','12','13','14','15','16','17','18','19','20','24','30','36','48','64','82','150'],
    						lang: lang,
    						height: height,
    						placeholder: placeholder
    					});
    				});
    			}
    		}
    	});
    	</script>
    	<?php
    }

    위의 코드에서 toolbar 쪽 설정을 변경하시면 다른 메뉴들도 안 보이게 하실 수 있습니다.

    테마의 functions.php 파일에 코드를 추가하거나 Code Snippets 플러그인을 사용해서 코드를 추가할 수 있습니다.

     

    아래의 관련 링크도 참고해보세요.

    https://summernote.org/getting-started/#i18n-support

    고맙습니다.

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요