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');?>
결과값

|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 10개
퍼가도 되죠...
추천드립니다.
혹시 있을까요?_
조각난 이미지에는 각하나씩 링크를 걸수가 있잖아요^^
통이미지에서 부분적으로 맵을 주고 링크할 수 있는 에디터! 필요할것 같아요
물론, 드림위버에서 만들어 붙이면 되긴 하는데 번거로워서요..
메모주시면 감사하겠습니다
kwonk9799@naver.com