centaline-data-driven 1.2.63 → 1.2.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -2
- package/src/centaline/dynamicContact/src/dynamicContact.vue +27 -7
- package/src/centaline/dynamicRepeat/src/dynamicRepeat.vue +0 -1
- package/src/centaline/dynamicRichText/index.js +5 -5
- package/src/centaline/dynamicRichText/src/dynamicRichText.vue +247 -11
- package/src/centaline/loader/src/ctl/RichText.js +24 -0
- package/src/centaline/loader/src/ctl/Router.js +1 -1
- package/src/centaline/loader/src/ctl/lib/LibFunction.js +20 -16
- package/src/centaline/selectOption/src/selectOptionVertical.vue +1 -1
- package/static/UEditor/dialogs/anchor/anchor.html +40 -0
- package/static/UEditor/dialogs/attachment/attachment.css +681 -0
- package/static/UEditor/dialogs/attachment/attachment.html +60 -0
- package/static/UEditor/dialogs/attachment/attachment.js +768 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_chm.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_default.png +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_doc.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_exe.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_jpg.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_mp3.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_mv.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_pdf.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_ppt.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_psd.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_rar.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_txt.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_xls.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/alignicon.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/alignicon.png +0 -0
- package/static/UEditor/dialogs/attachment/images/bg.png +0 -0
- package/static/UEditor/dialogs/attachment/images/file-icons.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/file-icons.png +0 -0
- package/static/UEditor/dialogs/attachment/images/icons.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/icons.png +0 -0
- package/static/UEditor/dialogs/attachment/images/image.png +0 -0
- package/static/UEditor/dialogs/attachment/images/progress.png +0 -0
- package/static/UEditor/dialogs/attachment/images/success.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/success.png +0 -0
- package/static/UEditor/dialogs/background/background.css +94 -0
- package/static/UEditor/dialogs/background/background.html +56 -0
- package/static/UEditor/dialogs/background/background.js +376 -0
- package/static/UEditor/dialogs/background/images/bg.png +0 -0
- package/static/UEditor/dialogs/background/images/success.png +0 -0
- package/static/UEditor/dialogs/charts/chart.config.js +65 -0
- package/static/UEditor/dialogs/charts/charts.css +165 -0
- package/static/UEditor/dialogs/charts/charts.html +89 -0
- package/static/UEditor/dialogs/charts/charts.js +519 -0
- package/static/UEditor/dialogs/charts/images/charts0.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts1.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts2.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts3.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts4.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts5.png +0 -0
- package/static/UEditor/dialogs/emotion/emotion.css +43 -0
- package/static/UEditor/dialogs/emotion/emotion.html +54 -0
- package/static/UEditor/dialogs/emotion/emotion.js +186 -0
- package/static/UEditor/dialogs/emotion/images/0.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/bface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/cface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/fface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/jxface2.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/neweditor-tab-bg.png +0 -0
- package/static/UEditor/dialogs/emotion/images/tface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/wface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/yface.gif +0 -0
- package/static/UEditor/dialogs/gmap/gmap.html +89 -0
- package/static/UEditor/dialogs/help/help.css +7 -0
- package/static/UEditor/dialogs/help/help.html +82 -0
- package/static/UEditor/dialogs/help/help.js +56 -0
- package/static/UEditor/dialogs/image/image.css +894 -0
- package/static/UEditor/dialogs/image/image.html +120 -0
- package/static/UEditor/dialogs/image/image.js +1156 -0
- package/static/UEditor/dialogs/image/images/alignicon.jpg +0 -0
- package/static/UEditor/dialogs/image/images/bg.png +0 -0
- package/static/UEditor/dialogs/image/images/icons.gif +0 -0
- package/static/UEditor/dialogs/image/images/icons.png +0 -0
- package/static/UEditor/dialogs/image/images/image.png +0 -0
- package/static/UEditor/dialogs/image/images/progress.png +0 -0
- package/static/UEditor/dialogs/image/images/success.gif +0 -0
- package/static/UEditor/dialogs/image/images/success.png +0 -0
- package/static/UEditor/dialogs/insertframe/insertframe.html +98 -0
- package/static/UEditor/dialogs/internal.js +81 -0
- package/static/UEditor/dialogs/link/link.html +126 -0
- package/static/UEditor/dialogs/map/map.html +135 -0
- package/static/UEditor/dialogs/map/show.html +118 -0
- package/static/UEditor/dialogs/music/music.css +30 -0
- package/static/UEditor/dialogs/music/music.html +32 -0
- package/static/UEditor/dialogs/music/music.js +192 -0
- package/static/UEditor/dialogs/preview/preview.html +40 -0
- package/static/UEditor/dialogs/scrawl/images/addimg.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/brush.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/delimg.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/delimgH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/empty.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/emptyH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/eraser.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/redo.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/redoH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/scale.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/scaleH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/size.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/undo.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/undoH.png +0 -0
- package/static/UEditor/dialogs/scrawl/scrawl.css +72 -0
- package/static/UEditor/dialogs/scrawl/scrawl.html +95 -0
- package/static/UEditor/dialogs/scrawl/scrawl.js +671 -0
- package/static/UEditor/dialogs/searchreplace/searchreplace.html +102 -0
- package/static/UEditor/dialogs/searchreplace/searchreplace.js +164 -0
- package/static/UEditor/dialogs/snapscreen/snapscreen.html +58 -0
- package/static/UEditor/dialogs/spechars/spechars.html +21 -0
- package/static/UEditor/dialogs/spechars/spechars.js +57 -0
- package/static/UEditor/dialogs/table/dragicon.png +0 -0
- package/static/UEditor/dialogs/table/edittable.css +84 -0
- package/static/UEditor/dialogs/table/edittable.html +64 -0
- package/static/UEditor/dialogs/table/edittable.js +237 -0
- package/static/UEditor/dialogs/table/edittd.html +61 -0
- package/static/UEditor/dialogs/table/edittip.html +33 -0
- package/static/UEditor/dialogs/template/config.js +42 -0
- package/static/UEditor/dialogs/template/images/bg.gif +0 -0
- package/static/UEditor/dialogs/template/images/pre0.png +0 -0
- package/static/UEditor/dialogs/template/images/pre1.png +0 -0
- package/static/UEditor/dialogs/template/images/pre2.png +0 -0
- package/static/UEditor/dialogs/template/images/pre3.png +0 -0
- package/static/UEditor/dialogs/template/images/pre4.png +0 -0
- package/static/UEditor/dialogs/template/template.css +18 -0
- package/static/UEditor/dialogs/template/template.html +26 -0
- package/static/UEditor/dialogs/template/template.js +53 -0
- package/static/UEditor/dialogs/video/images/bg.png +0 -0
- package/static/UEditor/dialogs/video/images/center_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/file-icons.gif +0 -0
- package/static/UEditor/dialogs/video/images/file-icons.png +0 -0
- package/static/UEditor/dialogs/video/images/icons.gif +0 -0
- package/static/UEditor/dialogs/video/images/icons.png +0 -0
- package/static/UEditor/dialogs/video/images/image.png +0 -0
- package/static/UEditor/dialogs/video/images/left_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/none_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/progress.png +0 -0
- package/static/UEditor/dialogs/video/images/right_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/success.gif +0 -0
- package/static/UEditor/dialogs/video/images/success.png +0 -0
- package/static/UEditor/dialogs/video/video.css +635 -0
- package/static/UEditor/dialogs/video/video.html +86 -0
- package/static/UEditor/dialogs/video/video.js +797 -0
- package/static/UEditor/dialogs/webapp/webapp.html +53 -0
- package/static/UEditor/dialogs/wordimage/fClipboard_ueditor.swf +0 -0
- package/static/UEditor/dialogs/wordimage/imageUploader.swf +0 -0
- package/static/UEditor/dialogs/wordimage/tangram.js +1495 -0
- package/static/UEditor/dialogs/wordimage/wordimage.html +110 -0
- package/static/UEditor/dialogs/wordimage/wordimage.js +157 -0
- package/static/UEditor/index.html +175 -0
- package/static/UEditor/jsp/config.json +94 -0
- package/static/UEditor/jsp/controller.jsp +14 -0
- package/static/UEditor/jsp/lib/commons-codec-1.9.jar +0 -0
- package/static/UEditor/jsp/lib/commons-fileupload-1.3.1.jar +0 -0
- package/static/UEditor/jsp/lib/commons-io-2.4.jar +0 -0
- package/static/UEditor/jsp/lib/json.jar +0 -0
- package/static/UEditor/jsp/lib/ueditor-1.1.2.jar +0 -0
- package/static/UEditor/lang/en/en.js +684 -0
- package/static/UEditor/lang/en/images/addimage.png +0 -0
- package/static/UEditor/lang/en/images/alldeletebtnhoverskin.png +0 -0
- package/static/UEditor/lang/en/images/alldeletebtnupskin.png +0 -0
- package/static/UEditor/lang/en/images/background.png +0 -0
- package/static/UEditor/lang/en/images/button.png +0 -0
- package/static/UEditor/lang/en/images/copy.png +0 -0
- package/static/UEditor/lang/en/images/deletedisable.png +0 -0
- package/static/UEditor/lang/en/images/deleteenable.png +0 -0
- package/static/UEditor/lang/en/images/listbackground.png +0 -0
- package/static/UEditor/lang/en/images/localimage.png +0 -0
- package/static/UEditor/lang/en/images/music.png +0 -0
- package/static/UEditor/lang/en/images/rotateleftdisable.png +0 -0
- package/static/UEditor/lang/en/images/rotateleftenable.png +0 -0
- package/static/UEditor/lang/en/images/rotaterightdisable.png +0 -0
- package/static/UEditor/lang/en/images/rotaterightenable.png +0 -0
- package/static/UEditor/lang/en/images/upload.png +0 -0
- package/static/UEditor/lang/zh-cn/images/copy.png +0 -0
- package/static/UEditor/lang/zh-cn/images/localimage.png +0 -0
- package/static/UEditor/lang/zh-cn/images/music.png +0 -0
- package/static/UEditor/lang/zh-cn/images/upload.png +0 -0
- package/static/UEditor/lang/zh-cn/zh-cn.js +669 -0
- package/static/UEditor/themes/default/css/ueditor.css +1903 -0
- package/static/UEditor/themes/default/css/ueditor.min.css +8 -0
- package/static/UEditor/themes/default/dialogbase.css +100 -0
- package/static/UEditor/themes/default/images/anchor.gif +0 -0
- package/static/UEditor/themes/default/images/arrow.png +0 -0
- package/static/UEditor/themes/default/images/arrow_down.png +0 -0
- package/static/UEditor/themes/default/images/arrow_up.png +0 -0
- package/static/UEditor/themes/default/images/button-bg.gif +0 -0
- package/static/UEditor/themes/default/images/cancelbutton.gif +0 -0
- package/static/UEditor/themes/default/images/charts.png +0 -0
- package/static/UEditor/themes/default/images/cursor_h.gif +0 -0
- package/static/UEditor/themes/default/images/cursor_h.png +0 -0
- package/static/UEditor/themes/default/images/cursor_v.gif +0 -0
- package/static/UEditor/themes/default/images/cursor_v.png +0 -0
- package/static/UEditor/themes/default/images/dialog-title-bg.png +0 -0
- package/static/UEditor/themes/default/images/filescan.png +0 -0
- package/static/UEditor/themes/default/images/highlighted.gif +0 -0
- package/static/UEditor/themes/default/images/icons-all.gif +0 -0
- package/static/UEditor/themes/default/images/icons.gif +0 -0
- package/static/UEditor/themes/default/images/icons.png +0 -0
- package/static/UEditor/themes/default/images/loaderror.png +0 -0
- package/static/UEditor/themes/default/images/loading.gif +0 -0
- package/static/UEditor/themes/default/images/lock.gif +0 -0
- package/static/UEditor/themes/default/images/neweditor-tab-bg.png +0 -0
- package/static/UEditor/themes/default/images/pagebreak.gif +0 -0
- package/static/UEditor/themes/default/images/scale.png +0 -0
- package/static/UEditor/themes/default/images/sortable.png +0 -0
- package/static/UEditor/themes/default/images/spacer.gif +0 -0
- package/static/UEditor/themes/default/images/sparator_v.png +0 -0
- package/static/UEditor/themes/default/images/table-cell-align.png +0 -0
- package/static/UEditor/themes/default/images/tangram-colorpicker.png +0 -0
- package/static/UEditor/themes/default/images/toolbar_bg.png +0 -0
- package/static/UEditor/themes/default/images/unhighlighted.gif +0 -0
- package/static/UEditor/themes/default/images/upload.png +0 -0
- package/static/UEditor/themes/default/images/videologo.gif +0 -0
- package/static/UEditor/themes/default/images/word.gif +0 -0
- package/static/UEditor/themes/default/images/wordpaste.png +0 -0
- package/static/UEditor/themes/iframe.css +1 -0
- package/static/UEditor/third-party/SyntaxHighlighter/shCore.js +3655 -0
- package/static/UEditor/third-party/SyntaxHighlighter/shCoreDefault.css +1 -0
- package/static/UEditor/third-party/codemirror/codemirror.css +104 -0
- package/static/UEditor/third-party/codemirror/codemirror.js +3581 -0
- package/static/UEditor/third-party/highcharts/adapters/mootools-adapter.js +13 -0
- package/static/UEditor/third-party/highcharts/adapters/mootools-adapter.src.js +313 -0
- package/static/UEditor/third-party/highcharts/adapters/prototype-adapter.js +15 -0
- package/static/UEditor/third-party/highcharts/adapters/prototype-adapter.src.js +316 -0
- package/static/UEditor/third-party/highcharts/adapters/standalone-framework.js +17 -0
- package/static/UEditor/third-party/highcharts/adapters/standalone-framework.src.js +583 -0
- package/static/UEditor/third-party/highcharts/highcharts-more.js +50 -0
- package/static/UEditor/third-party/highcharts/highcharts-more.src.js +2430 -0
- package/static/UEditor/third-party/highcharts/highcharts.js +283 -0
- package/static/UEditor/third-party/highcharts/highcharts.src.js +16974 -0
- package/static/UEditor/third-party/highcharts/modules/annotations.js +7 -0
- package/static/UEditor/third-party/highcharts/modules/annotations.src.js +401 -0
- package/static/UEditor/third-party/highcharts/modules/canvas-tools.js +133 -0
- package/static/UEditor/third-party/highcharts/modules/canvas-tools.src.js +3113 -0
- package/static/UEditor/third-party/highcharts/modules/data.js +17 -0
- package/static/UEditor/third-party/highcharts/modules/data.src.js +582 -0
- package/static/UEditor/third-party/highcharts/modules/drilldown.js +11 -0
- package/static/UEditor/third-party/highcharts/modules/drilldown.src.js +447 -0
- package/static/UEditor/third-party/highcharts/modules/exporting.js +22 -0
- package/static/UEditor/third-party/highcharts/modules/exporting.src.js +709 -0
- package/static/UEditor/third-party/highcharts/modules/funnel.js +12 -0
- package/static/UEditor/third-party/highcharts/modules/funnel.src.js +289 -0
- package/static/UEditor/third-party/highcharts/modules/heatmap.js +1 -0
- package/static/UEditor/third-party/highcharts/modules/heatmap.src.js +53 -0
- package/static/UEditor/third-party/highcharts/modules/map.js +27 -0
- package/static/UEditor/third-party/highcharts/modules/map.src.js +1002 -0
- package/static/UEditor/third-party/highcharts/modules/no-data-to-display.js +12 -0
- package/static/UEditor/third-party/highcharts/modules/no-data-to-display.src.js +128 -0
- package/static/UEditor/third-party/highcharts/themes/dark-blue.js +254 -0
- package/static/UEditor/third-party/highcharts/themes/dark-green.js +255 -0
- package/static/UEditor/third-party/highcharts/themes/gray.js +257 -0
- package/static/UEditor/third-party/highcharts/themes/grid.js +103 -0
- package/static/UEditor/third-party/highcharts/themes/skies.js +89 -0
- package/static/UEditor/third-party/jquery-1.10.2.js +9789 -0
- package/static/UEditor/third-party/jquery-1.10.2.min.js +6 -0
- package/static/UEditor/third-party/jquery-1.10.2.min.map +1 -0
- package/static/UEditor/third-party/snapscreen/UEditorSnapscreen.exe +0 -0
- package/static/UEditor/third-party/video-js/font/vjs.eot +0 -0
- package/static/UEditor/third-party/video-js/font/vjs.svg +65 -0
- package/static/UEditor/third-party/video-js/font/vjs.ttf +0 -0
- package/static/UEditor/third-party/video-js/font/vjs.woff +0 -0
- package/static/UEditor/third-party/video-js/video-js.css +766 -0
- package/static/UEditor/third-party/video-js/video-js.min.css +5 -0
- package/static/UEditor/third-party/video-js/video-js.swf +0 -0
- package/static/UEditor/third-party/video-js/video.dev.js +7106 -0
- package/static/UEditor/third-party/video-js/video.js +129 -0
- package/static/UEditor/third-party/webuploader/Uploader.swf +0 -0
- package/static/UEditor/third-party/webuploader/webuploader.css +28 -0
- package/static/UEditor/third-party/webuploader/webuploader.custom.js +5670 -0
- package/static/UEditor/third-party/webuploader/webuploader.custom.min.js +2 -0
- package/static/UEditor/third-party/webuploader/webuploader.flashonly.js +4176 -0
- package/static/UEditor/third-party/webuploader/webuploader.flashonly.min.js +2 -0
- package/static/UEditor/third-party/webuploader/webuploader.html5only.js +5559 -0
- package/static/UEditor/third-party/webuploader/webuploader.html5only.min.js +2 -0
- package/static/UEditor/third-party/webuploader/webuploader.js +6733 -0
- package/static/UEditor/third-party/webuploader/webuploader.min.js +2 -0
- package/static/UEditor/third-party/webuploader/webuploader.withoutimage.js +4593 -0
- package/static/UEditor/third-party/webuploader/webuploader.withoutimage.min.js +2 -0
- package/static/UEditor/third-party/xss.min.js +1 -0
- package/static/UEditor/third-party/zeroclipboard/ZeroClipboard.js +1256 -0
- package/static/UEditor/third-party/zeroclipboard/ZeroClipboard.min.js +9 -0
- package/static/UEditor/third-party/zeroclipboard/ZeroClipboard.swf +0 -0
- package/static/UEditor/ueditor.all.min.js +29574 -0
- package/static/UEditor/ueditor.config.js +497 -0
- package/static/UEditor/ueditor.parse.js +1022 -0
- package/static/UEditor/ueditor.parse.min.js +7 -0
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/html4/loose.dtd">
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<title></title>
|
|
6
|
+
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
|
|
7
|
+
<script type="text/javascript" src="../internal.js"></script>
|
|
8
|
+
<style type="text/css">
|
|
9
|
+
.wrapper{width: 600px;padding: 10px;height: 352px;overflow: hidden;position: relative;border-bottom: 1px solid #d7d7d7}
|
|
10
|
+
.localPath input{float: left;width: 350px;line-height: 20px;height: 20px;}
|
|
11
|
+
#clipboard{float:left;width: 70px;height: 30px; }
|
|
12
|
+
.description{ color: #0066cc; margin-top: 2px; width: 450px; height: 45px;float: left;line-height: 22px}
|
|
13
|
+
#upload{width: 100px;height: 30px;float: right; margin:10px 2px 0 0;cursor: pointer;}
|
|
14
|
+
#msg{ width: 140px; height: 30px; line-height:25px;float: left;color: red}
|
|
15
|
+
</style>
|
|
16
|
+
</head>
|
|
17
|
+
<body>
|
|
18
|
+
<div class="wrapper">
|
|
19
|
+
<div class="localPath">
|
|
20
|
+
<input id="localPath" type="text" readonly />
|
|
21
|
+
<div id="clipboard"></div>
|
|
22
|
+
<div id="msg"></div>
|
|
23
|
+
</div>
|
|
24
|
+
<div id="flashContainer"></div>
|
|
25
|
+
<div>
|
|
26
|
+
<div id="upload" style="display: none" ><img id="uploadBtn"></div>
|
|
27
|
+
<div class="description">
|
|
28
|
+
<span style="color: red"><var id="lang_resave"></var>: </span><var id="lang_step"></var>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<script type="text/javascript" src="tangram.js"></script>
|
|
33
|
+
<script type="text/javascript" src="wordimage.js"></script>
|
|
34
|
+
<script type="text/javascript">
|
|
35
|
+
editor.setOpt({
|
|
36
|
+
wordImageFieldName:"upfile",
|
|
37
|
+
compressSide:0,
|
|
38
|
+
maxImageSideLength:900
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
//全局变量
|
|
42
|
+
var imageUrls = [], //用于保存从服务器返回的图片信息数组
|
|
43
|
+
selectedImageCount = 0, //当前已选择的但未上传的图片数量
|
|
44
|
+
optImageUrl = editor.getActionUrl(editor.getOpt('imageActionName')),
|
|
45
|
+
optImageFieldName = editor.getOpt('imageFieldName'),
|
|
46
|
+
optImageCompressBorder = editor.getOpt('imageCompressEnable') ? editor.getOpt('imageCompressBorder'):null,
|
|
47
|
+
maxSize = editor.getOpt('imageMaxSize') / 1024,
|
|
48
|
+
extension = editor.getOpt('imageAllowFiles').join(';').replace(/\./g, '*.');
|
|
49
|
+
/* 添加额外的GET参数 */
|
|
50
|
+
var params = utils.serializeParam(editor.queryCommandValue('serverparam')) || '',
|
|
51
|
+
urlWidthParams = optImageUrl + (optImageUrl.indexOf('?') == -1 ? '?':'&') + params;
|
|
52
|
+
|
|
53
|
+
utils.domReady(function(){
|
|
54
|
+
//创建Flash相关的参数集合
|
|
55
|
+
var flashOptions = {
|
|
56
|
+
container:"flashContainer", //flash容器id
|
|
57
|
+
url:urlWidthParams, // 上传处理页面的url地址
|
|
58
|
+
ext:editor.queryCommandValue('serverParam') || {}, //可向服务器提交的自定义参数列表
|
|
59
|
+
fileType:'{"description":"'+lang.fileType+'", "extension":"' + extension + '"}', //上传文件格式限制
|
|
60
|
+
flashUrl:'imageUploader.swf', //上传用的flash组件地址
|
|
61
|
+
width:600, //flash的宽度
|
|
62
|
+
height:272, //flash的高度
|
|
63
|
+
gridWidth:120, // 每一个预览图片所占的宽度
|
|
64
|
+
gridHeight:120, // 每一个预览图片所占的高度
|
|
65
|
+
picWidth:100, // 单张预览图片的宽度
|
|
66
|
+
picHeight:100, // 单张预览图片的高度
|
|
67
|
+
uploadDataFieldName: optImageFieldName, // POST请求中图片数据的key
|
|
68
|
+
picDescFieldName:'pictitle', // POST请求中图片描述的key
|
|
69
|
+
maxSize: maxSize, // 文件的最大体积,单位M
|
|
70
|
+
compressSize:1, // 上传前如果图片体积超过该值,会先压缩,单位M
|
|
71
|
+
maxNum:32, // 单次最大可上传多少个文件
|
|
72
|
+
compressSide: 0, //等比压缩的基准,0为按照最长边,1为按照宽度,2为按照高度
|
|
73
|
+
compressLength: optImageCompressBorder //能接受的最大边长,超过该值Flash会自动等比压缩
|
|
74
|
+
};
|
|
75
|
+
//回调函数集合,支持传递函数名的字符串、函数句柄以及函数本身三种类型
|
|
76
|
+
var callbacks={
|
|
77
|
+
selectFileCallback: function(selectFiles){ // 选择文件的回调
|
|
78
|
+
selectedImageCount += selectFiles.length;
|
|
79
|
+
if(selectedImageCount) baidu.g("upload").style.display = "";
|
|
80
|
+
dialog.buttons[0].setDisabled(true); //初始化时置灰确定按钮
|
|
81
|
+
},
|
|
82
|
+
deleteFileCallback: function(delFiles){ // 删除文件的回调
|
|
83
|
+
selectedImageCount -= delFiles.length;
|
|
84
|
+
if (!selectedImageCount) {
|
|
85
|
+
baidu.g("upload").style.display = "none";
|
|
86
|
+
dialog.buttons[0].setDisabled(false); //没有选择图片时重新点亮按钮
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
uploadCompleteCallback: function(data){ // 单个文件上传完成的回调
|
|
90
|
+
try{var info = eval("(" + data.info + ")");
|
|
91
|
+
info && imageUrls.push(info);
|
|
92
|
+
selectedImageCount--;
|
|
93
|
+
}catch(e){}
|
|
94
|
+
},
|
|
95
|
+
uploadErrorCallback: function (data){ // 单个文件上传失败的回调,
|
|
96
|
+
console && console.log(data);
|
|
97
|
+
},
|
|
98
|
+
allCompleteCallback: function(){ // 全部上传完成时的回调
|
|
99
|
+
dialog.buttons[0].setDisabled(false); //上传完毕后点亮按钮
|
|
100
|
+
}
|
|
101
|
+
//exceedFileCallback: 'exceedFileCallback', // 文件超出限制的最大体积时的回调
|
|
102
|
+
//startUploadCallback: startUploadCallback // 开始上传某个文件时的回调
|
|
103
|
+
};
|
|
104
|
+
wordImage.init(flashOptions,callbacks);
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
</script>
|
|
108
|
+
|
|
109
|
+
</body>
|
|
110
|
+
</html>
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by JetBrains PhpStorm.
|
|
3
|
+
* User: taoqili
|
|
4
|
+
* Date: 12-1-30
|
|
5
|
+
* Time: 下午12:50
|
|
6
|
+
* To change this template use File | Settings | File Templates.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var wordImage = {};
|
|
12
|
+
//(function(){
|
|
13
|
+
var g = baidu.g,
|
|
14
|
+
flashObj,flashContainer;
|
|
15
|
+
|
|
16
|
+
wordImage.init = function(opt, callbacks) {
|
|
17
|
+
showLocalPath("localPath");
|
|
18
|
+
//createCopyButton("clipboard","localPath");
|
|
19
|
+
createFlashUploader(opt, callbacks);
|
|
20
|
+
addUploadListener();
|
|
21
|
+
addOkListener();
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
function hideFlash(){
|
|
25
|
+
flashObj = null;
|
|
26
|
+
flashContainer.innerHTML = "";
|
|
27
|
+
}
|
|
28
|
+
function addOkListener() {
|
|
29
|
+
dialog.onok = function() {
|
|
30
|
+
if (!imageUrls.length) return;
|
|
31
|
+
var urlPrefix = editor.getOpt('imageUrlPrefix'),
|
|
32
|
+
images = domUtils.getElementsByTagName(editor.document,"img");
|
|
33
|
+
editor.fireEvent('saveScene');
|
|
34
|
+
for (var i = 0,img; img = images[i++];) {
|
|
35
|
+
var src = img.getAttribute("word_img");
|
|
36
|
+
if (!src) continue;
|
|
37
|
+
for (var j = 0,url; url = imageUrls[j++];) {
|
|
38
|
+
if (src.indexOf(url.original.replace(" ","")) != -1) {
|
|
39
|
+
img.src = urlPrefix + url.url;
|
|
40
|
+
img.setAttribute("_src", urlPrefix + url.url); //同时修改"_src"属性
|
|
41
|
+
img.setAttribute("title",url.title);
|
|
42
|
+
domUtils.removeAttributes(img, ["word_img","style","width","height"]);
|
|
43
|
+
editor.fireEvent("selectionchange");
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
editor.fireEvent('saveScene');
|
|
49
|
+
hideFlash();
|
|
50
|
+
};
|
|
51
|
+
dialog.oncancel = function(){
|
|
52
|
+
hideFlash();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* 绑定开始上传事件
|
|
58
|
+
*/
|
|
59
|
+
function addUploadListener() {
|
|
60
|
+
g("upload").onclick = function () {
|
|
61
|
+
flashObj.upload();
|
|
62
|
+
this.style.display = "none";
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function showLocalPath(id) {
|
|
67
|
+
//单张编辑
|
|
68
|
+
var img = editor.selection.getRange().getClosedNode();
|
|
69
|
+
var images = editor.execCommand('wordimage');
|
|
70
|
+
if(images.length==1 || img && img.tagName == 'IMG'){
|
|
71
|
+
g(id).value = images[0];
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
var path = images[0];
|
|
75
|
+
var leftSlashIndex = path.lastIndexOf("/")||0, //不同版本的doc和浏览器都可能影响到这个符号,故直接判断两种
|
|
76
|
+
rightSlashIndex = path.lastIndexOf("\\")||0,
|
|
77
|
+
separater = leftSlashIndex > rightSlashIndex ? "/":"\\" ;
|
|
78
|
+
|
|
79
|
+
path = path.substring(0, path.lastIndexOf(separater)+1);
|
|
80
|
+
g(id).value = path;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function createFlashUploader(opt, callbacks) {
|
|
84
|
+
//由于lang.flashI18n是静态属性,不可以直接进行修改,否则会影响到后续内容
|
|
85
|
+
var i18n = utils.extend({},lang.flashI18n);
|
|
86
|
+
//处理图片资源地址的编码,补全等问题
|
|
87
|
+
for(var i in i18n){
|
|
88
|
+
if(!(i in {"lang":1,"uploadingTF":1,"imageTF":1,"textEncoding":1}) && i18n[i]){
|
|
89
|
+
i18n[i] = encodeURIComponent(editor.options.langPath + editor.options.lang + "/images/" + i18n[i]);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
opt = utils.extend(opt,i18n,false);
|
|
93
|
+
var option = {
|
|
94
|
+
createOptions:{
|
|
95
|
+
id:'flash',
|
|
96
|
+
url:opt.flashUrl,
|
|
97
|
+
width:opt.width,
|
|
98
|
+
height:opt.height,
|
|
99
|
+
errorMessage:lang.flashError,
|
|
100
|
+
wmode:browser.safari ? 'transparent' : 'window',
|
|
101
|
+
ver:'10.0.0',
|
|
102
|
+
vars:opt,
|
|
103
|
+
container:opt.container
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
option = extendProperty(callbacks, option);
|
|
108
|
+
flashObj = new baidu.flash.imageUploader(option);
|
|
109
|
+
flashContainer = $G(opt.container);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function extendProperty(fromObj, toObj) {
|
|
113
|
+
for (var i in fromObj) {
|
|
114
|
+
if (!toObj[i]) {
|
|
115
|
+
toObj[i] = fromObj[i];
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return toObj;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
//})();
|
|
122
|
+
|
|
123
|
+
function getPasteData(id) {
|
|
124
|
+
baidu.g("msg").innerHTML = lang.copySuccess + "</br>";
|
|
125
|
+
setTimeout(function() {
|
|
126
|
+
baidu.g("msg").innerHTML = "";
|
|
127
|
+
}, 5000);
|
|
128
|
+
return baidu.g(id).value;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function createCopyButton(id, dataFrom) {
|
|
132
|
+
baidu.swf.create({
|
|
133
|
+
id:"copyFlash",
|
|
134
|
+
url:"fClipboard_ueditor.swf",
|
|
135
|
+
width:"58",
|
|
136
|
+
height:"25",
|
|
137
|
+
errorMessage:"",
|
|
138
|
+
bgColor:"#CBCBCB",
|
|
139
|
+
wmode:"transparent",
|
|
140
|
+
ver:"10.0.0",
|
|
141
|
+
vars:{
|
|
142
|
+
tid:dataFrom
|
|
143
|
+
}
|
|
144
|
+
}, id
|
|
145
|
+
);
|
|
146
|
+
|
|
147
|
+
var clipboard = baidu.swf.getMovie("copyFlash");
|
|
148
|
+
var clipinterval = setInterval(function() {
|
|
149
|
+
if (clipboard && clipboard.flashInit) {
|
|
150
|
+
clearInterval(clipinterval);
|
|
151
|
+
clipboard.setHandCursor(true);
|
|
152
|
+
clipboard.setContentFuncName("getPasteData");
|
|
153
|
+
//clipboard.setMEFuncName("mouseEventHandler");
|
|
154
|
+
}
|
|
155
|
+
}, 500);
|
|
156
|
+
}
|
|
157
|
+
createCopyButton("clipboard", "localPath");
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/html4/loose.dtd">
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<title>完整demo</title>
|
|
6
|
+
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
|
|
7
|
+
<script type="text/javascript" charset="utf-8" src="ueditor.config.js"></script>
|
|
8
|
+
<script type="text/javascript" charset="utf-8" src="ueditor.all.min.js"> </script>
|
|
9
|
+
<!--建议手动加在语言,避免在ie下有时因为加载语言失败导致编辑器加载失败-->
|
|
10
|
+
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型,比如你在配置项目里配置的是英文,这里加载的中文,那最后就是中文-->
|
|
11
|
+
<script type="text/javascript" charset="utf-8" src="lang/zh-cn/zh-cn.js"></script>
|
|
12
|
+
|
|
13
|
+
<style type="text/css">
|
|
14
|
+
div{
|
|
15
|
+
width:100%;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<div>
|
|
21
|
+
<h1>完整demo</h1>
|
|
22
|
+
<script id="editor" type="text/plain" style="width:1024px;height:500px;"></script>
|
|
23
|
+
</div>
|
|
24
|
+
<div id="btns">
|
|
25
|
+
<div>
|
|
26
|
+
<button onclick="getAllHtml()">获得整个html的内容</button>
|
|
27
|
+
<button onclick="getContent()">获得内容</button>
|
|
28
|
+
<button onclick="setContent()">写入内容</button>
|
|
29
|
+
<button onclick="setContent(true)">追加内容</button>
|
|
30
|
+
<button onclick="getContentTxt()">获得纯文本</button>
|
|
31
|
+
<button onclick="getPlainTxt()">获得带格式的纯文本</button>
|
|
32
|
+
<button onclick="hasContent()">判断是否有内容</button>
|
|
33
|
+
<button onclick="setFocus()">使编辑器获得焦点</button>
|
|
34
|
+
<button onmousedown="isFocus(event)">编辑器是否获得焦点</button>
|
|
35
|
+
<button onmousedown="setblur(event)" >编辑器失去焦点</button>
|
|
36
|
+
|
|
37
|
+
</div>
|
|
38
|
+
<div>
|
|
39
|
+
<button onclick="getText()">获得当前选中的文本</button>
|
|
40
|
+
<button onclick="insertHtml()">插入给定的内容</button>
|
|
41
|
+
<button id="enable" onclick="setEnabled()">可以编辑</button>
|
|
42
|
+
<button onclick="setDisabled()">不可编辑</button>
|
|
43
|
+
<button onclick=" UE.getEditor('editor').setHide()">隐藏编辑器</button>
|
|
44
|
+
<button onclick=" UE.getEditor('editor').setShow()">显示编辑器</button>
|
|
45
|
+
<button onclick=" UE.getEditor('editor').setHeight(300)">设置高度为300默认关闭了自动长高</button>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<div>
|
|
49
|
+
<button onclick="getLocalData()" >获取草稿箱内容</button>
|
|
50
|
+
<button onclick="clearLocalData()" >清空草稿箱</button>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<div>
|
|
55
|
+
<button onclick="createEditor()">
|
|
56
|
+
创建编辑器</button>
|
|
57
|
+
<button onclick="deleteEditor()">
|
|
58
|
+
删除编辑器</button>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<script type="text/javascript">
|
|
62
|
+
|
|
63
|
+
//实例化编辑器
|
|
64
|
+
//建议使用工厂方法getEditor创建和引用编辑器实例,如果在某个闭包下引用该编辑器,直接调用UE.getEditor('editor')就能拿到相关的实例
|
|
65
|
+
var ue = UE.getEditor('editor');
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
function isFocus(e){
|
|
69
|
+
alert(UE.getEditor('editor').isFocus());
|
|
70
|
+
UE.dom.domUtils.preventDefault(e)
|
|
71
|
+
}
|
|
72
|
+
function setblur(e){
|
|
73
|
+
UE.getEditor('editor').blur();
|
|
74
|
+
UE.dom.domUtils.preventDefault(e)
|
|
75
|
+
}
|
|
76
|
+
function insertHtml() {
|
|
77
|
+
var value = prompt('插入html代码', '');
|
|
78
|
+
UE.getEditor('editor').execCommand('insertHtml', value)
|
|
79
|
+
}
|
|
80
|
+
function createEditor() {
|
|
81
|
+
enableBtn();
|
|
82
|
+
UE.getEditor('editor');
|
|
83
|
+
}
|
|
84
|
+
function getAllHtml() {
|
|
85
|
+
alert(UE.getEditor('editor').getAllHtml())
|
|
86
|
+
}
|
|
87
|
+
function getContent() {
|
|
88
|
+
var arr = [];
|
|
89
|
+
arr.push("使用editor.getContent()方法可以获得编辑器的内容");
|
|
90
|
+
arr.push("内容为:");
|
|
91
|
+
arr.push(UE.getEditor('editor').getContent());
|
|
92
|
+
alert(arr.join("\n"));
|
|
93
|
+
}
|
|
94
|
+
function getPlainTxt() {
|
|
95
|
+
var arr = [];
|
|
96
|
+
arr.push("使用editor.getPlainTxt()方法可以获得编辑器的带格式的纯文本内容");
|
|
97
|
+
arr.push("内容为:");
|
|
98
|
+
arr.push(UE.getEditor('editor').getPlainTxt());
|
|
99
|
+
alert(arr.join('\n'))
|
|
100
|
+
}
|
|
101
|
+
function setContent(isAppendTo) {
|
|
102
|
+
var arr = [];
|
|
103
|
+
arr.push("使用editor.setContent('欢迎使用ueditor')方法可以设置编辑器的内容");
|
|
104
|
+
UE.getEditor('editor').setContent('欢迎使用ueditor', isAppendTo);
|
|
105
|
+
alert(arr.join("\n"));
|
|
106
|
+
}
|
|
107
|
+
function setDisabled() {
|
|
108
|
+
UE.getEditor('editor').setDisabled('fullscreen');
|
|
109
|
+
disableBtn("enable");
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function setEnabled() {
|
|
113
|
+
UE.getEditor('editor').setEnabled();
|
|
114
|
+
enableBtn();
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function getText() {
|
|
118
|
+
//当你点击按钮时编辑区域已经失去了焦点,如果直接用getText将不会得到内容,所以要在选回来,然后取得内容
|
|
119
|
+
var range = UE.getEditor('editor').selection.getRange();
|
|
120
|
+
range.select();
|
|
121
|
+
var txt = UE.getEditor('editor').selection.getText();
|
|
122
|
+
alert(txt)
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function getContentTxt() {
|
|
126
|
+
var arr = [];
|
|
127
|
+
arr.push("使用editor.getContentTxt()方法可以获得编辑器的纯文本内容");
|
|
128
|
+
arr.push("编辑器的纯文本内容为:");
|
|
129
|
+
arr.push(UE.getEditor('editor').getContentTxt());
|
|
130
|
+
alert(arr.join("\n"));
|
|
131
|
+
}
|
|
132
|
+
function hasContent() {
|
|
133
|
+
var arr = [];
|
|
134
|
+
arr.push("使用editor.hasContents()方法判断编辑器里是否有内容");
|
|
135
|
+
arr.push("判断结果为:");
|
|
136
|
+
arr.push(UE.getEditor('editor').hasContents());
|
|
137
|
+
alert(arr.join("\n"));
|
|
138
|
+
}
|
|
139
|
+
function setFocus() {
|
|
140
|
+
UE.getEditor('editor').focus();
|
|
141
|
+
}
|
|
142
|
+
function deleteEditor() {
|
|
143
|
+
disableBtn();
|
|
144
|
+
UE.getEditor('editor').destroy();
|
|
145
|
+
}
|
|
146
|
+
function disableBtn(str) {
|
|
147
|
+
var div = document.getElementById('btns');
|
|
148
|
+
var btns = UE.dom.domUtils.getElementsByTagName(div, "button");
|
|
149
|
+
for (var i = 0, btn; btn = btns[i++];) {
|
|
150
|
+
if (btn.id == str) {
|
|
151
|
+
UE.dom.domUtils.removeAttributes(btn, ["disabled"]);
|
|
152
|
+
} else {
|
|
153
|
+
btn.setAttribute("disabled", "true");
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function enableBtn() {
|
|
158
|
+
var div = document.getElementById('btns');
|
|
159
|
+
var btns = UE.dom.domUtils.getElementsByTagName(div, "button");
|
|
160
|
+
for (var i = 0, btn; btn = btns[i++];) {
|
|
161
|
+
UE.dom.domUtils.removeAttributes(btn, ["disabled"]);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function getLocalData () {
|
|
166
|
+
alert(UE.getEditor('editor').execCommand( "getlocaldata" ));
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function clearLocalData () {
|
|
170
|
+
UE.getEditor('editor').execCommand( "clearlocaldata" );
|
|
171
|
+
alert("已清空草稿箱")
|
|
172
|
+
}
|
|
173
|
+
</script>
|
|
174
|
+
</body>
|
|
175
|
+
</html>
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* 前后端通信相关的配置,注释只允许使用多行方式 */
|
|
2
|
+
{
|
|
3
|
+
/* 上传图片配置项 */
|
|
4
|
+
"imageActionName": "uploadimage", /* 执行上传图片的action名称 */
|
|
5
|
+
"imageFieldName": "upfile", /* 提交的图片表单名称 */
|
|
6
|
+
"imageMaxSize": 2048000, /* 上传大小限制,单位B */
|
|
7
|
+
"imageAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* 上传图片格式显示 */
|
|
8
|
+
"imageCompressEnable": true, /* 是否压缩图片,默认是true */
|
|
9
|
+
"imageCompressBorder": 1600, /* 图片压缩最长边限制 */
|
|
10
|
+
"imageInsertAlign": "none", /* 插入的图片浮动方式 */
|
|
11
|
+
"imageUrlPrefix": "", /* 图片访问路径前缀 */
|
|
12
|
+
"imagePathFormat": "/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */
|
|
13
|
+
/* {filename} 会替换成原文件名,配置这项需要注意中文乱码问题 */
|
|
14
|
+
/* {rand:6} 会替换成随机数,后面的数字是随机数的位数 */
|
|
15
|
+
/* {time} 会替换成时间戳 */
|
|
16
|
+
/* {yyyy} 会替换成四位年份 */
|
|
17
|
+
/* {yy} 会替换成两位年份 */
|
|
18
|
+
/* {mm} 会替换成两位月份 */
|
|
19
|
+
/* {dd} 会替换成两位日期 */
|
|
20
|
+
/* {hh} 会替换成两位小时 */
|
|
21
|
+
/* {ii} 会替换成两位分钟 */
|
|
22
|
+
/* {ss} 会替换成两位秒 */
|
|
23
|
+
/* 非法字符 \ : * ? " < > | */
|
|
24
|
+
/* 具请体看线上文档: fex.baidu.com/ueditor/#use-format_upload_filename */
|
|
25
|
+
|
|
26
|
+
/* 涂鸦图片上传配置项 */
|
|
27
|
+
"scrawlActionName": "uploadscrawl", /* 执行上传涂鸦的action名称 */
|
|
28
|
+
"scrawlFieldName": "upfile", /* 提交的图片表单名称 */
|
|
29
|
+
"scrawlPathFormat": "/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */
|
|
30
|
+
"scrawlMaxSize": 2048000, /* 上传大小限制,单位B */
|
|
31
|
+
"scrawlUrlPrefix": "", /* 图片访问路径前缀 */
|
|
32
|
+
"scrawlInsertAlign": "none",
|
|
33
|
+
|
|
34
|
+
/* 截图工具上传 */
|
|
35
|
+
"snapscreenActionName": "uploadimage", /* 执行上传截图的action名称 */
|
|
36
|
+
"snapscreenPathFormat": "/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */
|
|
37
|
+
"snapscreenUrlPrefix": "", /* 图片访问路径前缀 */
|
|
38
|
+
"snapscreenInsertAlign": "none", /* 插入的图片浮动方式 */
|
|
39
|
+
|
|
40
|
+
/* 抓取远程图片配置 */
|
|
41
|
+
"catcherLocalDomain": ["127.0.0.1", "localhost", "img.baidu.com"],
|
|
42
|
+
"catcherActionName": "catchimage", /* 执行抓取远程图片的action名称 */
|
|
43
|
+
"catcherFieldName": "source", /* 提交的图片列表表单名称 */
|
|
44
|
+
"catcherPathFormat": "/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */
|
|
45
|
+
"catcherUrlPrefix": "", /* 图片访问路径前缀 */
|
|
46
|
+
"catcherMaxSize": 2048000, /* 上传大小限制,单位B */
|
|
47
|
+
"catcherAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* 抓取图片格式显示 */
|
|
48
|
+
|
|
49
|
+
/* 上传视频配置 */
|
|
50
|
+
"videoActionName": "uploadvideo", /* 执行上传视频的action名称 */
|
|
51
|
+
"videoFieldName": "upfile", /* 提交的视频表单名称 */
|
|
52
|
+
"videoPathFormat": "/ueditor/jsp/upload/video/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */
|
|
53
|
+
"videoUrlPrefix": "", /* 视频访问路径前缀 */
|
|
54
|
+
"videoMaxSize": 102400000, /* 上传大小限制,单位B,默认100MB */
|
|
55
|
+
"videoAllowFiles": [
|
|
56
|
+
".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg",
|
|
57
|
+
".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid"], /* 上传视频格式显示 */
|
|
58
|
+
|
|
59
|
+
/* 上传文件配置 */
|
|
60
|
+
"fileActionName": "uploadfile", /* controller里,执行上传视频的action名称 */
|
|
61
|
+
"fileFieldName": "upfile", /* 提交的文件表单名称 */
|
|
62
|
+
"filePathFormat": "/ueditor/jsp/upload/file/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */
|
|
63
|
+
"fileUrlPrefix": "", /* 文件访问路径前缀 */
|
|
64
|
+
"fileMaxSize": 51200000, /* 上传大小限制,单位B,默认50MB */
|
|
65
|
+
"fileAllowFiles": [
|
|
66
|
+
".png", ".jpg", ".jpeg", ".gif", ".bmp",
|
|
67
|
+
".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg",
|
|
68
|
+
".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid",
|
|
69
|
+
".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso",
|
|
70
|
+
".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml"
|
|
71
|
+
], /* 上传文件格式显示 */
|
|
72
|
+
|
|
73
|
+
/* 列出指定目录下的图片 */
|
|
74
|
+
"imageManagerActionName": "listimage", /* 执行图片管理的action名称 */
|
|
75
|
+
"imageManagerListPath": "/ueditor/jsp/upload/image/", /* 指定要列出图片的目录 */
|
|
76
|
+
"imageManagerListSize": 20, /* 每次列出文件数量 */
|
|
77
|
+
"imageManagerUrlPrefix": "", /* 图片访问路径前缀 */
|
|
78
|
+
"imageManagerInsertAlign": "none", /* 插入的图片浮动方式 */
|
|
79
|
+
"imageManagerAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* 列出的文件类型 */
|
|
80
|
+
|
|
81
|
+
/* 列出指定目录下的文件 */
|
|
82
|
+
"fileManagerActionName": "listfile", /* 执行文件管理的action名称 */
|
|
83
|
+
"fileManagerListPath": "/ueditor/jsp/upload/file/", /* 指定要列出文件的目录 */
|
|
84
|
+
"fileManagerUrlPrefix": "", /* 文件访问路径前缀 */
|
|
85
|
+
"fileManagerListSize": 20, /* 每次列出文件数量 */
|
|
86
|
+
"fileManagerAllowFiles": [
|
|
87
|
+
".png", ".jpg", ".jpeg", ".gif", ".bmp",
|
|
88
|
+
".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg",
|
|
89
|
+
".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid",
|
|
90
|
+
".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso",
|
|
91
|
+
".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml"
|
|
92
|
+
] /* 列出的文件类型 */
|
|
93
|
+
|
|
94
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
|
2
|
+
import="com.baidu.ueditor.ActionEnter"
|
|
3
|
+
pageEncoding="UTF-8"%>
|
|
4
|
+
<%@ page trimDirectiveWhitespaces="true" %>
|
|
5
|
+
<%
|
|
6
|
+
|
|
7
|
+
request.setCharacterEncoding( "utf-8" );
|
|
8
|
+
response.setHeader("Content-Type" , "text/html");
|
|
9
|
+
|
|
10
|
+
String rootPath = application.getRealPath( "/" );
|
|
11
|
+
|
|
12
|
+
out.write( new ActionEnter( request, rootPath ).exec() );
|
|
13
|
+
|
|
14
|
+
%>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|