그누보드4 나 영카트4에서 스마트2.0 에디터 사용모듈 (업로드포함) > 그누보드5 팁자료실

그누보드5 팁자료실

그누보드4 나 영카트4에서 스마트2.0 에디터 사용모듈 (업로드포함) 정보

그누보드4 나 영카트4에서 스마트2.0 에디터 사용모듈 (업로드포함)

첨부파일

smarteditor2.zip (1.1M) 224회 다운로드 2021-01-31 13:39:36

본문

고생해서 작업한 내용을 공유하자고 하는데

그누보드4용 메뉴가 없어서 여기다 그냥 올려드립니다.

 

2021년 1월 12일자로 플래쉬 중단으로 인해서 일부 그누보드4나 영카트4사용 하시는분의 불편을 덜어주고자 스마트2.0 에디터를 업로드 기능까지 포함해서 다시 커스터마이징 하였습니다.

 

1. 업로드기능 포함

2. 기존 업로드시 드레그인 기능 그대로 복원

3. 간단하게 설치 만으로 해결

4. 크롬이나 엣지에서 도 잘됨 ^^

 

그누보드5에서 기능을 그대로  그누보드4에도 확인하실수 있습니다.

 

 

http://gnuboard4.bokslee.com/

여기서 작업된 내용을 확인할수 있습니다.

추천
9

댓글 15개

그누보드 위체에 smarteditor2 업로드하고
스킨폴더에 스킨을 올렸는데
그누보드4 버전이  4.09.02라 이미지 업로드가 안되는군요^^
euc-kr이라 글씨도 깨지구요
베이직 말고 다른 스킨에도 사용하려하는데.
게시판을 수정한데 사용하고 싶어서..

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

if ($is_dhtml_editor) {
    // cheditor 사용할경우
    //include_once("$g4[path]/lib/cheditor4.lib.php");
    //echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
    //echo cheditor1('wr_content', '100%', '250');

    // smarteditor 사용할경우
    include_once("$g4[path]/smarteditor2/editor.lib.php");
    $editor_html = editor_html('wr_content', $content, $is_dhtml_editor);
    $editor_js = '';
    $editor_js .= get_editor_js('wr_content', $is_dhtml_editor);
    $editor_js .= chk_editor_js('wr_content', $is_dhtml_editor);
}
?>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<div style="height:14px; line-height:1px; font-size:1px;">&nbsp;</div>

상단

  <? if ($is_dhtml_editor) { ?>
            <?
                //cheditor사용시
                //cheditor2('wr_content', $content);

                //smarteditor사용시
            ?>
            <script src="<?=$g4['url']?>/smarteditor2/autosave.editor.js"></script>
            <div class="write_div" style="margin:10px 0;position:relative">
              <div class="wr_content smarteditor2">
                  <?php if($write_min || $write_max) { ?>
                  <!-- 최소/최대 글자 수 사용 시 -->
                  <p id="char_count_desc">이 게시판은 최소 <strong><?php echo $write_min; ?></strong>글자 이상, 최대 <strong><?php echo $write_max; ?></strong>글자 이하까지 글을 쓰실 수 있습니다.</p>
                  <?php } ?>
                  <?php echo $editor_html;?>
                  <?php if($write_min || $write_max) { ?>
                  <!-- 최소/최대 글자 수 사용 시 -->
                  <div id="char_count_wrap"><span id="char_count"></span>글자</div>
                  <?php } ?>
              </div>
            </div>


        <? } else { ?>

에디터부분

이외에 어느 부분을 수정해야 하나요?

이부분만 고치니 이미지 업로드시 무한로딩이 걸리거나
wr_id 값을 사용하지 않는다고  에러가 뜨네요.
저도 적용방법 문의 드립니다. 어디 부분을 수정해야하는지요? 그리고 영카트 관리자페이지에서 사용하는 에디터도 적용 하고 싶습니다.
전체 2,424 |RSS
그누보드5 팁자료실 내용 검색

회원로그인

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