체에디터 문의드립니다. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

체에디터 문의드립니다. 정보

체에디터 문의드립니다.

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :

체에디터 문의드립니다. 체에디터를 여러개 확장해서 쓰고있습니다.
그런데 문제가 글자에 색을 입력해주고 글작성후 수정버튼누르고 보면 글색이 지정한색이 아닌 다른엉뚱한
컬러로 변경되있습니다.

원래wr_content 는 잘나오는데 새로추가한 것들이 말썽이네요 ㅠㅠ

왜이런걸까요 ㅠㅠ


소스코드
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

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');
    echo cheditor1('wr_3', '100%', '100');
echo cheditor1('wr_4', '100%', '100');
echo cheditor1('wr_5', '100%', '100');
echo cheditor1('wr_6', '100%', '100');
echo cheditor1('wr_7', '100%', '100');
echo cheditor1('wr_8', '100%', '100');

}

$title_msg = "동영상올리기";
?>

<div style="height:14px; line-height:1px; font-size:1px;">&nbsp;</div>

<style type="text/css">
.write_head { height:30px; text-align:center; color:#8492A0; }
.field { border:1px solid #ccc; }
</style>

<script type="text/javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>

<form name="fwrite" method="post" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data" style="margin:0px;">
<input type=hidden name=null>
<input type=hidden name=w        value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id    value="<?=$wr_id?>">
<input type=hidden name=sca      value="<?=$sca?>">
<input type=hidden name=sfl      value="<?=$sfl?>">
<input type=hidden name=stx      value="<?=$stx?>">
<input type=hidden name=spt      value="<?=$spt?>">
<input type=hidden name=sst      value="<?=$sst?>">
<input type=hidden name=sod      value="<?=$sod?>">
<input type=hidden name=page    value="<?=$page?>">
<input type=hidden value='html1' name='html'>

<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>


<div style="border:1px solid #ddd; height:34px; background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x;">
<div style="font-weight:bold; font-size:14px; margin:7px 0 0 10px;">:: <?=$title_msg?> ::</div>
</div>
<div style="height:3px; background:url(<?=$board_skin_path?>/img/title_shadow.gif) repeat-x; line-height:1px; font-size:1px;"></div>


<table width="100%" border="0" cellspacing="0" cellpadding="0">
<colgroup width=90>
<colgroup width=''>
<tr><td colspan="2" style="background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x; height:3px;"></td></tr>
<? if ($is_name) { ?>
<tr>
    <td class=write_head>이 름</td>
    <td><input class='ed' maxlength=20 size=15 name=wr_name itemname="이름" required value="<?=$name?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>

<? if ($is_password) { ?>
<tr>
    <td class=write_head>패스워드</td>
    <td><input class='ed' type=password maxlength=20 size=15 name=wr_password itemname="패스워드" <?=$password_required?>></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>

<?
if ($is_category) {
$category_option = str_replace(">n</option>",">News</option>", $category_option);
$category_option = str_replace(">be</option>",">Business&Economy</option>", $category_option);
$category_option = str_replace(">et</option>",">Entertainment</option>", $category_option);
$category_option = str_replace(">it</option>",">IT&New Technology</option>", $category_option);
$category_option = str_replace(">cl</option>",">Culture&Life</option>", $category_option);
$category_option = str_replace(">se</option>",">Science&Ecology</option>", $category_option);
$category_option = str_replace(">t</option>",">Travel</option>", $category_option);
$category_option = str_replace(">is</option>",">Interview&Speech</option>", $category_option);
?>
<tr>
    <td class=write_head>분 류</td>
    <td><select name=ca_name required itemname="분류"><option value="">선택하세요<?=$category_option?></select></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>

<tr>
    <td class=write_head>제 목</td>
    <td><input class='ed' style="width:99%;" name=wr_subject id="wr_subject" itemname="제목" required value="<?=$subject?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class='write_head' style='padding:5 0 5 10;' colspan='2'>
        <? if ($is_dhtml_editor) { ?>
            <?=cheditor2('wr_content', $content);?>
        <? } else { ?>
        <table width=100% cellpadding=0 cellspacing=0>
        <tr>
            <td width=50% align=left valign=bottom>
                <span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
                <span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
                <span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
            <td width=50% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
        </tr>
        </table>
        <textarea id="wr_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows=10 itemname="내용" required
        <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
        <? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
        <? } ?>
    </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>

<tr>
    <td class=write_head>동영상링크</td>
    <td><input type='text' class='ed' size=100 name='wr_link1' itemname='링크 #1' value='<?=$write["wr_link{$i}"]?>'></td></tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
<tr>
    <td class=write_head>레벨</td>
    <td><input type='text' class='ed' size=5 name='wr_1' itemname='레벨' value='<?=$write["wr_1"]?>'></td></tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
<tr>
    <td class=write_head>재생시간</td>
    <td><input type='text' class='ed' size=20 name='wr_2' itemname='재생시간' value='<?=$write["wr_2"]?>'></td></tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
<tr>
    <td class=write_head>한글자막</td>
    <td>
<? if ($is_dhtml_editor) { ?>
    <?=cheditor2('wr_3', $write["wr_3"]);?>
<? } else { ?>
    <textarea id="wr_3" name="wr_3" class=tx  style='width:100%; word-break:break-all;' rows=3 itemname="한글자막" required <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_3', 'char_count');"<?}?>><?=$write[wr_3]?></textarea>
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_3', 'char_count'); </script><?}?>
<? } ?>

</td></tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
<tr>
    <td class=write_head>영어자막</td>
    <td> <? if ($is_dhtml_editor) { ?>
    <?=cheditor2('wr_4', $write["wr_4"]);?>
<? } else { ?>
    <textarea id="wr_4" name="wr_4" class=tx  style='width:100%; word-break:break-all;' rows=3 itemname="영어자막" required <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_4', 'char_count');"<?}?>><?=$write[wr_4]?></textarea>
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_4', 'char_count'); </script><?}?>
<? } ?>
</td></tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
<tr>
    <td class=write_head>한+영자막</td>
    <td> <? if ($is_dhtml_editor) { ?>
    <?=cheditor2('wr_5', $write["wr_5"]);?>
<? } else { ?>
    <textarea id="wr_5" name="wr_5" class=tx  style='width:100%; word-break:break-all;' rows=3 itemname="한+영자막" required <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_5', 'char_count');"<?}?>><?=$write[wr_5]?></textarea>
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_5', 'char_count'); </script><?}?>
<? } ?>
</td></tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
<tr>
    <td class=write_head>Voca&Idioms </td>
    <td> <? if ($is_dhtml_editor) { ?>
    <?=cheditor2('wr_6', $write["wr_6"]);?>
<? } else { ?>
    <textarea id="wr_6" name="wr_6" class=tx  style='width:100%; word-break:break-all;' rows=3 itemname="Voca&Idioms" required <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_6', 'char_count');"<?}?>><?=$write[wr_6]?></textarea>
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_6', 'char_count'); </script><?}?>
<? } ?>
</td></tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
<tr>
    <td class=write_head>주요표현</td>
    <td> <? if ($is_dhtml_editor) { ?>
    <?=cheditor2('wr_7', $write["wr_7"]);?>
<? } else { ?>
    <textarea id="wr_7" name="wr_7" class=tx  style='width:100%; word-break:break-all;' rows=3 itemname="주요표현" required <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_7', 'char_count');"<?}?>><?=$write[wr_7]?></textarea>
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_7', 'char_count'); </script><?}?>
<? } ?>
</td></tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
<tr>
    <td class=write_head>받아쓰기지문</td>
    <td> <? if ($is_dhtml_editor) { ?>
    <?=cheditor2('wr_8', $write["wr_8"]);?>
<? } else { ?>
    <textarea id="wr_8" name="wr_8" class=tx  style='width:100%; word-break:break-all;' rows=3 itemname="받아쓰기지문" required <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_8', 'char_count');"<?}?>><?=$write[wr_8]?></textarea>
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_8', 'char_count'); </script><?}?>
<? } ?>
</textarea></td></tr>
  • 복사

댓글 전체

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