Ckeditorand ckfinder 配置实现上传图片到远程服务器
1. 从ck官网下载两个文件。
(文件夹解压后不必要的文件可以删除,samples、help 等以及skin皮肤文件夹下不要的皮肤也可以删掉,还有lang语言包下面除了zh-cn和en外其他也可以删掉,有你也看不懂)
2. 创建一个文件夹(比如:pasteDemo),将ckeditor和ckfinder放入其中。
3. ckeditor/config.js用于配置ckeditor,比如config.language = ‘zh-cn’; config.skin= 'v2';
分别是配置语言和皮肤。
4. 在页面中加载ckeditor编辑器。见pasteDemo.php (已实现直接截图,粘贴至编辑器,谷歌浏览器支持,火狐已自带此功能)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title></title>
<link rel="stylesheet" href="css/std.css" type="text/css">
<script type="text/javascript" src="ckfinder/ckfinder.js"></script>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<form name=postcontent method="POST" action="upload.php">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="bigred" align="center" background="images/bgloveyou2.gif" height="10"></td>
</tr>
<tr>
<td class="bigred" bgcolor="f7f7f7" align="center">内容</td>
</tr>
<tr>
<td align="center"