진하오님 사용자지정게시판에 CHEDITOR사용하려면? 정보
진하오님 사용자지정게시판에 CHEDITOR사용하려면?본문
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=53587&sca=&sfl=wr_subject&stx=%C1%F6%C1%A4&sop=and
에 진하오님이 올린 열람자 지정게시판에서 에디터를 사용하려고하니 내용란이 안나오더군요.
저 게시판에서 CHEDITOR도 사용할수있게 하려면 어떻게 해야하는지 좀 알려주세요.
부탁합니다.
에 진하오님이 올린 열람자 지정게시판에서 에디터를 사용하려고하니 내용란이 안나오더군요.
저 게시판에서 CHEDITOR도 사용할수있게 하려면 어떻게 해야하는지 좀 알려주세요.
부탁합니다.
댓글 전체
write.skin.php 파일을 다음과 같이 수정합니다. 2번까지 있습니다.
번거로우시면 아래의 주소에서 write.skin.php 파일만 다운로드 받으셔도 됩니다.
http://dooraei.com/bbs/bbs/board.php?bo_table=test_latest
==== 1번. 수정 전 =======================================================
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor.lib.php");
echo "<script src='$g4[editor_path]/cheditor.js'></script>";
echo cheditor1('wr_content', $content);
}
========================================================================
==== 1번. 수정 후 ========================================================
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
}
=========================================================================
==== 2번. 수정 전 =========================================================
<tr>
<td colspan="2" style='padding-left:10px;'>·
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('fwrite', 'wr_content', '100%', '350');?>
<? } else { ?>
==========================================================================
==== 2번. 수정 후 ==========================================================
<tr>
<td class=write_head style='padding-left:20px;'>내용</td>
<td>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_content', $content);?>
<? } else { ?>
===========================================================================
번거로우시면 아래의 주소에서 write.skin.php 파일만 다운로드 받으셔도 됩니다.
http://dooraei.com/bbs/bbs/board.php?bo_table=test_latest
==== 1번. 수정 전 =======================================================
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor.lib.php");
echo "<script src='$g4[editor_path]/cheditor.js'></script>";
echo cheditor1('wr_content', $content);
}
========================================================================
==== 1번. 수정 후 ========================================================
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
}
=========================================================================
==== 2번. 수정 전 =========================================================
<tr>
<td colspan="2" style='padding-left:10px;'>·
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('fwrite', 'wr_content', '100%', '350');?>
<? } else { ?>
==========================================================================
==== 2번. 수정 후 ==========================================================
<tr>
<td class=write_head style='padding-left:20px;'>내용</td>
<td>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_content', $content);?>
<? } else { ?>
===========================================================================
감사합니다