IE 10에서 글 작성 시, wr_contet 필수 입력 오류 관련되서 질문드립니다.

100 views
Skip to first unread message

Youn-Gwon Kim

unread,
Oct 23, 2013, 12:23:33 AM10/23/13
to chs...@googlegroups.com
그누보드와 chEditor5 버전을 사용하고 있습니다.

IE 10에서 글 작성 시, wr_contet : 필수 입력입니다. 라는 오류가 표출되어 이에 관련되서 문의드립니다.

이 필수 입력을 체크하는 곳은 wrest.js 파일로 알고 있고....

해당 editor에 보내주는 php파일에서는 required를 빼도...아래와 같이 

<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="내용" 
        <? 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>

에서 

        <textarea id="wr_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows=10 itemname="내용"  에 required를 빼도 계속 체크를 하는데

혹시 다른 분들이나 고수분들 중에 이런 오류가 발생하거나, 원인이 무엇인지 아시는 분이 있으면 도움 부탁드립니다.
Cap 2013-10-23 09-30-35-816.png

chsoft

unread,
Oct 23, 2013, 6:49:56 PM10/23/13
to chs...@googlegroups.com
안녕하세요.
 
제가 그누보드에 대해서는 자세하게 알지 못해서 정확하게 답변드리기는 어렵습니다.
하지만, textarea의 내용이 없어서 그런 메시지가 출력되는 것 같습니다.
에디터에서 작성한 내용은 자동으로 textarea에 입력되지만, 그렇지 않다면 'outputBodyHTML()' 메서드를 호출하는 부분을 찾으신 후,
그 리턴 값을 직접 textarea의 value로 설정해 보십시오.
 
감사합니다.

2013년 10월 23일 수요일 오후 1시 23분 33초 UTC+9, Youn-Gwon Kim 님의 말:
Reply all
Reply to author
Forward
0 new messages