首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

ckeditor文件下传版

2012-09-16 
ckeditor文件上传版1,在页面加入script typetext/javascript src%basePath%common/ckeditor/cked

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>

热点排行