cheditor 에디터 심플하게 사용하기 > 그누4 팁자료실

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.

cheditor 에디터 심플하게 사용하기 정보

cheditor 에디터 심플하게 사용하기

본문

수정파일 cheditor4.lib.php

    function cheditor1($id, $width='100%', $height='250',$template_file = "template.xml")
    {
        global $g4;

        return "
        <script type='text/javascript'>
        var ed_{$id} = new cheditor('ed_{$id}');
        ed_{$id}.config.editorHeight = '{$height}';
        ed_{$id}.config.editorWidth = '{$width}';
        ed_{$id}.inputForm = 'tx_{$id}';

        ed_{$id}.templatePath = ed_{$id}.config.editorPath + '{$template_file}';
        </script>";
    }


cheditor5/template.xml 을 다른이름 으로 하나 복사 후 필요 아이콘만 남긴후 사용

simple_template.xml 복사 템플릿

에디터 사용 할때
<?=cheditor1('etc1_content', '100%', '100', 'simple_template.xml');?>


결과값 









추천
8

댓글 10개

전체 10 |RSS
그누4 팁자료실 내용 검색
  • 개별 목록 구성 번호 제목 작성자 작성일 추천 조회
  • 게시물이 없습니다.

회원로그인

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