dwz自带编辑按功能

废话不多说我先贴出JS代码

$('#editor').xheditor({
    
          upMultiple:true,
          upLinkUrl:'${rc.getContextPath()}/file/image',  
          upLinkExt:'zip,rar,txt', //设置文件格式
          html5Upload:false,//记住这个一定要设置为false
          upImgExt:'jpg,jpeg,gif,png',  
          upFlashUrl:'${rc.getContextPath()}/file/image',  
         // onUpload:insertUpload,
         'upBtnText':'上传',//这里是给编辑器加上(默认上传2个字)
          upImgUrl:'${rc.getContextPath()}/file/image?immediate=1'
        });

<textarea id="editor" class="editor" name="details" rows="40" cols="100" tools="Cut,Copy,Paste,Pastetext,|,Blocktag,Fontface,FontSize,Bold,Italic,Underline,Strikethrough,FontColor,BackColor,SelectAll,Removeformat,|,Align,List,Outdent,Indent,|,Link,Unlink,Anchor,Img,Hr,Emot,Table,|,Source,Preview,Print,Fullscreen"><#if Article??&&Article.details??>${Article.details!''}</#if></textarea>

posted @ 2016-09-07 09:12  你走!你不走,那我走  阅读(1018)  评论(0编辑  收藏  举报