|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /home/queenjbs/www/test/ |
Upload File : |
<HTML>
<HEAD>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<TITLE>FadeIn FadeOut Div using jQuery - DEMO</TITLE>
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/ckeditor/config.js"></script>
</HEAD>
<BODY>
<input type="checkbox" id="checkBoxId" name="checkBoxId" class="input_box"/><br/>
<textarea cols="60" id="editor_kama" name="contents" rows="10"><?=stripslashes($row[contents])?></textarea>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
$("#checkBoxId").change(function(){
if($("#checkBoxId").is(":checked")){
//alert("체크박스 체크했음!");
//$('.special').attr('id', 'your-id-value');
CKEDITOR.replace( 'editor_kama',
{
skin : 'kama',
enterMode : 2,
shiftEnterMode : 3,
language : 'ko',
filebrowserUploadUrl : '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'
});
}else{
//alert("체크박스 체크 해제!");
//CKEDITOR.instances.editor_kama.updateElement();
CKEDITOR.instances.editor_kama.destroy();
}
});
});
//]]>
</script>
</BODY>
</HTML>