썸머노트 줄간격 바꾸기

1. 정확한 제품 또는 플러그인 이름

 

kboard 썸머노트 에디터

2. 상세 내용

기본 줄간격을 수정하고 싶어서요

기본줄간격이 좀 넓은 편이라

본인이 썸머노트에 기본줄간격 수정 안한상태에서

출력시 바로 0.1 간격으로 넣고 싶은데요.

어디서 수정하면 될까요? 

script.js 파일 찾아보고 있는데 

폰트사이즈만 나와서 ^^; 문의 드립니다. 

 

3. 확인 가능한 상세 페이지 주소

 

 

4. 수정한 코드 내역 (있다면)

 

 

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
  • 스크립트.js 파일에

    jQuery(this).summernote({                                                 
                        enterParagraphs: false,
                                                                            toolbar: [
                            ['style', ['style']],
                            ['fontsize', ['fontsize']],
                            ['font', ['bold', 'italic', 'underline', 'clear']],
                            ['fontname', ['fontname']],
                            ['color', ['color']],
                            ['para', ['ul', 'ol', 'paragraph']],
                            ['height', ['height']],
                            ['table', ['table']],
                            ['insert', ['link', 'video', 'hr']],
                            ['view', ['fullscreen', '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
                    });
                });
            }
        }
    });

     

    저 부분 검색해서 넣었는데 안돼서 글썼어요 ^^;; 

    height: height, 부분이 있는데

    혹시 저 부분을 수정하면 될까요? 

     

     

    같은 스크립트.js 파일에 이 코드도 넣어봤는데 안 먹히더라구요;ㅁ; 

    혹시 아래와 같은 부분을 넣어야 하는 파일이 따로 있을까요 ?? 

     

    //Enter 후에 <br><br> 제거 하는 코드

    $('#summernote').summernote({ 
          //other options
        
      }).on("summernote.enter", function(we, e) {
            $(this).summernote("pasteHTML", "<br><br>");
            e.preventDefault();
        }); 

    // @param {Number} line height - unit is px
    $('#summernote').summernote('lineHeight', 0.1);

     

     

  • 안녕하세요~^^

    아래 참고할만한 링크를 남겨드릴테니

    링크를 참고 후 코드를 직접 수정해보시겠어요?

    https://www.cosmosfarm.com/threads/document/63725

    고맙습니다.

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기