ueditor编辑器含有如下功能:
全屏源码撤销重做无序列表有序列表取消超链接超链接清空文档全选打印查询替换预览
Google地图百度地图百度应用分页图片涂鸦音乐附件截图表情视频插入Iframe模版背景日期时间图片转存水平线锚点特殊字符引用插入代码
加粗斜体下划线删除线文字颜色背景颜色上标下标居左对齐居中对齐居右对齐两端对齐字母大写字母小写从左向右输从右向左输首行缩进清除格式格式刷自动排版纯文本粘贴自定义样式段落格式段前间距段后间距行间距字体字号图片默认图片居左图片居右图片居中
插入表格删除表格右合并单元格下合并单元格拆分成行拆分成列拆成单元格合并单元格前插入列前插入行删除列删除行表格前插行
自动聚焦工具栏浮动字数统计表情本地化自动清除自动长高元素路径图片浮层纯文本粘贴源码高亮右键菜单
而且可以自定义插件 二次开发
<script type="text/javascript">
//实例化编辑器
var ue = UE.getEditor('editor');
ue.addListener('ready',function(){
this.focus()
});
function insertHtml(){
var value = prompt('插入html代码','');
ue.execCommand('insertHtml',value)
}
function createEditor(){
enableBtn();
UE.getEditor('editor')
}
function getAllHtml() {
alert( UE.getEditor('editor').getAllHtml() )
}
function getContent() {
var arr = [];
arr.push( "使用editor.getContent()方法可以获得编辑器的内容" );
arr.push( "内容为:" );
arr.push( UE.getEditor('editor').getContent() );
alert( arr.join( "\n" ) );
}
function getPlainTxt() {
var arr = [];
arr.push( "使用editor.getPlainTxt()方法可以获得编辑器的带格式的纯文本内容" );
arr.push( "内容为:" );
arr.push( UE.getEditor('editor').getPlainTxt() );
alert( arr.join( '\n' ) )
}
function setContent(isAppendTo) {
var arr = [];
arr.push( "使用editor.setContent('欢迎使用ueditor')方法可以设置编辑器的内容" );
UE.getEditor('editor').setContent( '欢迎使用ueditor',isAppendTo );
alert( arr.join( "\n" ) );
}
function setDisabled() {
UE.getEditor('editor').setDisabled( 'fullscreen' );
disableBtn( "enable" );
}
function setEnabled() {
UE.getEditor('editor').setEnabled();
enableBtn();
}
function getText() {
//当你点击按钮时编辑区域已经失去了焦点,如果直接用getText将不会得到内容,所以要在选回来,然后取得内容
var range = UE.getEditor('editor').selection.getRange();
range.select();
var txt = UE.getEditor('editor').selection.getText();
alert( txt )
}
function getContentTxt() {
var arr = [];
arr.push( "使用editor.getContentTxt()方法可以获得编辑器的纯文本内容" );
arr.push( "编辑器的纯文本内容为:" );
arr.push( UE.getEditor('editor').getContentTxt() );
alert( arr.join( "\n" ) );
}
function hasContent() {
var arr = [];
arr.push( "使用editor.hasContents()方法判断编辑器里是否有内容" );
arr.push( "判断结果为:" );
arr.push( UE.getEditor('editor').hasContents() );
alert( arr.join( "\n" ) );
}
function setFocus() {
UE.getEditor('editor').focus();
}
function deleteEditor() {
disableBtn();
UE.getEditor('editor').destroy();
}
function disableBtn( str ) {
var div = document.getElementById( 'btns' );
var btns = domUtils.getElementsByTagName( div, "button" );
for ( var i = 0, btn; btn = btns[i ]; ) {
if ( btn.id == str ) {
domUtils.removeAttributes( btn, ["disabled"] );
} else {
btn.setAttribute( "disabled", "true" );
}
}
}
function enableBtn() {
var div = document.getElementById( 'btns' );
var btns = domUtils.getElementsByTagName( div, "button" );
for ( var i = 0, btn; btn = btns[i ]; ) {
domUtils.removeAttributes( btn, ["disabled"] );
}
}
</script>
资源文件列表
ueditor1_2_5_1-utf8-net/build/build_editor_css_all.js , 1742
ueditor1_2_5_1-utf8-net/build/build_editor_js_all.js , 1749
ueditor1_2_5_1-utf8-net/build/js.jar , 871260
ueditor1_2_5_1-utf8-net/build/merge.bat , 306
ueditor1_2_5_1-utf8-net/build/yuicompressor-2.4.6.jar , 852834
ueditor1_2_5_1-utf8-net/CHANGELOG.TXT , 12830
ueditor1_2_5_1-utf8-net/dialogs/anchor/anchor.html , 1627
ueditor1_2_5_1-utf8-net/dialogs/attachment/attachment.css , 2602
ueditor1_2_5_1-utf8-net/dialogs/attachment/attachment.html , 6248
ueditor1_2_5_1-utf8-net/dialogs/attachment/callbacks.js , 6009
ueditor1_2_5_1-utf8-net/dialogs/attachment/fileTypeImages/icon_chm.gif , 923
ueditor1_2_5_1-utf8-net/dialogs/attachment/fileTypeImages/icon_default.png , 841
ueditor1_2_5_1-utf8-net/dialogs/attachment/fileTypeImages/icon_doc.gif , 1012
ueditor1_2_5_1-utf8-net/dialogs/attachment/fileTypeImages/icon_exe.gif , 949
ueditor1_2_5_1-utf8-net/dialogs/attachment/fileTypeImages/icon_mp3.gif , 986
ueditor1_2_5_1-utf8-net/dialogs/attachment/fileTypeImages/icon_mv.gif , 1001
ueditor1_2_5_1-utf8-net/dialogs/attachment/fileTypeImages/icon_pdf.gif , 996
ueditor1_2_5_1-utf8-net/dialogs/attachment/fileTypeImages/icon_ppt.gif , 1001
ueditor1_2_5_1-utf8-net/dialogs/attachment/fileTypeImages/icon_psd.gif , 1009
ueditor1_2_5_1-utf8-net/dialogs/attachment/fileTypeImages/icon_rar.gif , 1007
ueditor1_2_5_1-utf8-net/dialogs/attachment/fileTypeImages/icon_txt.gif , 970
ueditor1_2_5_1-utf8-net/dialogs/attachment/fileTypeImages/icon_xls.gif , 1005
ueditor1_2_5_1-utf8-net/dialogs/attachment/fileTypeMaps.js , 747
ueditor1_2_5_1-utf8-net/dialogs/background/background.css , 1102
ueditor1_2_5_1-utf8-net/dialogs/background/background.html , 2891
ueditor1_2_5_1-utf8-net/dialogs/background/background.js , 11952
ueditor1_2_5_1-utf8-net/dialogs/emotion/emotion.css , 1842
ueditor1_2_5_1-utf8-net/dialogs/emotion/emotion.html , 5712
ueditor1_2_5_1-utf8-net/dialogs/emotion/emotion.js , 6487
ueditor1_2_5_1-utf8-net/dialogs/emotion/images/0.gif , 43
ueditor1_2_5_1-utf8-net/dialogs/emotion/images/bface.gif , 27167
ueditor1_2_5_1-utf8-net/dialogs/emotion/images/cface.gif , 8603
ueditor1_2_5_1-utf8-net/dialogs/emotion/images/fface.gif , 18479
ueditor1_2_5_1-utf8-net/dialogs/emotion/images/jxface2.gif , 40706
ueditor1_2_5_1-utf8-net/dialogs/emotion/images/neweditor-tab-bg.png , 216
ueditor1_2_5_1-utf8-net/dialogs/emotion/images/tface.gif , 19805
ueditor1_2_5_1-utf8-net/dialogs/emotion/images/wface.gif , 49850
ueditor1_2_5_1-utf8-net/dialogs/emotion/images/yface.gif , 28409
ueditor1_2_5_1-utf8-net/dialogs/gmap/gmap.html , 4122
ueditor1_2_5_1-utf8-net/dialogs/help/help.css , 395
ueditor1_2_5_1-utf8-net/dialogs/help/help.html , 2943
ueditor1_2_5_1-utf8-net/dialogs/help/help.js , 1490
ueditor1_2_5_1-utf8-net/dialogs/highlightcode/highlightcode.html , 5114
ueditor1_2_5_1-utf8-net/dialogs/image/image.css , 2614
ueditor1_2_5_1-utf8-net/dialogs/image/image.html , 11069
ueditor1_2_5_1-utf8-net/dialogs/image/image.js , 109136
ueditor1_2_5_1-utf8-net/dialogs/image/images/center_focus.jpg , 11795
ueditor1_2_5_1-utf8-net/dialogs/image/images/left_focus.jpg , 11423
ueditor1_2_5_1-utf8-net/dialogs/image/images/none_focus.jpg , 11546
ueditor1_2_5_1-utf8-net/dialogs/image/images/right_focus.jpg , 11334
ueditor1_2_5_1-utf8-net/dialogs/image/imageUploader.swf , 62881
ueditor1_2_5_1-utf8-net/dialogs/insertframe/insertframe.html , 4381
ueditor1_2_5_1-utf8-net/dialogs/internal.js , 2518
ueditor1_2_5_1-utf8-net/dialogs/link/link.html , 4493
ueditor1_2_5_1-utf8-net/dialogs/map/map.html , 4330
ueditor1_2_5_1-utf8-net/dialogs/music/music.css , 1706
ueditor1_2_5_1-utf8-net/dialogs/music/music.html , 981
ueditor1_2_5_1-utf8-net/dialogs/music/music.js , 8013
ueditor1_2_5_1-utf8-net/dialogs/scrawl/images/addimg.png , 628
ueditor1_2_5_1-utf8-net/dialogs/scrawl/images/brush.png , 608
ueditor1_2_5_1-utf8-net/dialogs/scrawl/images/delimg.png , 516
ueditor1_2_5_1-utf8-net/dialogs/scrawl/images/delimgH.png , 578
ueditor1_2_5_1-utf8-net/dialogs/scrawl/images/empty.png , 519
ueditor1_2_5_1-utf8-net/dialogs/scrawl/images/emptyH.png , 657
ueditor1_2_5_1-utf8-net/dialogs/scrawl/images/eraser.png , 43271
ueditor1_2_5_1-utf8-net/dialogs/scrawl/images/redo.png , 454
ueditor1_2_5_1-utf8-net/dialogs/scrawl/images/redoH.png , 536
ueditor1_2_5_1-utf8-net/dialogs/scrawl/images/scale.png , 435
ueditor1_2_5_1-utf8-net/dialogs/scrawl/images/scaleH.png , 330
ueditor1_2_5_1-utf8-net/dialogs/scrawl/images/size.png , 775
ueditor1_2_5_1-utf8-net/dialogs/scrawl/images/undo.png , 444
ueditor1_2_5_1-utf8-net/dialogs/scrawl/images/undoH.png , 511
ueditor1_2_5_1-utf8-net/dialogs/scrawl/scrawl.css , 3887
ueditor1_2_5_1-utf8-net/dialogs/scrawl/scrawl.html , 4013
ueditor1_2_5_1-utf8-net/dialogs/scrawl/scrawl.js , 27009
ueditor1_2_5_1-utf8-net/dialogs/searchreplace/searchreplace.html , 3270
ueditor1_2_5_1-utf8-net/dialogs/searchreplace/searchreplace.js , 4327
ueditor1_2_5_1-utf8-net/dialogs/snapscreen/snapscreen.html , 1978
ueditor1_2_5_1-utf8-net/dialogs/spechars/spechars.html , 849
ueditor1_2_5_1-utf8-net/dialogs/spechars/spechars.js , 4534
ueditor1_2_5_1-utf8-net/dialogs/table/dragicon.png , 304
ueditor1_2_5_1-utf8-net/dialogs/table/edittable.css , 1150
ueditor1_2_5_1-utf8-net/dialogs/table/edittable.html , 1961
ueditor1_2_5_1-utf8-net/dialogs/table/edittable.js , 6635
ueditor1_2_5_1-utf8-net/dialogs/table/edittd.html , 1313
ueditor1_2_5_1-utf8-net/dialogs/table/edittip.html , 895
ueditor1_2_5_1-utf8-net/dialogs/tangram.js , 42159
ueditor1_2_5_1-utf8-net/dialogs/template/config.js , 12524
ueditor1_2_5_1-utf8-net/dialogs/template/images/bg.gif , 84
ueditor1_2_5_1-utf8-net/dialogs/template/images/pre0.png , 250
ueditor1_2_5_1-utf8-net/dialogs/template/images/pre1.png , 291
ueditor1_2_5_1-utf8-net/dialogs/template/images/pre2.png , 394
ueditor1_2_5_1-utf8-net/dialogs/template/images/pre3.png , 485
ueditor1_2_5_1-utf8-net/dialogs/template/images/pre4.png , 393
ueditor1_2_5_1-utf8-net/dialogs/template/template.css , 1047
ueditor1_2_5_1-utf8-net/dialogs/template/template.html , 948
ueditor1_2_5_1-utf8-net/dialogs/template/template.js , 1644
ueditor1_2_5_1-utf8-net/dialogs/video/images/center_focus.jpg , 11795
ueditor1_2_5_1-utf8-net/dialogs/video/images/left_focus.jpg , 11423
ueditor1_2_5_1-utf8-net/dialogs/video/images/none_focus.jpg , 11546
ueditor1_2_5_1-utf8-net/dialogs/video/images/right_focus.jpg , 11334
ueditor1_2_5_1-utf8-net/dialogs/video/video.css , 1993
ueditor1_2_5_1-utf8-net/dialogs/video/video.html , 3076
ueditor1_2_5_1-utf8-net/dialogs/video/video.js , 14358
ueditor1_2_5_1-utf8-net/dialogs/webapp/webapp.html , 2437
ueditor1_2_5_1-utf8-net/dialogs/wordimage/fClipboard_ueditor.swf , 1908
ueditor1_2_5_1-utf8-net/dialogs/wordimage/imageUploader.swf , 62857
ueditor1_2_5_1-utf8-net/dialogs/wordimage/wordimage.html , 5898
ueditor1_2_5_1-utf8-net/dialogs/wordimage/wordimage.js , 4268
ueditor1_2_5_1-utf8-net/editor_all.js , 780993
ueditor1_2_5_1-utf8-net/editor_all_min.js , 379218
ueditor1_2_5_1-utf8-net/editor_config.js , 20957
ueditor1_2_5_1-utf8-net/lang/en/en.js , 23049
ueditor1_2_5_1-utf8-net/lang/en/images/addimage.png , 3373
ueditor1_2_5_1-utf8-net/lang/en/images/alldeletebtnhoverskin.png , 743
ueditor1_2_5_1-utf8-net/lang/en/images/alldeletebtnupskin.png , 743
ueditor1_2_5_1-utf8-net/lang/en/images/background.png , 3854
ueditor1_2_5_1-utf8-net/lang/en/images/button.png , 4929
ueditor1_2_5_1-utf8-net/lang/en/images/copy.png , 1222
ueditor1_2_5_1-utf8-net/lang/en/images/deletedisable.png , 649
ueditor1_2_5_1-utf8-net/lang/en/images/deleteenable.png , 664
ueditor1_2_5_1-utf8-net/lang/en/images/imglabel.png , 672
ueditor1_2_5_1-utf8-net/lang/en/images/listbackground.png , 3750
ueditor1_2_5_1-utf8-net/lang/en/images/localimage.png , 3083
ueditor1_2_5_1-utf8-net/lang/en/images/music.png , 91561
ueditor1_2_5_1-utf8-net/lang/en/images/rotateleftdisable.png , 719
ueditor1_2_5_1-utf8-net/lang/en/images/rotateleftenable.png , 952
ueditor1_2_5_1-utf8-net/lang/en/images/rotaterightdisable.png , 754
ueditor1_2_5_1-utf8-net/lang/en/images/rotaterightenable.png , 1007
ueditor1_2_5_1-utf8-net/lang/en/images/upload.png , 3941
ueditor1_2_5_1-utf8-net/lang/zh-cn/images/copy.png , 4319
ueditor1_2_5_1-utf8-net/lang/zh-cn/images/imglabel.png , 2973
ueditor1_2_5_1-utf8-net/lang/zh-cn/images/localimage.png , 6979
ueditor1_2_5_1-utf8-net/lang/zh-cn/images/music.png , 23106
ueditor1_2_5_1-utf8-net/lang/zh-cn/images/upload.png , 6608
ueditor1_2_5_1-utf8-net/lang/zh-cn/zh-cn.js , 21388
ueditor1_2_5_1-utf8-net/net/fileUp.ashx , 1366
ueditor1_2_5_1-utf8-net/net/getContent.ashx , 1593
ueditor1_2_5_1-utf8-net/net/getMovie.ashx , 1250
ueditor1_2_5_1-utf8-net/net/getRemoteImage.ashx , 4034
ueditor1_2_5_1-utf8-net/net/imageManager.ashx , 1922
ueditor1_2_5_1-utf8-net/net/imageUp.ashx , 1607
ueditor1_2_5_1-utf8-net/net/scrawlUp.ashx , 1961
ueditor1_2_5_1-utf8-net/net/Uploader.cs , 5042
ueditor1_2_5_1-utf8-net/net/Web.config , 438
ueditor1_2_5_1-utf8-net/themes/default/css/ueditor.css , 37634
ueditor1_2_5_1-utf8-net/themes/default/dialogbase.css , 1772
ueditor1_2_5_1-utf8-net/themes/default/images/anchor.gif , 184
ueditor1_2_5_1-utf8-net/themes/default/images/arrow.png , 1173
ueditor1_2_5_1-utf8-net/themes/default/images/button-bg.gif , 1114
ueditor1_2_5_1-utf8-net/themes/default/images/cancelbutton.gif , 1227
最多只能显示150条信息!
