지블로그에 스마트에디터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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 24318 | |
| 24317 | |
| 24315 | |
| 24309 | |
| 24294 | |
| 24293 | |
| 24277 | |
| 24262 | |
| 24260 | |
| 24253 | |
| 24251 | |
| 24236 | |
| 24233 | |
| 24228 | |
| 24226 | |
| 24221 | |
| 24214 | |
| 24203 | |
| 24201 | |
| 24199 | |
| 24196 | |
| 24195 | |
| 24194 | |
| 24192 | |
| 24191 | |
| 24187 | |
| 24185 | |
| 24183 | |
| 24172 | |
| 24168 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기