html 편집기를 사용하고 싶어요
본문
안녕하세요
sub/test.php 파일을 만들었습니다^^
<?php
include_once('../common.php');
include_once('../head.php');
?>
<form name='test'>
여기에 그누보드에 있는 html 편집기를 사용하고 싶어요..
</form>
<?php
include_once('../tail.php');
?>
위에코드대로
설명부분을 textarea 만드어서
그누보드 html 편집기 툴을 사용하고 싶어요
어떻게 해야 하나요..
답변 1
<?php
include_once('../common.php');
include_once('../head.php');
require_once G5_EDITOR_LIB;
?>
<form name='test' method="post" onsubmit="return f_submit()">
<?php echo editor_html('wr_content', '', true); ?>
<div>
<button type="submit">확인</button>
</div>
</form>
<script>
function f_submit() {
<?php echo get_editor_js('wr_content'); ?>
}
</script>
<?php
include_once('../tail.php');
답변을 작성하시기 전에 로그인 해주세요.