개발도구(웹)

CK 에디터

땀모 2018. 11. 23. 02:26

https://ckeditor.com/


적용방법

<script src="/lib/ckeditor/ckeditor.js"></script>

<script>

CKEDITOR.replace( 'description' ); //가져오는 api 'description'은 textarea name="description" 교체한다라는 뜻

</script>




예제소스

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<form name="form1" action="up_proc.php" method="post" >
 
    <input type="text" name="title" placeholder="제목"><br>
 
    <textarea name="description" placeholder="본문" rows="15"></textarea><br>
 
    <input type="submit" value="전송">
 
</form>
 
 
 
<script src="/ckeditor/ckeditor.js"></script>
 
<script>
 
CKEDITOR.replace( 'description' ); //가져오는 api 'description'은 textarea name="description" 교체한다라는 뜻
 
</script>
cs