cheditor 글 수정시 > 자유게시판

자유게시판

cheditor 글 수정시 정보

cheditor 글 수정시

본문

$content = str_REPLACE("\"",""",$content);
echo "
<html>

<head>
<title>제목없음</title>
<meta name='generator' content='Namo WebEditor v4.0'>
<link rel='stylesheet' href='/css/defaultetc.css'>
<script src='/board/gnuboard4/cheditor5/cheditor.js'></script>
<script language='javascript'>
function submit_form()
{
  document.contentedit.contents.value = myeditor.outputHTML(); // 또는 myeditor.outputBodyHTML();
  document.contentedit.submit();
}
</script>
 </head>

<body bgcolor='white' text='black' link='blue' vlink='purple' alink='red'>
<form action='hotel_input.php3' method='post' name='contentedit'>
 <input type=hidden name='action' value='content_inputok'>
 <input type=hidden name='hotel_code' value=$hotel_code>
 <input type=hidden name='content_name' value=$content_name>
    <input type='hidden' name='contents' id='contents'>
<input type=hidden name=null>
<input type='hidden' name='paste' value='$content'>


    <table cellpadding='0' cellspacing='2' width='100%' bordercolordark='white' bordercolorlight='black'>
        <tr>
            <td  height='50' bgcolor='white'>
                <p ALIGN=CENTER>항목 수정</p>
            </td>
        </tr>
     <tr>
         <td>
 <script type='text/javascript'>
    var myeditor = new cheditor('myeditor');
    myeditor.width =  '95%' ;
    myeditor.height = 380;
    myeditor.pasteContent = true;
    myeditor.pasteContentForm = \"paste\";
    myeditor.editorToolbar = 'background-color:#f4f4f4;';
    myeditor.editorBorder  = '1px #696969 solid';
    myeditor.formName = 'contentedit';
    myeditor.run();
  </script>

 </td></tr>
        <tr>
            <td width='646' height='50' colspan='2' bgcolor='silver'>
                <p align='center'><input type='submit' name='submit' value='수정합니다'  onClick='submit_form();'>
                <input type='reset' name='cancle' value='다시합니다'></p>
            </td>
        </tr>
    </table>
</form>
</body>

</html>

이렇게 하는데 왜? 기존 입력된 내용이 안나올까요? ㅠㅠ

추천
0
  • 복사

댓글 1개

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