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으로 수정
===========================================================================
끝~!!
검정배경을 사용하는 홈페이지일 경우로 올립니다.~
배경색과 폰트색을 바꾸면 됩니다.
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
5
댓글 4개

추천입니다..

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