cheditor4 배경색을 바꾸는방법~~!! > 그누4 팁자료실

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.

cheditor4 배경색을 바꾸는방법~~!! 정보

cheditor4 배경색을 바꾸는방법~~!!

본문

cheditor4 배경색을 바꾸는 방법이 없는 것 같아서~~!!
검정배경을 사용하는 홈페이지일 경우로 올립니다.~
배경색과 폰트색을 바꾸면 됩니다.

cheditor4/cheditor.js 파일에
112번줄쯤에 있는 
==============================
    this.config = {
        editorWidth     : '100%',
        editorHeight    : '300px',
        editorFontSize  : '9pt',
        editorFontFace  : 'gulim',
        editorBorder    : '1px solid #ccc',
        tabIndex        : 0,
        lineHeight      : '17px',
==============================
다음에
==============================
        backgroundColor : '#000', 
        color           : '#fff',
============================== 추가~!! 그리고

227번줄 resetEditArea : function (loadContents) { 함수 아래쪽~
    oEditor.document.body.style.lineHeight = this.config.lineHeight; 아래에
============================================================================
    oEditor.document.body.style.backgroundColor = this.config.backgroundColor;
    oEditor.document.body.style.color = this.config.color; 
============================================================================ 추가~!!

그리고 html 편집부분은

줄914 번쯤~에 있는 editMode: function () { 함수 아래 940번줄 쯤
===========================================================================
        this.editArea.document.body.style.color = '#000'; <- fff로 수정
        this.editArea.document.body.style.lineHeight = this.config.lineHeight;
        this.editArea.document.body.style.background = '#fff'; <- 000으로 수정
===========================================================================

끝~!!

 

추천
5
  • 복사

댓글 4개

© SIRSOFT
현재 페이지 제일 처음으로