郑德才博客 记录学习,记录工作,学习知识分享!

kindeditor文本编辑器使用

<!--编辑器代码-开始 -->
    <script src="/kindeditor/kindeditor.js" type="text/javascript"></script>
     <script type="text/javascript">
         KE.show({
             id: 'pb-text-textarea',
             imageUploadJson: '/kindeditor/plugins/upload_json.ashx',
             fileManagerJson: '/kindeditor/plugins/file_manager_json.ashx',
             allowFileManager: true,
             width: "100%", //编辑器的宽度为70% 
             height: "353px", //编辑器的高度为100px   
             filterMode: false, //不会过滤HTML代码 
             resizeMode: 0 //2或1或0,2时可以拖动改变宽度和高度,1时只能改变高度,0时不能拖动。
         });
         function txtTitle_onclick() {

         }

     </script>
<!-- 编辑器代码结束 -->

    <div class="pb-post-section" id="pb-text-post-holder">
        <h3 class="pb-section-title">描述</h3>
        <textarea class="pb-input-text" id="pb-text-textarea" cols=""rows="" name="textarea"><%=video_descript %></textarea>
    </div>

2012年4月29日 | 发布:郑德才博客 | 分类:学习之路 | 评论:0

发表留言: