테스트 사이트 - 개발 중인 베타 버전입니다

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으로 수정
===========================================================================

끝~!!

 

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 4개

덕분에 쉽게 처리했네요. .감사합니다.
첫번째거만 수정하고 왜 안되나 했더니 추가 수정부분이 있었네요. ^^ 덕분에 잘 해결합니다.
색말고 투명값을 줄 순없나요? 위에꺼보고 색대신 필터 알파값 줬는데 제가 잘못줬는지 안먹히더라구용 ㅠㅠ

게시판 목록

그누4 팁자료실

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