에디터를 2개 등록했는데 dhtml 아이콘이 안나옵니다.

에디터를 2개 등록했는데 dhtml 아이콘이 안나옵니다.

QA

에디터를 2개 등록했는데 dhtml 아이콘이 안나옵니다.

본문

글 작성시 입력 공간이 2개 필요해서 검색해보니 아래와 같은 소스를 알려주시더라구요

 


<? echo editor_html('wr_content', $content, $is_dhtml_editor); ?>
<? echo editor_html('wr_2', $content, $is_dhtml_editor); ?>

 

에디터가 2개 떠서 입력까지 잘 되는데 문제는 위에 dhtml? 아이콘들이 안나옵니다.

 

사진이나 글씨 수정이 불가능한데 혹시 방법이 있을까요?

 

파란색 표시한 부분이 나오게 하고싶습니다.

 

978319507_1645418433.3789.png

 

978319507_1645418477.5182.png

 

 

이 질문에 댓글 쓰기 :

답변 2

우선 script에서  wr_2 아이디가 2개 이므로 이를 한번 다르게 변경해보시기 바랍니다.

 

아래 한개는 에디터 아이디를 wr_3로 변경해보시기 바랍니다.

혹시 같은걸 복사해서 붙혀 놓으신듯 싶어서요.

서로 달라야 서로 다르게 에디터 표시가 될꺼 같네요.

 

내부 스크립트에서 jquery 가 다중으로 설정되어있나 확인해보시기 바랍니다.

smarteditor는 jquery를 사용하기 때문에  jquey 충돌시 정상적으로 에디터 화면이 안나올수 있습니다. 

 

아래 소스를 참고 하셔서  브라우저 소스 보기로 하셔서 아래 스크립트도 정상적으로 되어 있는지 한번 체크 바랍니다.

 


<span class="sound_only">웹에디터 시작</span><script>document.write("<div class='cke_sc'><button type='button' class='btn_cke_sc'>단축키 일람</button></div>");</script>
<script src="http://gnuboard5.bokslee.com/plugin/editor/smarteditor2/js/service/HuskyEZCreator.js"></script>
<script>var g5_editor_url = "http://gnuboard5.bokslee.com/plugin/editor/smarteditor2", oEditors = [], ed_nonce = "YawwCR1qGo|1645424290|59bde0d786f3c3fc45f341545f9cabca28b08ecd";</script>
<script src="http://gnuboard5.bokslee.com/plugin/editor/smarteditor2/config.js"></script>
<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("http://gnuboard5.bokslee.com/plugin/editor/smarteditor2/shortcut.html");
                    $(this).text("단축키 일람 닫기");
                }
            });
            $(document).on("click", ".btn_cke_sc_close", function(){
                $(this).parent("div.cke_sc_def").remove();
            });
        });
</script>

 

 

 

 

 

script function fwrite_submit(f) 에 아래 코드 추가되어있나요?

 

<?php echo get_editor_js("wr_2"); ?>

답변을 작성하시기 전에 로그인 해주세요.
전체 123,525 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT