테스트 사이트 - 개발 중인 베타 버전입니다

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

소파 2년 전 조회 2,123

</p>

<p><tr></p>

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

<p>                    <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></p>

<p>                </tr></p>

<p>                <tr></p>

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

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

<p>                </tr></p>

<p>                <tr></p>

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

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

<p>                </tr></p>

<p>                <tr></p>

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

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

<p>                </tr></p>

<p>                <tr></p>

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

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

<p>                </tr></p>

<p>                <tr></p>

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

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

<p>                </tr></p>

<p>                <tr></p>

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

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

<p>                </tr></p>

<p>                <tr></p>

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

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

<p>                </tr></p>

<p>                <tr></p>

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

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

<p>                </tr></p>

<p>                <tr></p>

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

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

<p>                </tr></p>

<p>                <tr></p>

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

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

<p>                </tr></p>

<p>                <tr></p>

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

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

<p>                </tr></p>

<p>

 

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

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

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

 

</p>

<p>$editor_html = editor_html('wr_content', $content, $is_dhtml_editor);</p>

<p>$editor_html2 = editor_html('wr_content2', $content2, $is_dhtml_editor);</p>

<p>$editor_html3 = editor_html('wr_content2', $content2, $is_dhtml_editor);</p>

<p>$editor_html4 = editor_html('wr_content2', $content2, $is_dhtml_editor);</p>

<p>$editor_html5 = editor_html('wr_content2', $content2, $is_dhtml_editor);</p>

<p>$editor_html6 = editor_html('wr_content2', $content2, $is_dhtml_editor);</p>

<p>$editor_js = '';</p>

<p>$editor_js2 = '';</p>

<p>$editor_js3 = '';</p>

<p>$editor_js4 = '';</p>

<p>$editor_js5 = '';</p>

<p>$editor_js6 = '';</p>

<p>$editor_js .= get_editor_js('wr_content', $is_dhtml_editor);</p>

<p>$editor_js .= chk_editor_js('wr_content', $is_dhtml_editor);</p>

<p>$editor_js2 .= get_editor_js('wr_content2', $is_dhtml_editor);</p>

<p>$editor_js2 .= chk_editor_js('wr_content2', $is_dhtml_editor);</p>

<p>$editor_js3 .= get_editor_js('wr_content3', $is_dhtml_editor);</p>

<p>$editor_js3 .= chk_editor_js('wr_content3', $is_dhtml_editor);</p>

<p>$editor_js4 .= get_editor_js('wr_content4', $is_dhtml_editor);</p>

<p>$editor_js4 .= chk_editor_js('wr_content4', $is_dhtml_editor);</p>

<p>$editor_js5 .= get_editor_js('wr_content5', $is_dhtml_editor);</p>

<p>$editor_js5 .= chk_editor_js('wr_content5', $is_dhtml_editor);</p>

<p>$editor_js6 .= get_editor_js('wr_content6', $is_dhtml_editor);</p>

<p>$editor_js6 .= chk_editor_js('wr_content6', $is_dhtml_editor);</p>

<p>

 

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

 

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

답변 1개

플라이
2년 전
$editor_js 변수는 만들어 두셨는데 해당 
$editor_js2~6을 자바스크립트 fwrite_submit 함수단에 적용을 해주셔야 하는데 처리된걸까요?
로그인 후 평가할 수 있습니다

답변에 대한 댓글 5개

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

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

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

로그인