CKEditor.com | The best web text editor for everyone

CKeditor

<!-- Make sure the path to CKEditor is correct. -->
 <script src="./ckeditor/ckeditor.js"></script>
 
 <script language="javascript">
 function sendit()
{
        
        //글 내용		
		var data = CKEDITOR.instances.content.getData(); 
		document.myform.content.value = data;
		
        if (trim(document.myform.content.value).length == 0)  {
                alert("글을 작성 안하셨습니다. 글을 작성해 주십시요");
				document.myform.content.focus();
                return false;
        }
       // document.myform.submit();
}
</script>

<Form name="myform" enctype="multipart/form-data" method="POST" action="./****">
       <textarea name="content" id="content" rows="16" cols="56"></textarea>
</form>

<script>
    // Replace the <textarea id="content"> with a CKEditor
    // instance, using default configuration.
    CKEDITOR.replace( 'content' );
 </script>

바로가기: CKEditor.com | The best web text editor for everyone.