cheditor4 2개 사용시 글수정 오류 도움 부탁드립니다. 정보
cheditor4 2개 사용시 글수정 오류 도움 부탁드립니다.본문
상단에
echo cheditor1('wr_content', '100%', '250');
echo cheditor1('wr_8', '100%', '250'); <-------추가 id
중단에 아래와 같이 삽입했습니다.
...중략
<textarea id="wr_8" name="wr_8" class=tx style='width:100%; word-break:break-all;' rows=10 itemname="내용" required
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_8', 'char_count');"<?}?><?=$content?></textarea>
...중략
<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 ($is_dhtml_editor) echo cheditor3('wr_content');
if ($is_dhtml_editor) echo cheditor3('wr_8');
?>
이렇게 했는데요..
글쓰기하면 잘 나오는데 글 수정하려니 <?=$content?> 이부분이 같아서 인지 이쪽 내용이 wr_8해당 부분에 나타납니다.
어떻게 해야 원문이 나오나요?
고수님들 답변 바랍니다.
즐거운 주말 저녁 보내세요.
echo cheditor1('wr_content', '100%', '250');
echo cheditor1('wr_8', '100%', '250'); <-------추가 id
중단에 아래와 같이 삽입했습니다.
...중략
<textarea id="wr_8" name="wr_8" class=tx style='width:100%; word-break:break-all;' rows=10 itemname="내용" required
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_8', 'char_count');"<?}?><?=$content?></textarea>
...중략
<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 ($is_dhtml_editor) echo cheditor3('wr_content');
if ($is_dhtml_editor) echo cheditor3('wr_8');
?>
이렇게 했는데요..
글쓰기하면 잘 나오는데 글 수정하려니 <?=$content?> 이부분이 같아서 인지 이쪽 내용이 wr_8해당 부분에 나타납니다.
어떻게 해야 원문이 나오나요?
고수님들 답변 바랍니다.
즐거운 주말 저녁 보내세요.
댓글 전체
위쪽 <?=$content?> --> <?=$write[wr_8]?> 로 수정 하세요
답변 감사합니다.
말씀하신 부분 수정해보니 글읽기 화면에서 작성한 내용이 잘 나옵니다.
하지만 수정버튼을 눌러 수정화면으로 오면 wr_content 의 내용이 wr_8 에 들어있습니다.
말씀하신 부분 수정해보니 글읽기 화면에서 작성한 내용이 잘 나옵니다.
하지만 수정버튼을 눌러 수정화면으로 오면 wr_content 의 내용이 wr_8 에 들어있습니다.
에고 이 부분에 대해선 언급을 안했었네요.
이 부분을 이렇게 해주니
<?=cheditor2('wr_8', $content);?> 이부분을 아래와 같이 하니까 되네요..
<?=cheditor2('wr_8', $write[wr_8]);?>
여러모로 감사합니다.
이 부분을 이렇게 해주니
<?=cheditor2('wr_8', $content);?> 이부분을 아래와 같이 하니까 되네요..
<?=cheditor2('wr_8', $write[wr_8]);?>
여러모로 감사합니다.