에디터를 2개 등록했는데 dhtml 아이콘이 안나옵니다. 채택완료
한번잘해보자
3년 전
조회 1,860
글 작성시 입력 공간이 2개 필요해서 검색해보니 아래와 같은 소스를 알려주시더라구요
</p>
<p><? echo editor_html('wr_content', $content, $is_dhtml_editor); ?></p>
<p><? echo editor_html('wr_2', $content, $is_dhtml_editor); ?></p>
<p>
에디터가 2개 떠서 입력까지 잘 되는데 문제는 위에 dhtml? 아이콘들이 안나옵니다.
사진이나 글씨 수정이 불가능한데 혹시 방법이 있을까요?
파란색 표시한 부분이 나오게 하고싶습니다.


댓글을 작성하려면 로그인이 필요합니다.
답변 2개
채택된 답변
+20 포인트
3년 전
우선 script에서 wr_2 아이디가 2개 이므로 이를 한번 다르게 변경해보시기 바랍니다.
아래 한개는 에디터 아이디를 wr_3로 변경해보시기 바랍니다.
혹시 같은걸 복사해서 붙혀 놓으신듯 싶어서요.
서로 달라야 서로 다르게 에디터 표시가 될꺼 같네요.
내부 스크립트에서 jquery 가 다중으로 설정되어있나 확인해보시기 바랍니다.
smarteditor는 jquery를 사용하기 때문에 jquey 충돌시 정상적으로 에디터 화면이 안나올수 있습니다.
아래 소스를 참고 하셔서 브라우저 소스 보기로 하셔서 아래 스크립트도 정상적으로 되어 있는지 한번 체크 바랍니다.
</p>
<p><span class="sound_only">웹에디터 시작</span><script>document.write("<div class='cke_sc'><button type='button' class='btn_cke_sc'>단축키 일람</button></div>");</script>
<script src="<a href="http://gnuboard5.bokslee.com/plugin/editor/smarteditor2/js/service/HuskyEZCreator.js"></script>" target="_blank" rel="noopener noreferrer">http://gnuboard5.bokslee.com/plugin/editor/smarteditor2/js/service/HuskyEZCreator.js"></script></a>
<script>var g5_editor_url = "<a href="http://gnuboard5.bokslee.com/plugin/editor/smarteditor2"," target="_blank" rel="noopener noreferrer">http://gnuboard5.bokslee.com/plugin/editor/smarteditor2",</a> oEditors = [], ed_nonce = "YawwCR1qGo|1645424290|59bde0d786f3c3fc45f341545f9cabca28b08ecd";</script>
<script src="<a href="http://gnuboard5.bokslee.com/plugin/editor/smarteditor2/config.js"></script>" target="_blank" rel="noopener noreferrer">http://gnuboard5.bokslee.com/plugin/editor/smarteditor2/config.js"></script></a>
<script>
$(function(){
$(".btn_cke_sc").click(function(){
if ($(this).next("div.cke_sc_def").length) {
$(this).next("div.cke_sc_def").remove();
$(this).text("단축키 일람");
} else {
$(this).after("<div class='cke_sc_def' />").next("div.cke_sc_def").load("<a href="http://gnuboard5.bokslee.com/plugin/editor/smarteditor2/shortcut.html");" target="_blank" rel="noopener noreferrer">http://gnuboard5.bokslee.com/plugin/editor/smarteditor2/shortcut.html");</a>
$(this).text("단축키 일람 닫기");
}
});
$(document).on("click", ".btn_cke_sc_close", function(){
$(this).parent("div.cke_sc_def").remove();
});
});
</script>
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
<?php echo chk_editor_js("wr_2"); ?>
네 추가 되어있습니다 ㅠ