baidu_ueditor_rails 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/vendor/assets/javascripts/ueditor/dialogs/anchor/anchor.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.css +648 -97
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.html +50 -118
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.js +754 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_chm.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_default.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_doc.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_exe.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_jpg.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_mp3.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_mv.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_pdf.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_ppt.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_psd.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_rar.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_txt.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_xls.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/alignicon.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/alignicon.png +0 -0
- data/vendor/assets/javascripts/ueditor/{lang/zh-cn/images/imglabel.png → dialogs/attachment/images/bg.png} +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/file-icons.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/file-icons.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/icons.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/icons.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/image.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/progress.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/success.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/success.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/background/background.css +70 -1
- data/vendor/assets/javascripts/ueditor/dialogs/background/background.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/background/background.js +205 -80
- data/vendor/assets/javascripts/ueditor/dialogs/background/images/bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/background/images/success.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/chart.config.js +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/charts.css +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/charts.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/charts.js +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts0.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts1.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts2.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts3.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts4.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts5.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.css +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.js +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/0.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/bface.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/cface.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/fface.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/jxface2.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/neweditor-tab-bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/tface.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/wface.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/yface.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/gmap/gmap.html +3 -3
- data/vendor/assets/javascripts/ueditor/dialogs/help/help.css +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/help/help.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/help/help.js +1 -1
- data/vendor/assets/javascripts/ueditor/dialogs/image/image.css +880 -55
- data/vendor/assets/javascripts/ueditor/dialogs/image/image.html +101 -239
- data/vendor/assets/javascripts/ueditor/dialogs/image/image.js +1054 -625
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/alignicon.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/icons.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/icons.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/image.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/progress.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/success.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/success.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/insertframe/insertframe.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/internal.js +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/link/link.html +2 -2
- data/vendor/assets/javascripts/ueditor/dialogs/map/map.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/map/show.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/music/music.css +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/music/music.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/music/music.js +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/preview/preview.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/addimg.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/brush.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/delimg.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/delimgH.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/empty.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/emptyH.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/eraser.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/redo.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/redoH.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/scale.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/scaleH.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/size.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/undo.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/undoH.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/scrawl.css +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/scrawl.html +1 -1
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/scrawl.js +29 -13
- data/vendor/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.js +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/snapscreen/snapscreen.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/spechars/spechars.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/spechars/spechars.js +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/dragicon.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.css +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.js +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittd.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittip.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/config.js +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/images/bg.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre0.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre1.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre2.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre3.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre4.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/template.css +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/template.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/template.js +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/center_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/file-icons.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/file-icons.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/icons.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/icons.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/image.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/left_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/none_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/progress.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/right_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/success.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/success.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/video.css +555 -70
- data/vendor/assets/javascripts/ueditor/dialogs/video/video.html +29 -38
- data/vendor/assets/javascripts/ueditor/dialogs/video/video.js +521 -201
- data/vendor/assets/javascripts/ueditor/dialogs/webapp/webapp.html +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/wordimage/fClipboard_ueditor.swf +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/wordimage/imageUploader.swf +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/{tangram.js → wordimage/tangram.js} +1495 -1495
- data/vendor/assets/javascripts/ueditor/dialogs/wordimage/wordimage.html +22 -15
- data/vendor/assets/javascripts/ueditor/dialogs/wordimage/wordimage.js +4 -5
- data/vendor/assets/javascripts/ueditor/index.html +13 -13
- data/vendor/assets/javascripts/ueditor/lang/en/en.js +233 -187
- data/vendor/assets/javascripts/ueditor/lang/en/images/addimage.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/alldeletebtnhoverskin.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/alldeletebtnupskin.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/background.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/button.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/copy.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/deletedisable.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/deleteenable.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/listbackground.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/localimage.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/music.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/rotateleftdisable.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/rotateleftenable.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/rotaterightdisable.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/rotaterightenable.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/upload.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/copy.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/localimage.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/music.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/upload.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/zh-cn/zh-cn.js +248 -184
- data/vendor/assets/javascripts/ueditor/themes/default/css/ueditor.css +118 -38
- data/vendor/assets/javascripts/ueditor/themes/default/css/ueditor.min.css +8 -8
- data/vendor/assets/javascripts/ueditor/themes/default/dialogbase.css +1 -1
- data/vendor/assets/javascripts/ueditor/themes/default/images/anchor.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/arrow.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/arrow_down.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/arrow_up.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/button-bg.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/cancelbutton.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/charts.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_h.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_h.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_v.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_v.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/dialog-title-bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/filescan.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/highlighted.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/icons-all.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/icons.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/icons.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/loaderror.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/loading.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/lock.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/neweditor-tab-bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/pagebreak.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/scale.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/sortable.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/spacer.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/sparator_v.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/table-cell-align.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/tangram-colorpicker.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/toolbar_bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/unhighlighted.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/upload.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/videologo.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/word.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/wordpaste.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/iframe.css +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/SyntaxHighlighter/shCore.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/codemirror/codemirror.css +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/codemirror/codemirror.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/adapters/mootools-adapter.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/adapters/mootools-adapter.src.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/adapters/prototype-adapter.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/adapters/prototype-adapter.src.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/adapters/standalone-framework.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/adapters/standalone-framework.src.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/highcharts-more.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/highcharts-more.src.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/highcharts.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/highcharts.src.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/annotations.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/annotations.src.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/canvas-tools.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/canvas-tools.src.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/data.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/data.src.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/drilldown.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/drilldown.src.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/exporting.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/exporting.src.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/funnel.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/funnel.src.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/heatmap.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/heatmap.src.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/map.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/map.src.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/no-data-to-display.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/modules/no-data-to-display.src.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/themes/dark-blue.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/themes/dark-green.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/themes/gray.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/themes/grid.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/highcharts/themes/skies.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/jquery-1.10.2.js +9789 -0
- data/vendor/assets/javascripts/ueditor/third-party/jquery-1.10.2.min.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/jquery-1.10.2.min.map +1 -0
- data/vendor/assets/javascripts/ueditor/third-party/snapscreen/UEditorSnapscreen.exe +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/video-js/font/vjs.eot +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/video-js/font/vjs.svg +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/video-js/font/vjs.ttf +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/video-js/font/vjs.woff +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/video-js/video-js.css +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/video-js/video-js.min.css +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/video-js/video-js.swf +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/video-js/video.dev.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/video-js/video.js +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/webuploader/Uploader.swf +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.css +28 -0
- data/vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.custom.js +5670 -0
- data/vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.custom.min.js +2 -0
- data/vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.flashonly.js +4176 -0
- data/vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.flashonly.min.js +2 -0
- data/vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.html5only.js +5559 -0
- data/vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.html5only.min.js +2 -0
- data/vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.js +6733 -0
- data/vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.min.js +2 -0
- data/vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.withoutimage.js +4593 -0
- data/vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.withoutimage.min.js +2 -0
- data/vendor/assets/javascripts/ueditor/third-party/xss.min.js +1 -0
- data/vendor/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.js +1256 -0
- data/vendor/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.min.js +9 -0
- data/vendor/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.swf +0 -0
- data/vendor/assets/javascripts/ueditor/ueditor.all.js +4719 -2686
- data/vendor/assets/javascripts/ueditor/ueditor.all.min.js +18 -664
- data/vendor/assets/javascripts/ueditor/ueditor.config.js +497 -452
- data/vendor/assets/javascripts/ueditor/ueditor.parse.js +45 -38
- data/vendor/assets/javascripts/ueditor/ueditor.parse.min.js +7 -28
- metadata +56 -22
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/callbacks.js +0 -166
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeMaps.js +0 -29
- data/vendor/assets/javascripts/ueditor/dialogs/image/imageUploader.swf +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/center_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/left_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/none_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/right_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/callbacks.js +0 -166
- data/vendor/assets/javascripts/ueditor/lang/en/images/imglabel.png +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/fileprogress.js +0 -215
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.cookies.js +0 -53
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.js +0 -1132
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.proxy.js +0 -96
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.queue.js +0 -98
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.speed.js +0 -346
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.swf +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload_fp9.swf +0 -0
@@ -1,11 +1,11 @@
|
|
1
|
-
/*!
|
2
|
-
* UEditor
|
3
|
-
* version:
|
4
|
-
* build:
|
5
|
-
*/
|
6
|
-
|
7
|
-
(function(){
|
8
|
-
|
1
|
+
/*!
|
2
|
+
* UEditor
|
3
|
+
* version: ueditor
|
4
|
+
* build: Thu Jun 16 2016 12:33:51 GMT+0800 (CST)
|
5
|
+
*/
|
6
|
+
|
7
|
+
(function(){
|
8
|
+
|
9
9
|
(function(){
|
10
10
|
UE = window.UE || {};
|
11
11
|
var isIE = !!window.ActiveXObject;
|
@@ -333,7 +333,7 @@
|
|
333
333
|
})
|
334
334
|
}
|
335
335
|
})();
|
336
|
-
|
336
|
+
|
337
337
|
UE.parse.register('insertcode',function(utils){
|
338
338
|
var pres = this.root.getElementsByTagName('pre');
|
339
339
|
if(pres.length){
|
@@ -366,10 +366,16 @@ UE.parse.register('insertcode',function(utils){
|
|
366
366
|
}
|
367
367
|
});
|
368
368
|
});
|
369
|
+
}else{
|
370
|
+
utils.each(pres,function(pi){
|
371
|
+
if(pi && /brush/i.test(pi.className)){
|
372
|
+
SyntaxHighlighter.highlight(pi);
|
373
|
+
}
|
374
|
+
});
|
369
375
|
}
|
370
376
|
}
|
371
377
|
|
372
|
-
});
|
378
|
+
});
|
373
379
|
UE.parse.register('table', function (utils) {
|
374
380
|
var me = this,
|
375
381
|
root = this.root,
|
@@ -530,11 +536,7 @@ UE.parse.register('table', function (utils) {
|
|
530
536
|
}
|
531
537
|
}
|
532
538
|
}
|
533
|
-
});
|
534
|
-
/*
|
535
|
-
* 图表parse插件
|
536
|
-
*/
|
537
|
-
|
539
|
+
});
|
538
540
|
UE.parse.register('charts',function( utils ){
|
539
541
|
|
540
542
|
utils.cssRule('chartsContainerHeight','.edui-chart-container { height:'+(this.chartContainerHeight||300)+'px}');
|
@@ -719,7 +721,7 @@ UE.parse.register('charts',function( utils ){
|
|
719
721
|
|
720
722
|
}
|
721
723
|
|
722
|
-
|
724
|
+
/**
|
723
725
|
* 渲染图表
|
724
726
|
* @param container 图表容器节点对象
|
725
727
|
* @param typeConfig 图表类型配置
|
@@ -776,7 +778,7 @@ UE.parse.register('charts',function( utils ){
|
|
776
778
|
|
777
779
|
}
|
778
780
|
|
779
|
-
|
781
|
+
/**
|
780
782
|
* 创建图表的容器
|
781
783
|
* 新创建的容器会替换掉对应的table对象
|
782
784
|
* */
|
@@ -871,7 +873,7 @@ UE.parse.register('charts',function( utils ){
|
|
871
873
|
|
872
874
|
}
|
873
875
|
|
874
|
-
});
|
876
|
+
});
|
875
877
|
UE.parse.register('background', function (utils) {
|
876
878
|
var me = this,
|
877
879
|
root = me.root,
|
@@ -887,7 +889,7 @@ UE.parse.register('background', function (utils) {
|
|
887
889
|
|
888
890
|
//追加默认的表格样式
|
889
891
|
styles && utils.cssRule('ueditor_background', me.selector + '{' + styles + '}', document);
|
890
|
-
});
|
892
|
+
});
|
891
893
|
UE.parse.register('list',function(utils){
|
892
894
|
var customCss = [],
|
893
895
|
customStyle = {
|
@@ -981,7 +983,7 @@ UE.parse.register('list',function(utils){
|
|
981
983
|
}
|
982
984
|
|
983
985
|
|
984
|
-
});
|
986
|
+
});
|
985
987
|
UE.parse.register('vedio',function(utils){
|
986
988
|
var video = this.root.getElementsByTagName('video'),
|
987
989
|
audio = this.root.getElementsByTagName('audio');
|
@@ -993,23 +995,28 @@ UE.parse.register('vedio',function(utils){
|
|
993
995
|
cssurl = sourcePath + '/third-party/video-js/video-js.min.css',
|
994
996
|
swfUrl = sourcePath + '/third-party/video-js/video-js.swf';
|
995
997
|
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
998
|
+
if(window.videojs) {
|
999
|
+
videojs.autoSetup();
|
1000
|
+
} else {
|
1001
|
+
utils.loadFile(document,{
|
1002
|
+
id : "video_css",
|
1003
|
+
tag : "link",
|
1004
|
+
rel : "stylesheet",
|
1005
|
+
type : "text/css",
|
1006
|
+
href : cssurl
|
1007
|
+
});
|
1008
|
+
utils.loadFile(document,{
|
1009
|
+
id : "video_js",
|
1010
|
+
src : jsurl,
|
1011
|
+
tag : "script",
|
1012
|
+
type : "text/javascript"
|
1013
|
+
},function(){
|
1014
|
+
videojs.options.flash.swf = swfUrl;
|
1015
|
+
videojs.autoSetup();
|
1016
|
+
});
|
1017
|
+
}
|
1011
1018
|
|
1012
1019
|
}
|
1013
|
-
});
|
1014
|
-
|
1015
|
-
})()
|
1020
|
+
});
|
1021
|
+
|
1022
|
+
})();
|
@@ -1,28 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
b&&d._d.els.splice(b,1),0==d._d.els.length&&delete d._d[k])}},loadFile:function(){function a(a,c){try{for(var e=0,k;k=b[e++];)if(k.doc===a&&k.url==(c.src||c.href))return k}catch(n){return null}}var b=[];return function(d,c,e){var k=a(d,c);if(k)k.ready?e&&e():k.funs.push(e);else if(b.push({doc:d,url:c.src||c.href,funs:[e]}),!d.body){e=[];for(var n in c)"tag"!=n&&e.push(n+'="'+c[n]+'"');d.write("<"+c.tag+" "+e.join(" ")+" ></"+c.tag+">")}else if(!c.id||!d.getElementById(c.id)){var l=d.createElement(c.tag);
|
8
|
-
delete c.tag;for(n in c)l.setAttribute(n,c[n]);l.onload=l.onreadystatechange=function(){if(!this.readyState||/loaded|complete/.test(this.readyState)){k=a(d,c);if(0<k.funs.length){k.ready=1;for(var b;b=k.funs.pop();)b()}l.onload=l.onreadystatechange=null}};l.onerror=function(){throw Error("The load "+(c.href||c.src)+" fails,check the url");};d.getElementsByTagName("head")[0].appendChild(l)}}}()};h.each("String Function Array Number RegExp Object Boolean".split(" "),function(a){h["is"+a]=function(b){return Object.prototype.toString.apply(b)==
|
9
|
-
"[object "+a+"]"}});var g={};UE.parse={register:function(a,b){g[a]=b},load:function(a){h.each(g,function(b){b.call(a,h)})}};uParse=function(a,b){h.domReady(function(){var d;document.querySelectorAll?d=document.querySelectorAll(a):/^#/.test(a)?d=[document.getElementById(a.replace(/^#/,""))]:/^\./.test(a)?(d=[],h.each(document.getElementsByTagName("*"),function(c){c.className&&RegExp("\\b"+a.replace(/^\./,"")+"\\b","i").test(c.className)&&d.push(c)})):d=document.getElementsByTagName(a);h.each(d,function(c){UE.parse.load(h.extend({root:c,
|
10
|
-
selector:a},b))})})}})();UE.parse.register("insertcode",function(f){var h=this.root.getElementsByTagName("pre");if(h.length&&"undefined"==typeof XRegExp){var g,a;void 0!==this.rootPath?(g=f.removeLastbs(this.rootPath)+"/third-party/SyntaxHighlighter/shCore.js",a=f.removeLastbs(this.rootPath)+"/third-party/SyntaxHighlighter/shCoreDefault.css"):(g=this.highlightJsUrl,a=this.highlightCssUrl);f.loadFile(document,{id:"syntaxhighlighter_css",tag:"link",rel:"stylesheet",type:"text/css",href:a});f.loadFile(document,
|
11
|
-
{id:"syntaxhighlighter_js",src:g,tag:"script",type:"text/javascript",defer:"defer"},function(){f.each(h,function(a){a&&/brush/i.test(a.className)&&SyntaxHighlighter.highlight(a)})})}});UE.parse.register("table",function(f){var h=this,g=this.root,a=g.getElementsByTagName("table");if(a.length){a=this.selector;f.cssRule("table",a+" table.noBorderTable td,"+a+" table.noBorderTable th,"+a+" table.noBorderTable caption{border:1px dashed #ddd !important}"+a+" table.sortEnabled tr.firstRow th,"+a+" table.sortEnabled tr.firstRow td{padding-right:20px; background-repeat: no-repeat;background-position: center right; background-image:url("+
|
12
|
-
this.rootPath+"themes/default/images/sortable.png);}"+a+" table.sortEnabled tr.firstRow th:hover,"+a+" table.sortEnabled tr.firstRow td:hover{background-color: #EEE;}"+a+" table{margin-bottom:10px;border-collapse:collapse;display:table;}"+a+" td,"+a+" th{ background:white; padding: 5px 10px;border: 1px solid #DDD;}"+a+" caption{border:1px dashed #DDD;border-bottom:0;padding:3px;text-align:center;}"+a+" th{border-top:1px solid #BBB;background:#F7F7F7;}"+a+" table tr.firstRow th{border-top:2px solid #BBB;background:#F7F7F7;}"+
|
13
|
-
a+" tr.ue-table-interlace-color-single td{ background: #fcfcfc; }"+a+" tr.ue-table-interlace-color-double td{ background: #f7faff; }"+a+" td p{margin:0;padding:0;}",document);f.each(["td","th","caption"],function(a){a=g.getElementsByTagName(a);a.length&&f.each(a,function(a){a.firstChild||(a.innerHTML=" ")})});a=g.getElementsByTagName("table");f.each(a,function(a){if(/\bsortEnabled\b/.test(a.className))f.on(a,"click",function(a){a=a.target||a.srcElement;var c=b(a,["td","th"]);a=b(a,"table");var c=
|
14
|
-
f.indexOf(a.rows[0].cells,c),l=a.getAttribute("data-sort-type");if(-1!=c&&(d(a,c,h.tableSortCompareFn||l),!f.hasClass(a.rows[0],"firstRow"))){for(c=1;c<a.rows.length;c++)f.removeClass(a.rows[c],"firstRow");f.addClass(a.rows[0],"firstRow")}})});var b=function(a,c){var d,b=a;for(c=f.isArray(c)?c:[c];b;){for(d=0;d<c.length;d++)if(b.tagName==c[d].toUpperCase())return b;b=b.parentNode}return null},d=function(a,d,b){for(var l=a.rows,q=[],g="TH"===l[0].cells[0].tagName,h=0,s=l.length;h<s;h++)q[h]=l[h];var r=
|
15
|
-
{reversecurrent:function(a,c){return 1},orderbyasc:function(a,c){return(a.innerText||a.textContent).localeCompare(c.innerText||c.textContent)},reversebyasc:function(a,c){return c.innerHTML.localeCompare(a.innerHTML)},orderbynum:function(a,c){var b=a[f.isIE?"innerText":"textContent"].match(/\d+/),d=c[f.isIE?"innerText":"textContent"].match(/\d+/);b&&(b=+b[0]);d&&(d=+d[0]);return(b||0)-(d||0)},reversebynum:function(a,c){var b=a[f.isIE?"innerText":"textContent"].match(/\d+/),d=c[f.isIE?"innerText":"textContent"].match(/\d+/);
|
16
|
-
b&&(b=+b[0]);d&&(d=+d[0]);return(d||0)-(b||0)}};a.setAttribute("data-sort-type",b&&"string"===typeof b&&r[b]?b:"");g&&q.splice(0,1);q=c(q,function(a,c){return b&&"function"===typeof b?b.call(this,a.cells[d],c.cells[d]):b&&"number"===typeof b?1:b&&"string"===typeof b&&r[b]?r[b].call(this,a.cells[d],c.cells[d]):r.orderbyasc.call(this,a.cells[d],c.cells[d])});l=a.ownerDocument.createDocumentFragment();g=0;for(s=q.length;g<s;g++)l.appendChild(q[g]);a.getElementsByTagName("tbody")[0].appendChild(l)},c=
|
17
|
-
function(a,c){c=c||function(a,c){return a.localeCompare(c)};for(var b=0,d=a.length;b<d;b++)for(var f=b,g=a.length;f<g;f++)if(0<c(a[b],a[f])){var h=a[b];a[b]=a[f];a[f]=h}return a}}});UE.parse.register("charts",function(f){function h(a){var c=[];a=a.getElementsByTagName("table");for(var b=0,d;d=a[b];b++)null!==d.getAttribute("data-chart")&&c.push(g(d));return c.length?c:null}function g(a){for(var c=a.getAttribute("data-chart"),b={},d=[],f=0,e;e=a.rows[f];f++){for(var g=[],h=0,k;k=e.cells[h];h++){var m=
|
18
|
-
k.innerText||k.textContent||"";g.push("TH"==k.tagName?m:m|0)}d.push(g)}c=c.split(";");for(f=0;e=c[f];f++)e=e.split(":"),b[e[0]]=e[1];return{table:a,meta:b,data:d}}function a(){window.jQuery?b():f.loadFile(document,{src:c+"/third-party/jquery-1.10.2.min.js",tag:"script",type:"text/javascript",defer:"defer"},function(){b()})}function b(){window.Highcharts?d():f.loadFile(document,{src:c+"/third-party/highcharts/highcharts.js",tag:"script",type:"text/javascript",defer:"defer"},function(){d()})}function d(){f.loadFile(document,
|
19
|
-
{src:c+"/dialogs/charts/chart.config.js",tag:"script",type:"text/javascript",defer:"defer"},function(){for(var a=null,c=null,b=null,d=0,f=k.length;d<f;d++){var a=k[d],c=[],e=[],b=[],g=a.data,h=a.meta;if("1"!=h.dataFormat){for(var p=0,e=g.length;p<e;p++)for(var m=0,t=g[p].length;m<t;m++)b[m]||(b[m]=[]),b[m][p]=g[p][m];g=b}b={};if(h.chartType!=typeConfig.length-1){e=g[0].slice(1);p=1;for(m=void 0;m=g[p];p++)c.push({name:m[0],data:m.slice(1)});b.series=c;b.categories=e;b.title=h.title;b.subTitle=h.subTitle;
|
20
|
-
b.xTitle=h.xTitle;b.yTitle=h.yTitle}else{m=[];p=1;for(e=g[0].length;p<e;p++)m.push([g[0][p],g[1][p]|0]);c[0]={type:"pie",name:h.tip,data:m};b.series=c;b.title=h.title}b.suffix=h.suffix;c=b;b=a.table;g=document.createElement("div");g.className="edui-chart-container";b.parentNode.replaceChild(g,b);b=g;a=typeConfig[a.meta.chartType];$(b).highcharts($.extend({},a,{credits:{enabled:!1},exporting:{enabled:!1},title:{text:c.title,x:-20},subtitle:{text:c.subTitle,x:-20},xAxis:{title:{text:c.xTitle},categories:c.categories},
|
21
|
-
yAxis:{title:{text:c.yTitle},plotLines:[{value:0,width:1,color:"#808080"}]},tooltip:{enabled:!0,valueSuffix:c.suffix},legend:{layout:"vertical",align:"right",verticalAlign:"middle",borderWidth:1},series:c.series}))}})}f.cssRule("chartsContainerHeight",".edui-chart-container { height:"+(this.chartContainerHeight||300)+"px}");var c=this.rootPath,e=this.root,k=null;c&&(e=e?h(e):null,(k=e)&&a())});UE.parse.register("background",function(f){for(var h=this.root.getElementsByTagName("p"),g,a=0,b;b=h[a++];)(g=
|
22
|
-
b.getAttribute("data-background"))&&b.parentNode.removeChild(b);g&&f.cssRule("ueditor_background",this.selector+"{"+g+"}",document)});UE.parse.register("list",function(f){function h(b){var d=this;f.each(b,function(b){if(b.className&&/custom_/i.test(b.className)){var e=b.className.match(/custom_(\w+)/)[1];if("dash"==e||"dot"==e)f.pushItem(g,c+" li.list-"+a[e]+"{background-image:url("+d.liiconpath+a[e]+".gif)}"),f.pushItem(g,c+" ul.custom_"+e+"{list-style:none;} "+c+" ul.custom_"+e+" li{background-position:0 3px;background-repeat:no-repeat}");
|
23
|
-
else{var h=1;f.each(b.childNodes,function(b){"LI"==b.tagName&&(f.pushItem(g,c+" li.list-"+a[e]+h+"{background-image:url("+d.liiconpath+"list-"+a[e]+h+".gif)}"),h++)});f.pushItem(g,c+" ol.custom_"+e+"{list-style:none;}"+c+" ol.custom_"+e+" li{background-position:0 3px;background-repeat:no-repeat}")}switch(e){case "cn":f.pushItem(g,c+" li.list-"+e+"-paddingleft-1{padding-left:25px}");f.pushItem(g,c+" li.list-"+e+"-paddingleft-2{padding-left:40px}");f.pushItem(g,c+" li.list-"+e+"-paddingleft-3{padding-left:55px}");
|
24
|
-
break;case "cn1":f.pushItem(g,c+" li.list-"+e+"-paddingleft-1{padding-left:30px}");f.pushItem(g,c+" li.list-"+e+"-paddingleft-2{padding-left:40px}");f.pushItem(g,c+" li.list-"+e+"-paddingleft-3{padding-left:55px}");break;case "cn2":f.pushItem(g,c+" li.list-"+e+"-paddingleft-1{padding-left:40px}");f.pushItem(g,c+" li.list-"+e+"-paddingleft-2{padding-left:55px}");f.pushItem(g,c+" li.list-"+e+"-paddingleft-3{padding-left:68px}");break;case "num":case "num1":f.pushItem(g,c+" li.list-"+e+"-paddingleft-1{padding-left:25px}");
|
25
|
-
break;case "num2":f.pushItem(g,c+" li.list-"+e+"-paddingleft-1{padding-left:35px}");f.pushItem(g,c+" li.list-"+e+"-paddingleft-2{padding-left:40px}");break;case "dash":f.pushItem(g,c+" li.list-"+e+"-paddingleft{padding-left:35px}");break;case "dot":f.pushItem(g,c+" li.list-"+e+"-paddingleft{padding-left:20px}")}}})}var g=[],a={cn:"cn-1-",cn1:"cn-2-",cn2:"cn-3-",num:"num-1-",num1:"num-2-",num2:"num-3-",dash:"dash",dot:"dot"};f.extend(this,{liiconpath:"http://bs.baidu.com/listicon/",listDefaultPaddingLeft:"20"});
|
26
|
-
var b=this.root,d=b.getElementsByTagName("ol"),b=b.getElementsByTagName("ul"),c=this.selector;d.length&&h.call(this,d);b.length&&h.call(this,b);if(d.length||b.length)g.push(c+" .list-paddingleft-1{padding-left:0}"),g.push(c+" .list-paddingleft-2{padding-left:"+this.listDefaultPaddingLeft+"px}"),g.push(c+" .list-paddingleft-3{padding-left:"+2*this.listDefaultPaddingLeft+"px}"),f.cssRule("list",c+" ol,"+c+" ul{margin:0;padding:0;}li{clear:both;}"+g.join("\n"),document)});UE.parse.register("vedio",function(f){var h=
|
27
|
-
this.root.getElementsByTagName("video"),g=this.root.getElementsByTagName("audio");document.createElement("video");document.createElement("audio");if(h.length||g.length){var h=f.removeLastbs(this.rootPath),g=h+"/third-party/video-js/video.js",a=h+"/third-party/video-js/video-js.swf";f.loadFile(document,{id:"video_css",tag:"link",rel:"stylesheet",type:"text/css",href:h+"/third-party/video-js/video-js.min.css"});f.loadFile(document,{id:"video_js",src:g,tag:"script",type:"text/javascript"},function(){videojs.options.flash.swf=
|
28
|
-
a})}})})();
|
1
|
+
/*!
|
2
|
+
* UEditor
|
3
|
+
* version: ueditor
|
4
|
+
* build: Thu Jun 16 2016 12:33:53 GMT+0800 (CST)
|
5
|
+
*/
|
6
|
+
|
7
|
+
!function(){!function(){UE=window.UE||{};var a=!!window.ActiveXObject,b={removeLastbs:function(a){return a.replace(/\/$/,"")},extend:function(a,b){for(var c=arguments,d=this.isBoolean(c[c.length-1])?c[c.length-1]:!1,e=this.isBoolean(c[c.length-1])?c.length-1:c.length,f=1;e>f;f++){var g=c[f];for(var h in g)d&&a.hasOwnProperty(h)||(a[h]=g[h])}return a},isIE:a,cssRule:a?function(a,b,c){var d,e;c=c||document,d=c.indexList?c.indexList:c.indexList={};var f;if(d[a])f=c.styleSheets[d[a]];else{if(void 0===b)return"";f=c.createStyleSheet("",e=c.styleSheets.length),d[a]=e}return void 0===b?f.cssText:void(f.cssText=f.cssText+"\n"+(b||""))}:function(a,b,c){c=c||document;var d,e=c.getElementsByTagName("head")[0];if(!(d=c.getElementById(a))){if(void 0===b)return"";d=c.createElement("style"),d.id=a,e.appendChild(d)}return void 0===b?d.innerHTML:void(""!==b?d.innerHTML=d.innerHTML+"\n"+b:e.removeChild(d))},domReady:function(b){var c=window.document;"complete"===c.readyState?b():a?(!function(){if(!c.isReady){try{c.documentElement.doScroll("left")}catch(a){return void setTimeout(arguments.callee,0)}b()}}(),window.attachEvent("onload",function(){b()})):(c.addEventListener("DOMContentLoaded",function(){c.removeEventListener("DOMContentLoaded",arguments.callee,!1),b()},!1),window.addEventListener("load",function(){b()},!1))},each:function(a,b,c){if(null!=a)if(a.length===+a.length){for(var d=0,e=a.length;e>d;d++)if(b.call(c,a[d],d,a)===!1)return!1}else for(var f in a)if(a.hasOwnProperty(f)&&b.call(c,a[f],f,a)===!1)return!1},inArray:function(a,b){var c=-1;return this.each(a,function(a,d){return a===b?(c=d,!1):void 0}),c},pushItem:function(a,b){-1==this.inArray(a,b)&&a.push(b)},trim:function(a){return a.replace(/(^[ \t\n\r]+)|([ \t\n\r]+$)/g,"")},indexOf:function(a,b,c){var d=-1;return c=this.isNumber(c)?c:0,this.each(a,function(a,e){return e>=c&&a===b?(d=e,!1):void 0}),d},hasClass:function(a,b){b=b.replace(/(^[ ]+)|([ ]+$)/g,"").replace(/[ ]{2,}/g," ").split(" ");for(var c,d=0,e=a.className;c=b[d++];)if(!new RegExp("\\b"+c+"\\b","i").test(e))return!1;return d-1==b.length},addClass:function(a,c){if(a){c=this.trim(c).replace(/[ ]{2,}/g," ").split(" ");for(var d,e=0,f=a.className;d=c[e++];)new RegExp("\\b"+d+"\\b").test(f)||(f+=" "+d);a.className=b.trim(f)}},removeClass:function(a,b){b=this.isArray(b)?b:this.trim(b).replace(/[ ]{2,}/g," ").split(" ");for(var c,d=0,e=a.className;c=b[d++];)e=e.replace(new RegExp("\\b"+c+"\\b"),"");e=this.trim(e).replace(/[ ]{2,}/g," "),a.className=e,!e&&a.removeAttribute("className")},on:function(a,c,d){var e=this.isArray(c)?c:c.split(/\s+/),f=e.length;if(f)for(;f--;)if(c=e[f],a.addEventListener)a.addEventListener(c,d,!1);else{d._d||(d._d={els:[]});var g=c+d.toString(),h=b.indexOf(d._d.els,a);d._d[g]&&-1!=h||(-1==h&&d._d.els.push(a),d._d[g]||(d._d[g]=function(a){return d.call(a.srcElement,a||window.event)}),a.attachEvent("on"+c,d._d[g]))}a=null},off:function(a,c,d){var e=this.isArray(c)?c:c.split(/\s+/),f=e.length;if(f)for(;f--;)if(c=e[f],a.removeEventListener)a.removeEventListener(c,d,!1);else{var g=c+d.toString();try{a.detachEvent("on"+c,d._d?d._d[g]:d)}catch(h){}if(d._d&&d._d[g]){var i=b.indexOf(d._d.els,a);-1!=i&&d._d.els.splice(i,1),0==d._d.els.length&&delete d._d[g]}}},loadFile:function(){function a(a,c){try{for(var d,e=0;d=b[e++];)if(d.doc===a&&d.url==(c.src||c.href))return d}catch(f){return null}}var b=[];return function(c,d,e){var f=a(c,d);if(f)return void(f.ready?e&&e():f.funs.push(e));if(b.push({doc:c,url:d.src||d.href,funs:[e]}),!c.body){var g=[];for(var h in d)"tag"!=h&&g.push(h+'="'+d[h]+'"');return void c.write("<"+d.tag+" "+g.join(" ")+" ></"+d.tag+">")}if(!d.id||!c.getElementById(d.id)){var i=c.createElement(d.tag);delete d.tag;for(var h in d)i.setAttribute(h,d[h]);i.onload=i.onreadystatechange=function(){if(!this.readyState||/loaded|complete/.test(this.readyState)){if(f=a(c,d),f.funs.length>0){f.ready=1;for(var b;b=f.funs.pop();)b()}i.onload=i.onreadystatechange=null}},i.onerror=function(){throw Error("The load "+(d.href||d.src)+" fails,check the url")},c.getElementsByTagName("head")[0].appendChild(i)}}}()};b.each(["String","Function","Array","Number","RegExp","Object","Boolean"],function(a){b["is"+a]=function(b){return Object.prototype.toString.apply(b)=="[object "+a+"]"}});var c={};UE.parse={register:function(a,b){c[a]=b},load:function(a){b.each(c,function(c){c.call(a,b)})}},uParse=function(a,c){b.domReady(function(){var d;if(document.querySelectorAll)d=document.querySelectorAll(a);else if(/^#/.test(a))d=[document.getElementById(a.replace(/^#/,""))];else if(/^\./.test(a)){var d=[];b.each(document.getElementsByTagName("*"),function(b){b.className&&new RegExp("\\b"+a.replace(/^\./,"")+"\\b","i").test(b.className)&&d.push(b)})}else d=document.getElementsByTagName(a);b.each(d,function(d){UE.parse.load(b.extend({root:d,selector:a},c))})})}}(),UE.parse.register("insertcode",function(a){var b=this.root.getElementsByTagName("pre");if(b.length)if("undefined"==typeof XRegExp){var c,d;void 0!==this.rootPath?(c=a.removeLastbs(this.rootPath)+"/third-party/SyntaxHighlighter/shCore.js",d=a.removeLastbs(this.rootPath)+"/third-party/SyntaxHighlighter/shCoreDefault.css"):(c=this.highlightJsUrl,d=this.highlightCssUrl),a.loadFile(document,{id:"syntaxhighlighter_css",tag:"link",rel:"stylesheet",type:"text/css",href:d}),a.loadFile(document,{id:"syntaxhighlighter_js",src:c,tag:"script",type:"text/javascript",defer:"defer"},function(){a.each(b,function(a){a&&/brush/i.test(a.className)&&SyntaxHighlighter.highlight(a)})})}else a.each(b,function(a){a&&/brush/i.test(a.className)&&SyntaxHighlighter.highlight(a)})}),UE.parse.register("table",function(a){function b(b,c){var d,e=b;for(c=a.isArray(c)?c:[c];e;){for(d=0;d<c.length;d++)if(e.tagName==c[d].toUpperCase())return e;e=e.parentNode}return null}function c(b,c,e){for(var f=b.rows,g=[],h="TH"===f[0].cells[0].tagName,i=0,j=0,k=f.length;k>j;j++)g[j]=f[j];var l={reversecurrent:function(a,b){return 1},orderbyasc:function(a,b){var c=a.innerText||a.textContent,d=b.innerText||b.textContent;return c.localeCompare(d)},reversebyasc:function(a,b){var c=a.innerHTML,d=b.innerHTML;return d.localeCompare(c)},orderbynum:function(b,c){var d=b[a.isIE?"innerText":"textContent"].match(/\d+/),e=c[a.isIE?"innerText":"textContent"].match(/\d+/);return d&&(d=+d[0]),e&&(e=+e[0]),(d||0)-(e||0)},reversebynum:function(b,c){var d=b[a.isIE?"innerText":"textContent"].match(/\d+/),e=c[a.isIE?"innerText":"textContent"].match(/\d+/);return d&&(d=+d[0]),e&&(e=+e[0]),(e||0)-(d||0)}};b.setAttribute("data-sort-type",e&&"string"==typeof e&&l[e]?e:""),h&&g.splice(0,1),g=d(g,function(a,b){var d;return d=e&&"function"==typeof e?e.call(this,a.cells[c],b.cells[c]):e&&"number"==typeof e?1:e&&"string"==typeof e&&l[e]?l[e].call(this,a.cells[c],b.cells[c]):l.orderbyasc.call(this,a.cells[c],b.cells[c])});for(var m=b.ownerDocument.createDocumentFragment(),n=0,k=g.length;k>n;n++)m.appendChild(g[n]);var o=b.getElementsByTagName("tbody")[0];i?o.insertBefore(m,f[i-range.endRowIndex+range.beginRowIndex-1]):o.appendChild(m)}function d(a,b){b=b||function(a,b){return a.localeCompare(b)};for(var c=0,d=a.length;d>c;c++)for(var e=c,f=a.length;f>e;e++)if(b(a[c],a[e])>0){var g=a[c];a[c]=a[e],a[e]=g}return a}function e(b){if(!a.hasClass(b.rows[0],"firstRow")){for(var c=1;c<b.rows.length;c++)a.removeClass(b.rows[c],"firstRow");a.addClass(b.rows[0],"firstRow")}}var f=this,g=this.root,h=g.getElementsByTagName("table");if(h.length){var i=this.selector;a.cssRule("table",i+" table.noBorderTable td,"+i+" table.noBorderTable th,"+i+" table.noBorderTable caption{border:1px dashed #ddd !important}"+i+" table.sortEnabled tr.firstRow th,"+i+" table.sortEnabled tr.firstRow td{padding-right:20px; background-repeat: no-repeat;background-position: center right; background-image:url("+this.rootPath+"themes/default/images/sortable.png);}"+i+" table.sortEnabled tr.firstRow th:hover,"+i+" table.sortEnabled tr.firstRow td:hover{background-color: #EEE;}"+i+" table{margin-bottom:10px;border-collapse:collapse;display:table;}"+i+" td,"+i+" th{ background:white; padding: 5px 10px;border: 1px solid #DDD;}"+i+" caption{border:1px dashed #DDD;border-bottom:0;padding:3px;text-align:center;}"+i+" th{border-top:1px solid #BBB;background:#F7F7F7;}"+i+" table tr.firstRow th{border-top:2px solid #BBB;background:#F7F7F7;}"+i+" tr.ue-table-interlace-color-single td{ background: #fcfcfc; }"+i+" tr.ue-table-interlace-color-double td{ background: #f7faff; }"+i+" td p{margin:0;padding:0;}",document),a.each("td th caption".split(" "),function(b){var c=g.getElementsByTagName(b);c.length&&a.each(c,function(a){a.firstChild||(a.innerHTML=" ")})});var h=g.getElementsByTagName("table");a.each(h,function(d){/\bsortEnabled\b/.test(d.className)&&a.on(d,"click",function(d){var g=d.target||d.srcElement,h=b(g,["td","th"]),i=b(g,"table"),j=a.indexOf(i.rows[0].cells,h),k=i.getAttribute("data-sort-type");-1!=j&&(c(i,j,f.tableSortCompareFn||k),e(i))})})}}),UE.parse.register("charts",function(a){function b(){return n?c(n):null}function c(a){for(var b,c=[],e=a.getElementsByTagName("table"),f=0;b=e[f];f++)null!==b.getAttribute("data-chart")&&c.push(d(b));return c.length?c:null}function d(a){for(var b,c=a.getAttribute("data-chart"),d={},e=[],f=0;b=a.rows[f];f++){for(var g,h=[],i=0;g=b.cells[i];i++){var j=g.innerText||g.textContent||"";h.push("TH"==g.tagName?j:0|j)}e.push(h)}c=c.split(";");for(var k,f=0;k=c[f];f++)k=k.split(":"),d[k[0]]=k[1];return{table:a,meta:d,data:e}}function e(){f()}function f(){window.jQuery?g():a.loadFile(document,{src:m+"/third-party/jquery-1.10.2.min.js",tag:"script",type:"text/javascript",defer:"defer"},function(){g()})}function g(){window.Highcharts?h():a.loadFile(document,{src:m+"/third-party/highcharts/highcharts.js",tag:"script",type:"text/javascript",defer:"defer"},function(){h()})}function h(){a.loadFile(document,{src:m+"/dialogs/charts/chart.config.js",tag:"script",type:"text/javascript",defer:"defer"},function(){i()})}function i(){for(var a=null,b=null,c=null,d=0,e=o.length;e>d;d++)a=o[d],b=l(a),c=k(a.table),j(c,typeConfig[a.meta.chartType],b)}function j(a,b,c){$(a).highcharts($.extend({},b,{credits:{enabled:!1},exporting:{enabled:!1},title:{text:c.title,x:-20},subtitle:{text:c.subTitle,x:-20},xAxis:{title:{text:c.xTitle},categories:c.categories},yAxis:{title:{text:c.yTitle},plotLines:[{value:0,width:1,color:"#808080"}]},tooltip:{enabled:!0,valueSuffix:c.suffix},legend:{layout:"vertical",align:"right",verticalAlign:"middle",borderWidth:1},series:c.series}))}function k(a){var b=document.createElement("div");return b.className="edui-chart-container",a.parentNode.replaceChild(b,a),b}function l(a){var b=[],c=[],d=[],e=a.data,f=a.meta;if("1"!=f.dataFormat){for(var g=0,h=e.length;h>g;g++)for(var i=0,j=e[g].length;j>i;i++)d[i]||(d[i]=[]),d[i][g]=e[g][i];e=d}if(d={},f.chartType!=typeConfig.length-1){c=e[0].slice(1);for(var k,g=1;k=e[g];g++)b.push({name:k[0],data:k.slice(1)});d.series=b,d.categories=c,d.title=f.title,d.subTitle=f.subTitle,d.xTitle=f.xTitle,d.yTitle=f.yTitle,d.suffix=f.suffix}else{for(var k=[],g=1,h=e[0].length;h>g;g++)k.push([e[0][g],0|e[1][g]]);b[0]={type:"pie",name:f.tip,data:k},d.series=b,d.title=f.title,d.suffix=f.suffix}return d}a.cssRule("chartsContainerHeight",".edui-chart-container { height:"+(this.chartContainerHeight||300)+"px}");var m=this.rootPath,n=this.root,o=null;m&&(o=b())&&e()}),UE.parse.register("background",function(a){for(var b,c,d=this,e=d.root,f=e.getElementsByTagName("p"),g=0;c=f[g++];)b=c.getAttribute("data-background"),b&&c.parentNode.removeChild(c);b&&a.cssRule("ueditor_background",d.selector+"{"+b+"}",document)}),UE.parse.register("list",function(a){function b(b){var e=this;a.each(b,function(b){if(b.className&&/custom_/i.test(b.className)){var f=b.className.match(/custom_(\w+)/)[1];if("dash"==f||"dot"==f)a.pushItem(c,h+" li.list-"+d[f]+"{background-image:url("+e.liiconpath+d[f]+".gif)}"),a.pushItem(c,h+" ul.custom_"+f+"{list-style:none;} "+h+" ul.custom_"+f+" li{background-position:0 3px;background-repeat:no-repeat}");else{var g=1;a.each(b.childNodes,function(b){"LI"==b.tagName&&(a.pushItem(c,h+" li.list-"+d[f]+g+"{background-image:url("+e.liiconpath+"list-"+d[f]+g+".gif)}"),g++)}),a.pushItem(c,h+" ol.custom_"+f+"{list-style:none;}"+h+" ol.custom_"+f+" li{background-position:0 3px;background-repeat:no-repeat}")}switch(f){case"cn":a.pushItem(c,h+" li.list-"+f+"-paddingleft-1{padding-left:25px}"),a.pushItem(c,h+" li.list-"+f+"-paddingleft-2{padding-left:40px}"),a.pushItem(c,h+" li.list-"+f+"-paddingleft-3{padding-left:55px}");break;case"cn1":a.pushItem(c,h+" li.list-"+f+"-paddingleft-1{padding-left:30px}"),a.pushItem(c,h+" li.list-"+f+"-paddingleft-2{padding-left:40px}"),a.pushItem(c,h+" li.list-"+f+"-paddingleft-3{padding-left:55px}");break;case"cn2":a.pushItem(c,h+" li.list-"+f+"-paddingleft-1{padding-left:40px}"),a.pushItem(c,h+" li.list-"+f+"-paddingleft-2{padding-left:55px}"),a.pushItem(c,h+" li.list-"+f+"-paddingleft-3{padding-left:68px}");break;case"num":case"num1":a.pushItem(c,h+" li.list-"+f+"-paddingleft-1{padding-left:25px}");break;case"num2":a.pushItem(c,h+" li.list-"+f+"-paddingleft-1{padding-left:35px}"),a.pushItem(c,h+" li.list-"+f+"-paddingleft-2{padding-left:40px}");break;case"dash":a.pushItem(c,h+" li.list-"+f+"-paddingleft{padding-left:35px}");break;case"dot":a.pushItem(c,h+" li.list-"+f+"-paddingleft{padding-left:20px}")}}})}var c=[],d={cn:"cn-1-",cn1:"cn-2-",cn2:"cn-3-",num:"num-1-",num1:"num-2-",num2:"num-3-",dash:"dash",dot:"dot"};a.extend(this,{liiconpath:"http://bs.baidu.com/listicon/",listDefaultPaddingLeft:"20"});var e=this.root,f=e.getElementsByTagName("ol"),g=e.getElementsByTagName("ul"),h=this.selector;f.length&&b.call(this,f),g.length&&b.call(this,g),(f.length||g.length)&&(c.push(h+" .list-paddingleft-1{padding-left:0}"),c.push(h+" .list-paddingleft-2{padding-left:"+this.listDefaultPaddingLeft+"px}"),c.push(h+" .list-paddingleft-3{padding-left:"+2*this.listDefaultPaddingLeft+"px}"),a.cssRule("list",h+" ol,"+h+" ul{margin:0;padding:0;}li{clear:both;}"+c.join("\n"),document))}),UE.parse.register("vedio",function(a){var b=this.root.getElementsByTagName("video"),c=this.root.getElementsByTagName("audio");if(document.createElement("video"),document.createElement("audio"),b.length||c.length){var d=a.removeLastbs(this.rootPath),e=d+"/third-party/video-js/video.js",f=d+"/third-party/video-js/video-js.min.css",g=d+"/third-party/video-js/video-js.swf";window.videojs?videojs.autoSetup():(a.loadFile(document,{id:"video_css",tag:"link",rel:"stylesheet",type:"text/css",href:f}),a.loadFile(document,{id:"video_js",src:e,tag:"script",type:"text/javascript"},function(){videojs.options.flash.swf=g,videojs.autoSetup()}))}})}();
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: baidu_ueditor_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chuanpin zhu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: ueditor for rails 3 and rails 4, it is a good wysiwyg html editor
|
14
14
|
email:
|
@@ -71,11 +71,12 @@ files:
|
|
71
71
|
- vendor/assets/javascripts/ueditor/dialogs/anchor/anchor.html
|
72
72
|
- vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.css
|
73
73
|
- vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.html
|
74
|
-
- vendor/assets/javascripts/ueditor/dialogs/attachment/
|
74
|
+
- vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.js
|
75
75
|
- vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_chm.gif
|
76
76
|
- vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_default.png
|
77
77
|
- vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_doc.gif
|
78
78
|
- vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_exe.gif
|
79
|
+
- vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_jpg.gif
|
79
80
|
- vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_mp3.gif
|
80
81
|
- vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_mv.gif
|
81
82
|
- vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_pdf.gif
|
@@ -84,10 +85,22 @@ files:
|
|
84
85
|
- vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_rar.gif
|
85
86
|
- vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_txt.gif
|
86
87
|
- vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_xls.gif
|
87
|
-
- vendor/assets/javascripts/ueditor/dialogs/attachment/
|
88
|
+
- vendor/assets/javascripts/ueditor/dialogs/attachment/images/alignicon.gif
|
89
|
+
- vendor/assets/javascripts/ueditor/dialogs/attachment/images/alignicon.png
|
90
|
+
- vendor/assets/javascripts/ueditor/dialogs/attachment/images/bg.png
|
91
|
+
- vendor/assets/javascripts/ueditor/dialogs/attachment/images/file-icons.gif
|
92
|
+
- vendor/assets/javascripts/ueditor/dialogs/attachment/images/file-icons.png
|
93
|
+
- vendor/assets/javascripts/ueditor/dialogs/attachment/images/icons.gif
|
94
|
+
- vendor/assets/javascripts/ueditor/dialogs/attachment/images/icons.png
|
95
|
+
- vendor/assets/javascripts/ueditor/dialogs/attachment/images/image.png
|
96
|
+
- vendor/assets/javascripts/ueditor/dialogs/attachment/images/progress.png
|
97
|
+
- vendor/assets/javascripts/ueditor/dialogs/attachment/images/success.gif
|
98
|
+
- vendor/assets/javascripts/ueditor/dialogs/attachment/images/success.png
|
88
99
|
- vendor/assets/javascripts/ueditor/dialogs/background/background.css
|
89
100
|
- vendor/assets/javascripts/ueditor/dialogs/background/background.html
|
90
101
|
- vendor/assets/javascripts/ueditor/dialogs/background/background.js
|
102
|
+
- vendor/assets/javascripts/ueditor/dialogs/background/images/bg.png
|
103
|
+
- vendor/assets/javascripts/ueditor/dialogs/background/images/success.png
|
91
104
|
- vendor/assets/javascripts/ueditor/dialogs/charts/chart.config.js
|
92
105
|
- vendor/assets/javascripts/ueditor/dialogs/charts/charts.css
|
93
106
|
- vendor/assets/javascripts/ueditor/dialogs/charts/charts.html
|
@@ -117,11 +130,14 @@ files:
|
|
117
130
|
- vendor/assets/javascripts/ueditor/dialogs/image/image.css
|
118
131
|
- vendor/assets/javascripts/ueditor/dialogs/image/image.html
|
119
132
|
- vendor/assets/javascripts/ueditor/dialogs/image/image.js
|
120
|
-
- vendor/assets/javascripts/ueditor/dialogs/image/
|
121
|
-
- vendor/assets/javascripts/ueditor/dialogs/image/images/
|
122
|
-
- vendor/assets/javascripts/ueditor/dialogs/image/images/
|
123
|
-
- vendor/assets/javascripts/ueditor/dialogs/image/images/
|
124
|
-
- vendor/assets/javascripts/ueditor/dialogs/image/images/
|
133
|
+
- vendor/assets/javascripts/ueditor/dialogs/image/images/alignicon.jpg
|
134
|
+
- vendor/assets/javascripts/ueditor/dialogs/image/images/bg.png
|
135
|
+
- vendor/assets/javascripts/ueditor/dialogs/image/images/icons.gif
|
136
|
+
- vendor/assets/javascripts/ueditor/dialogs/image/images/icons.png
|
137
|
+
- vendor/assets/javascripts/ueditor/dialogs/image/images/image.png
|
138
|
+
- vendor/assets/javascripts/ueditor/dialogs/image/images/progress.png
|
139
|
+
- vendor/assets/javascripts/ueditor/dialogs/image/images/success.gif
|
140
|
+
- vendor/assets/javascripts/ueditor/dialogs/image/images/success.png
|
125
141
|
- vendor/assets/javascripts/ueditor/dialogs/insertframe/insertframe.html
|
126
142
|
- vendor/assets/javascripts/ueditor/dialogs/internal.js
|
127
143
|
- vendor/assets/javascripts/ueditor/dialogs/link/link.html
|
@@ -159,7 +175,6 @@ files:
|
|
159
175
|
- vendor/assets/javascripts/ueditor/dialogs/table/edittable.js
|
160
176
|
- vendor/assets/javascripts/ueditor/dialogs/table/edittd.html
|
161
177
|
- vendor/assets/javascripts/ueditor/dialogs/table/edittip.html
|
162
|
-
- vendor/assets/javascripts/ueditor/dialogs/tangram.js
|
163
178
|
- vendor/assets/javascripts/ueditor/dialogs/template/config.js
|
164
179
|
- vendor/assets/javascripts/ueditor/dialogs/template/images/bg.gif
|
165
180
|
- vendor/assets/javascripts/ueditor/dialogs/template/images/pre0.png
|
@@ -170,17 +185,26 @@ files:
|
|
170
185
|
- vendor/assets/javascripts/ueditor/dialogs/template/template.css
|
171
186
|
- vendor/assets/javascripts/ueditor/dialogs/template/template.html
|
172
187
|
- vendor/assets/javascripts/ueditor/dialogs/template/template.js
|
173
|
-
- vendor/assets/javascripts/ueditor/dialogs/video/
|
188
|
+
- vendor/assets/javascripts/ueditor/dialogs/video/images/bg.png
|
174
189
|
- vendor/assets/javascripts/ueditor/dialogs/video/images/center_focus.jpg
|
190
|
+
- vendor/assets/javascripts/ueditor/dialogs/video/images/file-icons.gif
|
191
|
+
- vendor/assets/javascripts/ueditor/dialogs/video/images/file-icons.png
|
192
|
+
- vendor/assets/javascripts/ueditor/dialogs/video/images/icons.gif
|
193
|
+
- vendor/assets/javascripts/ueditor/dialogs/video/images/icons.png
|
194
|
+
- vendor/assets/javascripts/ueditor/dialogs/video/images/image.png
|
175
195
|
- vendor/assets/javascripts/ueditor/dialogs/video/images/left_focus.jpg
|
176
196
|
- vendor/assets/javascripts/ueditor/dialogs/video/images/none_focus.jpg
|
197
|
+
- vendor/assets/javascripts/ueditor/dialogs/video/images/progress.png
|
177
198
|
- vendor/assets/javascripts/ueditor/dialogs/video/images/right_focus.jpg
|
199
|
+
- vendor/assets/javascripts/ueditor/dialogs/video/images/success.gif
|
200
|
+
- vendor/assets/javascripts/ueditor/dialogs/video/images/success.png
|
178
201
|
- vendor/assets/javascripts/ueditor/dialogs/video/video.css
|
179
202
|
- vendor/assets/javascripts/ueditor/dialogs/video/video.html
|
180
203
|
- vendor/assets/javascripts/ueditor/dialogs/video/video.js
|
181
204
|
- vendor/assets/javascripts/ueditor/dialogs/webapp/webapp.html
|
182
205
|
- vendor/assets/javascripts/ueditor/dialogs/wordimage/fClipboard_ueditor.swf
|
183
206
|
- vendor/assets/javascripts/ueditor/dialogs/wordimage/imageUploader.swf
|
207
|
+
- vendor/assets/javascripts/ueditor/dialogs/wordimage/tangram.js
|
184
208
|
- vendor/assets/javascripts/ueditor/dialogs/wordimage/wordimage.html
|
185
209
|
- vendor/assets/javascripts/ueditor/dialogs/wordimage/wordimage.js
|
186
210
|
- vendor/assets/javascripts/ueditor/index.html
|
@@ -193,7 +217,6 @@ files:
|
|
193
217
|
- vendor/assets/javascripts/ueditor/lang/en/images/copy.png
|
194
218
|
- vendor/assets/javascripts/ueditor/lang/en/images/deletedisable.png
|
195
219
|
- vendor/assets/javascripts/ueditor/lang/en/images/deleteenable.png
|
196
|
-
- vendor/assets/javascripts/ueditor/lang/en/images/imglabel.png
|
197
220
|
- vendor/assets/javascripts/ueditor/lang/en/images/listbackground.png
|
198
221
|
- vendor/assets/javascripts/ueditor/lang/en/images/localimage.png
|
199
222
|
- vendor/assets/javascripts/ueditor/lang/en/images/music.png
|
@@ -203,7 +226,6 @@ files:
|
|
203
226
|
- vendor/assets/javascripts/ueditor/lang/en/images/rotaterightenable.png
|
204
227
|
- vendor/assets/javascripts/ueditor/lang/en/images/upload.png
|
205
228
|
- vendor/assets/javascripts/ueditor/lang/zh-cn/images/copy.png
|
206
|
-
- vendor/assets/javascripts/ueditor/lang/zh-cn/images/imglabel.png
|
207
229
|
- vendor/assets/javascripts/ueditor/lang/zh-cn/images/localimage.png
|
208
230
|
- vendor/assets/javascripts/ueditor/lang/zh-cn/images/music.png
|
209
231
|
- vendor/assets/javascripts/ueditor/lang/zh-cn/images/upload.png
|
@@ -228,6 +250,8 @@ files:
|
|
228
250
|
- vendor/assets/javascripts/ueditor/themes/default/images/icons-all.gif
|
229
251
|
- vendor/assets/javascripts/ueditor/themes/default/images/icons.gif
|
230
252
|
- vendor/assets/javascripts/ueditor/themes/default/images/icons.png
|
253
|
+
- vendor/assets/javascripts/ueditor/themes/default/images/loaderror.png
|
254
|
+
- vendor/assets/javascripts/ueditor/themes/default/images/loading.gif
|
231
255
|
- vendor/assets/javascripts/ueditor/themes/default/images/lock.gif
|
232
256
|
- vendor/assets/javascripts/ueditor/themes/default/images/neweditor-tab-bg.png
|
233
257
|
- vendor/assets/javascripts/ueditor/themes/default/images/pagebreak.gif
|
@@ -281,16 +305,10 @@ files:
|
|
281
305
|
- vendor/assets/javascripts/ueditor/third-party/highcharts/themes/gray.js
|
282
306
|
- vendor/assets/javascripts/ueditor/third-party/highcharts/themes/grid.js
|
283
307
|
- vendor/assets/javascripts/ueditor/third-party/highcharts/themes/skies.js
|
308
|
+
- vendor/assets/javascripts/ueditor/third-party/jquery-1.10.2.js
|
284
309
|
- vendor/assets/javascripts/ueditor/third-party/jquery-1.10.2.min.js
|
310
|
+
- vendor/assets/javascripts/ueditor/third-party/jquery-1.10.2.min.map
|
285
311
|
- vendor/assets/javascripts/ueditor/third-party/snapscreen/UEditorSnapscreen.exe
|
286
|
-
- vendor/assets/javascripts/ueditor/third-party/swfupload/fileprogress.js
|
287
|
-
- vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.cookies.js
|
288
|
-
- vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.js
|
289
|
-
- vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.proxy.js
|
290
|
-
- vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.queue.js
|
291
|
-
- vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.speed.js
|
292
|
-
- vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.swf
|
293
|
-
- vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload_fp9.swf
|
294
312
|
- vendor/assets/javascripts/ueditor/third-party/video-js/font/vjs.eot
|
295
313
|
- vendor/assets/javascripts/ueditor/third-party/video-js/font/vjs.svg
|
296
314
|
- vendor/assets/javascripts/ueditor/third-party/video-js/font/vjs.ttf
|
@@ -300,6 +318,22 @@ files:
|
|
300
318
|
- vendor/assets/javascripts/ueditor/third-party/video-js/video-js.swf
|
301
319
|
- vendor/assets/javascripts/ueditor/third-party/video-js/video.dev.js
|
302
320
|
- vendor/assets/javascripts/ueditor/third-party/video-js/video.js
|
321
|
+
- vendor/assets/javascripts/ueditor/third-party/webuploader/Uploader.swf
|
322
|
+
- vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.css
|
323
|
+
- vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.custom.js
|
324
|
+
- vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.custom.min.js
|
325
|
+
- vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.flashonly.js
|
326
|
+
- vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.flashonly.min.js
|
327
|
+
- vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.html5only.js
|
328
|
+
- vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.html5only.min.js
|
329
|
+
- vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.js
|
330
|
+
- vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.min.js
|
331
|
+
- vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.withoutimage.js
|
332
|
+
- vendor/assets/javascripts/ueditor/third-party/webuploader/webuploader.withoutimage.min.js
|
333
|
+
- vendor/assets/javascripts/ueditor/third-party/xss.min.js
|
334
|
+
- vendor/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.js
|
335
|
+
- vendor/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.min.js
|
336
|
+
- vendor/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.swf
|
303
337
|
- vendor/assets/javascripts/ueditor/ueditor.all.js
|
304
338
|
- vendor/assets/javascripts/ueditor/ueditor.all.min.js
|
305
339
|
- vendor/assets/javascripts/ueditor/ueditor.config.js
|
@@ -325,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
325
359
|
version: '0'
|
326
360
|
requirements: []
|
327
361
|
rubyforge_project:
|
328
|
-
rubygems_version: 2.
|
362
|
+
rubygems_version: 2.4.8
|
329
363
|
signing_key:
|
330
364
|
specification_version: 4
|
331
365
|
summary: Baidu ueditor for rails.
|
@@ -1,166 +0,0 @@
|
|
1
|
-
/* Demo Note: This demo uses a FileProgress class that handles the UI for displaying the file name and percent complete.
|
2
|
-
The FileProgress class is not part of SWFUpload.
|
3
|
-
*/
|
4
|
-
|
5
|
-
|
6
|
-
/* **********************
|
7
|
-
Event Handlers
|
8
|
-
These are my custom event handlers to make my
|
9
|
-
web application behave the way I went when SWFUpload
|
10
|
-
completes different tasks. These aren't part of the SWFUpload
|
11
|
-
package. They are part of my application. Without these none
|
12
|
-
of the actions SWFUpload makes will show up in my application.
|
13
|
-
********************** */
|
14
|
-
function preLoad() {
|
15
|
-
if (!this.support.loading) {
|
16
|
-
alert(lang.flashVersionError);
|
17
|
-
return false;
|
18
|
-
}
|
19
|
-
return true;
|
20
|
-
}
|
21
|
-
function loadFailed() {
|
22
|
-
alert(lang.flashLoadingError);
|
23
|
-
}
|
24
|
-
|
25
|
-
function fileQueued(file) {
|
26
|
-
try {
|
27
|
-
var progress = new FileProgress(file, this.customSettings.progressTarget);
|
28
|
-
progress.setStatus(lang.fileUploadReady);
|
29
|
-
progress.toggleCancel(true, this,lang.delUploadQueue);
|
30
|
-
} catch (ex) {
|
31
|
-
this.debug(ex);
|
32
|
-
}
|
33
|
-
|
34
|
-
}
|
35
|
-
|
36
|
-
function fileQueueError(file, errorCode, message) {
|
37
|
-
try {
|
38
|
-
if (errorCode === SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED) {
|
39
|
-
alert(lang.limitPrompt1+ message + lang.limitPrompt2);
|
40
|
-
return;
|
41
|
-
}
|
42
|
-
|
43
|
-
var progress = new FileProgress(file, this.customSettings.progressTarget);
|
44
|
-
progress.setError();
|
45
|
-
progress.toggleCancel(true, this,lang.delFailFile);
|
46
|
-
|
47
|
-
switch (errorCode) {
|
48
|
-
case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:
|
49
|
-
progress.setStatus(lang.fileSizeLimit);
|
50
|
-
this.debug("Error Code: File too big, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
|
51
|
-
break;
|
52
|
-
case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE:
|
53
|
-
progress.setStatus(lang.emptyFile);
|
54
|
-
this.debug("Error Code: Zero byte file, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
|
55
|
-
break;
|
56
|
-
case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE:
|
57
|
-
progress.setStatus(lang.fileTypeError);
|
58
|
-
this.debug("Error Code: Invalid File Type, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
|
59
|
-
break;
|
60
|
-
default:
|
61
|
-
if (file !== null) {
|
62
|
-
progress.setStatus(lang.unknownError);
|
63
|
-
}
|
64
|
-
this.debug("Error Code: " + errorCode + ", File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
|
65
|
-
break;
|
66
|
-
}
|
67
|
-
} catch (ex) {
|
68
|
-
this.debug(ex);
|
69
|
-
}
|
70
|
-
}
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
function uploadStart(file) {
|
75
|
-
try {
|
76
|
-
/* I don't want to do any file validation or anything, I'll just update the UI and
|
77
|
-
return true to indicate that the upload should start.
|
78
|
-
It's important to update the UI here because in Linux no uploadProgress events are called. The best
|
79
|
-
we can do is say we are uploading.
|
80
|
-
*/
|
81
|
-
var progress = new FileProgress(file, this.customSettings.progressTarget);
|
82
|
-
progress.setStatus(lang.fileUploading);
|
83
|
-
progress.toggleCancel(true, this,lang.cancelUpload);
|
84
|
-
}catch (ex) {}
|
85
|
-
|
86
|
-
return true;
|
87
|
-
}
|
88
|
-
|
89
|
-
function uploadProgress(file, bytesLoaded, bytesTotal) {
|
90
|
-
try {
|
91
|
-
var percent = Math.ceil((bytesLoaded / bytesTotal) * 100);
|
92
|
-
|
93
|
-
var progress = new FileProgress(file, this.customSettings.progressTarget);
|
94
|
-
progress.setProgress(percent);
|
95
|
-
progress.setStatus(lang.fileUploading);
|
96
|
-
} catch (ex) {
|
97
|
-
this.debug(ex);
|
98
|
-
}
|
99
|
-
}
|
100
|
-
|
101
|
-
|
102
|
-
function uploadError(file, errorCode, message) {
|
103
|
-
try {
|
104
|
-
var progress = new FileProgress(file, this.customSettings.progressTarget);
|
105
|
-
progress.setError();
|
106
|
-
//progress.toggleCancel(false);
|
107
|
-
|
108
|
-
switch (errorCode) {
|
109
|
-
case SWFUpload.UPLOAD_ERROR.HTTP_ERROR:
|
110
|
-
progress.setStatus(lang.netError + message);
|
111
|
-
this.debug("Error Code: HTTP Error, File name: " + file.name + ", Message: " + message);
|
112
|
-
break;
|
113
|
-
case SWFUpload.UPLOAD_ERROR.UPLOAD_FAILED:
|
114
|
-
progress.setStatus(lang.failUpload);
|
115
|
-
this.debug("Error Code: Upload Failed, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
|
116
|
-
break;
|
117
|
-
case SWFUpload.UPLOAD_ERROR.IO_ERROR:
|
118
|
-
progress.setStatus(lang.serverIOError);
|
119
|
-
this.debug("Error Code: IO Error, File name: " + file.name + ", Message: " + message);
|
120
|
-
break;
|
121
|
-
case SWFUpload.UPLOAD_ERROR.SECURITY_ERROR:
|
122
|
-
progress.setStatus(lang.noAuthority);
|
123
|
-
this.debug("Error Code: Security Error, File name: " + file.name + ", Message: " + message);
|
124
|
-
break;
|
125
|
-
case SWFUpload.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED:
|
126
|
-
progress.setStatus(lang.fileNumLimit);
|
127
|
-
this.debug("Error Code: Upload Limit Exceeded, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
|
128
|
-
break;
|
129
|
-
case SWFUpload.UPLOAD_ERROR.FILE_VALIDATION_FAILED:
|
130
|
-
progress.setStatus(lang.failCheck);
|
131
|
-
this.debug("Error Code: File Validation Failed, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
|
132
|
-
break;
|
133
|
-
case SWFUpload.UPLOAD_ERROR.FILE_CANCELLED:
|
134
|
-
// If there aren't any files left (they were all cancelled) disable the cancel button
|
135
|
-
// if (this.getStats().files_queued === 0) {
|
136
|
-
// document.getElementById(this.customSettings.cancelButtonId).disabled = true;
|
137
|
-
// }
|
138
|
-
progress.setStatus(lang.fileCanceling);
|
139
|
-
progress.setCancelled();
|
140
|
-
break;
|
141
|
-
case SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED:
|
142
|
-
progress.setStatus(lang.stopUploading);
|
143
|
-
break;
|
144
|
-
default:
|
145
|
-
progress.setStatus(lang.unknownError + errorCode);
|
146
|
-
this.debug("Error Code: " + errorCode + ", File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
|
147
|
-
break;
|
148
|
-
}
|
149
|
-
} catch (ex) {
|
150
|
-
this.debug(ex);
|
151
|
-
}
|
152
|
-
}
|
153
|
-
|
154
|
-
function uploadComplete(file) {
|
155
|
-
//alert(file);
|
156
|
-
// if (this.getStats().files_queued === 0) {
|
157
|
-
// document.getElementById(this.customSettings.cancelButtonId).disabled = true;
|
158
|
-
// }
|
159
|
-
}
|
160
|
-
|
161
|
-
// This event comes from the Queue Plugin
|
162
|
-
function queueComplete(numFilesUploaded) {
|
163
|
-
var status = document.getElementById("divStatus");
|
164
|
-
var num = status.innerHTML.match(/\d+/g);
|
165
|
-
status.innerHTML = ((num && num[0] ?parseInt(num[0]):0) + numFilesUploaded) +lang.statusPrompt;
|
166
|
-
}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Created by JetBrains PhpStorm.
|
3
|
-
* User: taoqili
|
4
|
-
* Date: 12-2-10
|
5
|
-
* Time: 下午3:50
|
6
|
-
* To change this template use File | Settings | File Templates.
|
7
|
-
*/
|
8
|
-
//文件类型图标索引
|
9
|
-
var fileTypeMaps = {
|
10
|
-
".rar":"icon_rar.gif",
|
11
|
-
".zip":"icon_rar.gif",
|
12
|
-
".doc":"icon_doc.gif",
|
13
|
-
".docx":"icon_doc.gif",
|
14
|
-
".pdf":"icon_pdf.gif",
|
15
|
-
".mp3":"icon_mp3.gif",
|
16
|
-
".xls":"icon_xls.gif",
|
17
|
-
".chm":"icon_chm.gif",
|
18
|
-
".ppt":"icon_ppt.gif",
|
19
|
-
".pptx":"icon_ppt.gif",
|
20
|
-
".avi":"icon_mv.gif",
|
21
|
-
".rmvb":"icon_mv.gif",
|
22
|
-
".wmv":"icon_mv.gif",
|
23
|
-
".flv":"icon_mv.gif",
|
24
|
-
".swf":"icon_mv.gif",
|
25
|
-
".rm":"icon_mv.gif",
|
26
|
-
".exe":"icon_exe.gif",
|
27
|
-
".psd":"icon_psd.gif",
|
28
|
-
".txt":"icon_txt.gif"
|
29
|
-
};
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|