ckeditor文件上传版
1,在页面加入<script type="text/javascript" src="<%=basePath%>common/ckeditor/ckeditor.js"></script>链接。
2,<textarea id="webDesc" name="webDesc" ></textarea>
<script type="text/javascript">
CKEDITOR.replace( 'webDesc');
</script>
或者:
<textarea id="marketPlan" name="marketPlan" ></textarea>
<script type="text/javascript">
CKEDITOR.replace( 'marketPlan',
{
toolbar :
[
['Styles', 'Format','Image'],
['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', '-']
],
width:800,
height:200,
filebrowserBrowseUrl : '<%=basePath%>common/ckeditor/uploader/browse.jsp',
filebrowserImageBrowseUrl : '<%=basePath%>common/ckeditor/uploader/browse.jsp?type=images',
filebrowserFlashBrowseUrl : '<%=basePath%>common/ckeditor/uploader/browse.jsp?type=flash',
filebrowserUploadUrl : '<%=basePath%>common/ckeditor/uploader/upload.jsp',
filebrowserImageUploadUrl : '<%=basePath%>common/ckeditor/uploader/upload.jsp?type=images',
filebrowserFlashUploadUrl : '<%=basePath%>common/ckeditor/uploader/upload.jsp?type=flash'
});
</script>