티스토리 뷰

<html>

<head>

    <link rel="stylesheet" href="jquery.cleditor.css" />

    <script src="jquery.min.js"></script>

    <script src="jquery.cleditor.min.js"></script>

    <script>

        $(document).ready(function () { $("#input").cleditor(); });

    </script>

</head>

<body>

    <textarea id="input" name="input"></textarea>

</body>

</html>


다음의 방법을 써서 textarea를 씌우면 된다. 


 - 스크립트의 부분이 textArea의 id와 일치시켜야 한다. 

 - jquery를 사용하기 때문에 jquery의 import가 필요하다.

 - 최신 jquery주소는


 <script src="http://code.jquery.com/jquery-latest.min.js"></script>


 - 


혹은 CKEditor의 경우 


<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>CKEditor</title>

<script src="https://cdn.ckeditor.com/4.7.3/standard/ckeditor.js"></script>

</head>

<body>

<textarea name="editor1"></textarea>

<script>

CKEDITOR.replace( 'editor1' );

</script>

</body>

</html>



<script src="//cdn.ckeditor.com/4.7.3/basic/ckeditor.js"></script>


다음과 같은 방식으로 구현을 한다. 이 경우 name이 일치해야 한다. 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함