에디터 여러개 사용하는방법

Copy
<tr>

                    <th scope="row"><label for="co_title">콘텐츠 제목1</label></th>

                    <td><input type="text" name="co_title" value="<?php echo htmlspecialchars2($co['co_title']); ?>" id="co_title" required class="frm_input required" size="90"></td>

                </tr>

                <tr>

                    <th scope="row">내용</th>

                    <td><?php echo editor_html('co_content', get_text(html_purifier($co['co_content']), 0)); ?></td>

                </tr>

                <tr>

                    <th scope="row"><label for="co_title2">콘텐츠 제목2</label></th>

                    <td><input type="text" name="co_title2" value="<?php echo htmlspecialchars2($co['co_title2']); ?>" id="co_title2" class="frm_input" size="90"></td>

                </tr>

                <tr>

                    <th scope="row">내용2</th>

                    <td><?php echo editor_html('co_content2', get_text(html_purifier($co['co_content2']), 0)); ?></td>

                </tr>

                <tr>

                    <th scope="row"><label for="co_title3">콘텐츠 제목3</label></th>

                    <td><input type="text" name="co_title3" value="<?php echo htmlspecialchars2($co['co_title3']); ?>" id="co_title3" class="frm_input" size="90"></td>

                </tr>

                <tr>

                    <th scope="row">내용3</th>

                    <td><?php echo editor_html('co_content3', get_text(html_purifier($co['co_content3']), 0)); ?></td>

                </tr>

                <tr>

                    <th scope="row"><label for="co_title4">콘텐츠 제목4</label></th>

                    <td><input type="text" name="co_title4" value="<?php echo htmlspecialchars2($co['co_title4']); ?>" id="co_title4" class="frm_input" size="90"></td>

                </tr>

                <tr>

                    <th scope="row">내용4</th>

                    <td><?php echo editor_html('co_content4', get_text(html_purifier($co['co_content4']), 0)); ?></td>

                </tr>

                <tr>

                    <th scope="row"><label for="co_title5">콘텐츠 제목5</label></th>

                    <td><input type="text" name="co_title5" value="<?php echo htmlspecialchars2($co['co_title5']); ?>" id="co_title5" class="frm_input" size="90"></td>

                </tr>

                <tr>

                    <th scope="row">내용5</th>

                    <td><?php echo editor_html('co_content5', get_text(html_purifier($co['co_content5']), 0)); ?></td>

                </tr>

                <tr>

                    <th scope="row"><label for="co_title6">콘텐츠 제목6</label></th>

                    <td><input type="text" name="co_title6" value="<?php echo htmlspecialchars2($co['co_title6']); ?>" id="co_title6" class="frm_input" size="90"></td>

                </tr>

                <tr>

                    <th scope="row">내용6</th>

                    <td><?php echo editor_html('co_content6', get_text(html_purifier($co['co_content6']), 0)); ?></td>

                </tr>

 

현재 이런식으로 폼 입력이 구성되어있는데

첫번째 co_content는 값이 잘 들어가는데

co_content2~co_content6은 값이 안들어가지네요.. db에 컬럼도 추가했고 longtext로 다 동일하고

 

Copy
$editor_html = editor_html('wr_content', $content, $is_dhtml_editor);

$editor_html2 = editor_html('wr_content2', $content2, $is_dhtml_editor);

$editor_html3 = editor_html('wr_content2', $content2, $is_dhtml_editor);

$editor_html4 = editor_html('wr_content2', $content2, $is_dhtml_editor);

$editor_html5 = editor_html('wr_content2', $content2, $is_dhtml_editor);

$editor_html6 = editor_html('wr_content2', $content2, $is_dhtml_editor);

$editor_js = '';

$editor_js2 = '';

$editor_js3 = '';

$editor_js4 = '';

$editor_js5 = '';

$editor_js6 = '';

$editor_js .= get_editor_js('wr_content', $is_dhtml_editor);

$editor_js .= chk_editor_js('wr_content', $is_dhtml_editor);

$editor_js2 .= get_editor_js('wr_content2', $is_dhtml_editor);

$editor_js2 .= chk_editor_js('wr_content2', $is_dhtml_editor);

$editor_js3 .= get_editor_js('wr_content3', $is_dhtml_editor);

$editor_js3 .= chk_editor_js('wr_content3', $is_dhtml_editor);

$editor_js4 .= get_editor_js('wr_content4', $is_dhtml_editor);

$editor_js4 .= chk_editor_js('wr_content4', $is_dhtml_editor);

$editor_js5 .= get_editor_js('wr_content5', $is_dhtml_editor);

$editor_js5 .= chk_editor_js('wr_content5', $is_dhtml_editor);

$editor_js6 .= get_editor_js('wr_content6', $is_dhtml_editor);

$editor_js6 .= chk_editor_js('wr_content6', $is_dhtml_editor);

 

위와 같이 wirte.php에 추가도 다 해줬는데 왜 값이 안들어갈까요 ㅜ

 

답변 1개 / 댓글 5개

$editor_js 변수는 만들어 두셨는데 해당 
$editor_js2~6을 자바스크립트 fwrite_submit 함수단에 적용을 해주셔야 하는데 처리된걸까요?

답변에 대한 댓글 5개

네 적용했습니다.. 근데 게시판이 아니라 bbs에 작성하게 되어있어서.. 게시판과 다르게 적용해야할까요??
해당 게시판 스킨에 적용하셔야 합니다.
연결되어있는 write.skin.php에 다 적용했는데도 안됩니다..ㅠ
$editor_html2 부분에 이름 wr_content2인데
$editor_html3~6도 이름이 동일하네요
아 복사하는 과정에서 안바꾸고 올린거 같습니다.. 이름이 다 다르게 해서 적용해도 안되네요..ㅜ
첫번째 content 입력값은 어떻게 받아오는거죠..

답변을 작성하려면 로그인이 필요합니다.