지블로그에 스마트에디터2를 탑제하다 여러가지 문제가 있었지만...
간략하게 핵심코드만 올립니다.
1. 스마트에디터2 글쓰기 파일 예)
<?php
include_once(G5_EDITOR_LIB);
$is_dhtml_editor = true ;
$config['cf_editor'] = "smarteditor2";
$editor_url = G5_EDITOR_URL.'/'."smarteditor2";
$editor_html = editor_html('content', $content, true);
?>
//수정시...
if ($m == 'u')
{
$r = sql_fetch....(어쩌구저쩌구)
$content = $r['content'];
}
<script type="text/javascript">
function submitContents(elClicked) {
<?php echo get_editor_js('content', true); ?>
<?php echo chk_editor_js('content', true); ?>
}
</script>
<?php
echo $editor_html;
?>
<div class="btn_confirm write_div">
<button type="submit" id="btn_submit" accesskey="s" class="btn_submit btn" onclick="submitContents(this)">작성완료</button>
</div>
2. 스마트에디터2 글쓰기 에디터 업데이트 예 (업데이트 파일에서...) :
$content = $_POST[content];
그럼 약간이라도 도움이 되셨기를...
댓글 10개
게시글 목록
| 번호 | 제목 |
|---|---|
| 17910 | |
| 17895 | |
| 17878 | |
| 17865 | |
| 17863 | |
| 17855 | |
| 17852 | |
| 17845 | |
| 17811 | |
| 17804 | |
| 17801 | |
| 17799 | |
| 17791 | |
| 17765 | |
| 17764 | |
| 17763 | |
| 17749 | |
| 17742 | |
| 17733 | |
| 17723 | |
| 17707 | |
| 17696 | |
| 17687 | |
| 17667 | |
| 17661 | |
| 17658 | |
| 17640 | |
| 17639 | |
| 17635 | |
| 17621 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기