baidu_ueditor_rails5 0.2.0 → 0.3.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/app/assets/javascripts/baidu_ueditor.js +1 -1
- data/app/assets/javascripts/ueditor/dialogs/anchor/anchor.html +40 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/attachment.css +681 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/attachment.html +60 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/attachment.js +754 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_chm.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_default.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_doc.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_exe.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_jpg.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_mp3.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_mv.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_pdf.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_ppt.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_psd.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_rar.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_txt.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_xls.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/alignicon.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/alignicon.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/bg.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/file-icons.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/file-icons.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/icons.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/icons.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/image.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/progress.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/success.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/success.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/background/background.css +94 -0
- data/app/assets/javascripts/ueditor/dialogs/background/background.html +56 -0
- data/app/assets/javascripts/ueditor/dialogs/background/background.js +376 -0
- data/app/assets/javascripts/ueditor/dialogs/background/images/bg.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/background/images/success.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/chart.config.js +65 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/charts.css +165 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/charts.html +89 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/charts.js +519 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/images/charts0.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/images/charts1.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/images/charts2.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/images/charts3.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/images/charts4.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/images/charts5.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/emotion.css +43 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/emotion.html +54 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/emotion.js +186 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/0.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/bface.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/cface.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/fface.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/jxface2.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/neweditor-tab-bg.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/tface.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/wface.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/yface.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/gmap/gmap.html +89 -0
- data/app/assets/javascripts/ueditor/dialogs/help/help.css +7 -0
- data/app/assets/javascripts/ueditor/dialogs/help/help.html +82 -0
- data/app/assets/javascripts/ueditor/dialogs/help/help.js +56 -0
- data/app/assets/javascripts/ueditor/dialogs/image/image.css +894 -0
- data/app/assets/javascripts/ueditor/dialogs/image/image.html +120 -0
- data/app/assets/javascripts/ueditor/dialogs/image/image.js +1142 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/alignicon.jpg +0 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/bg.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/icons.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/icons.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/image.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/progress.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/success.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/success.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/insertframe/insertframe.html +98 -0
- data/app/assets/javascripts/ueditor/dialogs/internal.js +81 -0
- data/app/assets/javascripts/ueditor/dialogs/link/link.html +126 -0
- data/app/assets/javascripts/ueditor/dialogs/map/map.html +135 -0
- data/app/assets/javascripts/ueditor/dialogs/map/show.html +118 -0
- data/app/assets/javascripts/ueditor/dialogs/music/music.css +30 -0
- data/app/assets/javascripts/ueditor/dialogs/music/music.html +32 -0
- data/app/assets/javascripts/ueditor/dialogs/music/music.js +192 -0
- data/app/assets/javascripts/ueditor/dialogs/preview/preview.html +40 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/addimg.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/brush.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/delimg.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/delimgH.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/empty.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/emptyH.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/eraser.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/redo.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/redoH.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/scale.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/scaleH.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/size.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/undo.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/undoH.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/scrawl.css +72 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/scrawl.html +95 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/scrawl.js +671 -0
- data/app/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.html +102 -0
- data/app/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.js +164 -0
- data/app/assets/javascripts/ueditor/dialogs/snapscreen/snapscreen.html +58 -0
- data/app/assets/javascripts/ueditor/dialogs/spechars/spechars.html +21 -0
- data/app/assets/javascripts/ueditor/dialogs/spechars/spechars.js +57 -0
- data/app/assets/javascripts/ueditor/dialogs/table/dragicon.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/table/edittable.css +84 -0
- data/app/assets/javascripts/ueditor/dialogs/table/edittable.html +64 -0
- data/app/assets/javascripts/ueditor/dialogs/table/edittable.js +237 -0
- data/app/assets/javascripts/ueditor/dialogs/table/edittd.html +61 -0
- data/app/assets/javascripts/ueditor/dialogs/table/edittip.html +33 -0
- data/app/assets/javascripts/ueditor/dialogs/template/config.js +42 -0
- data/app/assets/javascripts/ueditor/dialogs/template/images/bg.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/template/images/pre0.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/template/images/pre1.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/template/images/pre2.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/template/images/pre3.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/template/images/pre4.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/template/template.css +18 -0
- data/app/assets/javascripts/ueditor/dialogs/template/template.html +26 -0
- data/app/assets/javascripts/ueditor/dialogs/template/template.js +53 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/bg.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/center_focus.jpg +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/file-icons.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/file-icons.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/icons.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/icons.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/image.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/left_focus.jpg +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/none_focus.jpg +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/progress.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/right_focus.jpg +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/success.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/success.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/video.css +635 -0
- data/app/assets/javascripts/ueditor/dialogs/video/video.html +86 -0
- data/app/assets/javascripts/ueditor/dialogs/video/video.js +791 -0
- data/app/assets/javascripts/ueditor/dialogs/webapp/webapp.html +53 -0
- data/app/assets/javascripts/ueditor/dialogs/wordimage/fClipboard_ueditor.swf +0 -0
- data/app/assets/javascripts/ueditor/dialogs/wordimage/imageUploader.swf +0 -0
- data/app/assets/javascripts/ueditor/dialogs/wordimage/tangram.js +1495 -0
- data/app/assets/javascripts/ueditor/dialogs/wordimage/wordimage.html +111 -0
- data/app/assets/javascripts/ueditor/dialogs/wordimage/wordimage.js +157 -0
- data/app/assets/javascripts/ueditor/index.html +175 -0
- data/app/assets/javascripts/ueditor/lang/en/en.js +684 -0
- data/app/assets/javascripts/ueditor/lang/en/images/addimage.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/alldeletebtnhoverskin.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/alldeletebtnupskin.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/background.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/button.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/copy.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/deletedisable.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/deleteenable.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/listbackground.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/localimage.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/music.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/rotateleftdisable.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/rotateleftenable.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/rotaterightdisable.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/rotaterightenable.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/upload.png +0 -0
- data/app/assets/javascripts/ueditor/lang/zh-cn/images/copy.png +0 -0
- data/app/assets/javascripts/ueditor/lang/zh-cn/images/localimage.png +0 -0
- data/app/assets/javascripts/ueditor/lang/zh-cn/images/music.png +0 -0
- data/app/assets/javascripts/ueditor/lang/zh-cn/images/upload.png +0 -0
- data/app/assets/javascripts/ueditor/lang/zh-cn/zh-cn.js +669 -0
- data/app/assets/javascripts/ueditor/themes/default/css/ueditor.css +1903 -0
- data/app/assets/javascripts/ueditor/themes/default/css/ueditor.min.css +8 -0
- data/app/assets/javascripts/ueditor/themes/default/dialogbase.css +100 -0
- data/app/assets/javascripts/ueditor/themes/default/images/anchor.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/arrow.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/arrow_down.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/arrow_up.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/button-bg.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/cancelbutton.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/charts.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/cursor_h.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/cursor_h.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/cursor_v.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/cursor_v.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/dialog-title-bg.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/filescan.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/highlighted.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/icons-all.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/icons.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/icons.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/loaderror.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/loading.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/lock.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/neweditor-tab-bg.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/pagebreak.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/scale.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/sortable.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/spacer.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/sparator_v.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/table-cell-align.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/tangram-colorpicker.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/toolbar_bg.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/unhighlighted.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/upload.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/videologo.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/word.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/wordpaste.png +0 -0
- data/app/assets/javascripts/ueditor/themes/iframe.css +1 -0
- data/app/assets/javascripts/ueditor/third-party/SyntaxHighlighter/shCore.js +3655 -0
- data/app/assets/javascripts/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css +1 -0
- data/app/assets/javascripts/ueditor/third-party/codemirror/codemirror.css +104 -0
- data/app/assets/javascripts/ueditor/third-party/codemirror/codemirror.js +3581 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/adapters/mootools-adapter.js +13 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/adapters/mootools-adapter.src.js +313 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/adapters/prototype-adapter.js +15 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/adapters/prototype-adapter.src.js +316 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/adapters/standalone-framework.js +17 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/adapters/standalone-framework.src.js +583 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/highcharts-more.js +50 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/highcharts-more.src.js +2430 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/highcharts.js +283 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/highcharts.src.js +16974 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/annotations.js +7 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/annotations.src.js +401 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/canvas-tools.js +133 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/canvas-tools.src.js +3113 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/data.js +17 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/data.src.js +582 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/drilldown.js +11 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/drilldown.src.js +447 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/exporting.js +22 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/exporting.src.js +709 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/funnel.js +12 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/funnel.src.js +289 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/heatmap.js +1 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/heatmap.src.js +53 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/map.js +27 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/map.src.js +1002 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/no-data-to-display.js +12 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/no-data-to-display.src.js +128 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/themes/dark-blue.js +254 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/themes/dark-green.js +255 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/themes/gray.js +257 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/themes/grid.js +103 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/themes/skies.js +89 -0
- data/app/assets/javascripts/ueditor/third-party/jquery-1.10.2.js +9789 -0
- data/app/assets/javascripts/ueditor/third-party/jquery-1.10.2.min.js +6 -0
- data/app/assets/javascripts/ueditor/third-party/jquery-1.10.2.min.map +1 -0
- data/app/assets/javascripts/ueditor/third-party/snapscreen/UEditorSnapscreen.exe +0 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/font/vjs.eot +0 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/font/vjs.svg +65 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/font/vjs.ttf +0 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/font/vjs.woff +0 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/video-js.css +766 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/video-js.min.css +5 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/video-js.swf +0 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/video.dev.js +7108 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/video.js +129 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/Uploader.swf +0 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.css +28 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.custom.js +5670 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.custom.min.js +2 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.flashonly.js +4176 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.flashonly.min.js +2 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.html5only.js +5559 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.html5only.min.js +2 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.js +6733 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.min.js +2 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.withoutimage.js +4593 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.withoutimage.min.js +2 -0
- data/app/assets/javascripts/ueditor/third-party/xss.min.js +1 -0
- data/app/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.js +1256 -0
- data/app/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.min.js +9 -0
- data/app/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.swf +0 -0
- data/app/assets/javascripts/ueditor/ueditor.all.js +29568 -0
- data/app/assets/javascripts/ueditor/ueditor.all.min.js +18 -0
- data/app/assets/javascripts/ueditor/ueditor.config.js +497 -0
- data/app/assets/javascripts/ueditor/ueditor.parse.js +1022 -0
- data/app/assets/javascripts/ueditor/ueditor.parse.min.js +7 -0
- data/app/assets/javascripts/{ueditor → ueditor_custom}/preinit.js.erb +0 -0
- data/lib/baidu_ueditor_rails/version.rb +1 -1
- metadata +292 -21
@@ -0,0 +1,118 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8"/>
|
6
|
+
<meta name="keywords" content="百度地图,百度地图API,百度地图自定义工具,百度地图所见即所得工具"/>
|
7
|
+
<meta name="description" content="百度地图API自定义地图,帮助用户在可视化操作下生成百度地图"/>
|
8
|
+
<title>百度地图API自定义地图</title>
|
9
|
+
<!--引用百度地图API-->
|
10
|
+
<style type="text/css">
|
11
|
+
html, body {
|
12
|
+
margin: 0;
|
13
|
+
padding: 0;
|
14
|
+
overflow: hidden;
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
<script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script>
|
18
|
+
</head>
|
19
|
+
|
20
|
+
<body onload="initMap();">
|
21
|
+
<!--百度地图容器-->
|
22
|
+
<div style="width:697px;height:550px;border:#ccc solid 1px;" id="dituContent"></div>
|
23
|
+
</body>
|
24
|
+
<script type="text/javascript">
|
25
|
+
function getParam(name) {
|
26
|
+
return location.href.match(new RegExp('[?#&]' + name + '=([^?#&]+)', 'i')) ? RegExp.$1 : '';
|
27
|
+
}
|
28
|
+
var map, marker;
|
29
|
+
var centerParam = getParam('center');
|
30
|
+
var zoomParam = getParam('zoom');
|
31
|
+
var widthParam = getParam('width');
|
32
|
+
var heightParam = getParam('height');
|
33
|
+
var markersParam = getParam('markers');
|
34
|
+
var markerStylesParam = getParam('markerStyles');
|
35
|
+
|
36
|
+
//创建和初始化地图函数:
|
37
|
+
function initMap() {
|
38
|
+
// [FF]切换模式后报错
|
39
|
+
if (!window.BMap) {
|
40
|
+
return;
|
41
|
+
}
|
42
|
+
var dituContent = document.getElementById('dituContent');
|
43
|
+
dituContent.style.width = widthParam + 'px';
|
44
|
+
dituContent.style.height = heightParam + 'px';
|
45
|
+
|
46
|
+
createMap();//创建地图
|
47
|
+
setMapEvent();//设置地图事件
|
48
|
+
addMapControl();//向地图添加控件
|
49
|
+
|
50
|
+
// 创建标注
|
51
|
+
var markersArr = markersParam.split(',');
|
52
|
+
var point = new BMap.Point(markersArr[0], markersArr[1]);
|
53
|
+
marker = new BMap.Marker(point);
|
54
|
+
marker.enableDragging();
|
55
|
+
map.addOverlay(marker); // 将标注添加到地图中
|
56
|
+
|
57
|
+
if(parent.editor && parent.document.body.contentEditable=="true") { //在编辑状态下
|
58
|
+
setMapListener();//地图改变修改外层的iframe标签src属性
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
//创建地图函数:
|
63
|
+
function createMap() {
|
64
|
+
map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图
|
65
|
+
var centerArr = centerParam.split(',');
|
66
|
+
var point = new BMap.Point(parseFloat(centerArr[0]), parseFloat(centerArr[1]));//定义一个中心点坐标
|
67
|
+
map.centerAndZoom(point, parseInt(zoomParam));//设定地图的中心点和坐标并将地图显示在地图容器中
|
68
|
+
}
|
69
|
+
|
70
|
+
//地图事件设置函数:
|
71
|
+
function setMapEvent() {
|
72
|
+
map.enableDragging();//启用地图拖拽事件,默认启用(可不写)
|
73
|
+
map.enableScrollWheelZoom();//启用地图滚轮放大缩小
|
74
|
+
map.enableDoubleClickZoom();//启用鼠标双击放大,默认启用(可不写)
|
75
|
+
map.enableKeyboard();//启用键盘上下左右键移动地图
|
76
|
+
}
|
77
|
+
|
78
|
+
//地图控件添加函数:
|
79
|
+
function addMapControl() {
|
80
|
+
//向地图中添加缩放控件
|
81
|
+
var ctrl_nav = new BMap.NavigationControl({anchor: BMAP_ANCHOR_TOP_LEFT, type: BMAP_NAVIGATION_CONTROL_LARGE});
|
82
|
+
map.addControl(ctrl_nav);
|
83
|
+
//向地图中添加缩略图控件
|
84
|
+
var ctrl_ove = new BMap.OverviewMapControl({anchor: BMAP_ANCHOR_BOTTOM_RIGHT, isOpen: 1});
|
85
|
+
map.addControl(ctrl_ove);
|
86
|
+
//向地图中添加比例尺控件
|
87
|
+
var ctrl_sca = new BMap.ScaleControl({anchor: BMAP_ANCHOR_BOTTOM_LEFT});
|
88
|
+
map.addControl(ctrl_sca);
|
89
|
+
}
|
90
|
+
|
91
|
+
function setMapListener() {
|
92
|
+
var editor = parent.editor, containerIframe,
|
93
|
+
iframes = parent.document.getElementsByTagName('iframe');
|
94
|
+
for (var key in iframes) {
|
95
|
+
if (iframes[key].contentWindow == window) {
|
96
|
+
containerIframe = iframes[key];
|
97
|
+
break;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
if (containerIframe) {
|
101
|
+
map.addEventListener('moveend', mapListenerHandler);
|
102
|
+
map.addEventListener('zoomend', mapListenerHandler);
|
103
|
+
marker.addEventListener('dragend', mapListenerHandler);
|
104
|
+
}
|
105
|
+
|
106
|
+
function mapListenerHandler() {
|
107
|
+
var zoom = map.getZoom(),
|
108
|
+
center = map.getCenter(),
|
109
|
+
marker = window.marker.getPoint();
|
110
|
+
containerIframe.src = containerIframe.src.
|
111
|
+
replace(new RegExp('([?#&])center=([^?#&]+)', 'i'), '$1center=' + center.lng + ',' + center.lat).
|
112
|
+
replace(new RegExp('([?#&])markers=([^?#&]+)', 'i'), '$1markers=' + marker.lng + ',' + marker.lat).
|
113
|
+
replace(new RegExp('([?#&])zoom=([^?#&]+)', 'i'), '$1zoom=' + zoom);
|
114
|
+
editor.fireEvent('saveScene');
|
115
|
+
}
|
116
|
+
}
|
117
|
+
</script>
|
118
|
+
</html>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
.wrapper{margin: 5px 10px;}
|
2
|
+
|
3
|
+
.searchBar{height:30px;padding:7px 0 3px;text-align:center;}
|
4
|
+
.searchBtn{font-size:13px;height:24px;}
|
5
|
+
|
6
|
+
.resultBar{width:460px;margin:5px auto;border: 1px solid #CCC;border-radius: 5px;box-shadow: 2px 2px 5px #D3D6DA;overflow: hidden;}
|
7
|
+
|
8
|
+
.listPanel{overflow: hidden;}
|
9
|
+
.panelon{display:block;}
|
10
|
+
.paneloff{display:none}
|
11
|
+
|
12
|
+
.page{width:220px;margin:20px auto;overflow: hidden;}
|
13
|
+
.pageon{float:right;width:24px;line-height:24px;height:24px;margin-right: 5px;background: none;border: none;color: #000;font-weight: bold;text-align:center}
|
14
|
+
.pageoff{float:right;width:24px;line-height:24px;height:24px;cursor:pointer;background-color: #fff;
|
15
|
+
border: 1px solid #E7ECF0;color: #2D64B3;margin-right: 5px;text-decoration: none;text-align:center;}
|
16
|
+
|
17
|
+
.m-box{width:460px;}
|
18
|
+
.m-m{float: left;line-height: 20px;height: 20px;}
|
19
|
+
.m-h{height:24px;line-height:24px;padding-left: 46px;background-color:#FAFAFA;border-bottom: 1px solid #DAD8D8;font-weight: bold;font-size: 12px;color: #333;}
|
20
|
+
.m-l{float:left;width:40px; }
|
21
|
+
.m-t{float:left;width:140px;}
|
22
|
+
.m-s{float:left;width:110px;}
|
23
|
+
.m-z{float:left;width:100px;}
|
24
|
+
.m-try-t{float: left;width: 60px;;}
|
25
|
+
|
26
|
+
.m-try{float:left;width:20px;height:20px;background:url('http://static.tieba.baidu.com/tb/editor/images/try_music.gif') no-repeat ;}
|
27
|
+
.m-trying{float:left;width:20px;height:20px;background:url('http://static.tieba.baidu.com/tb/editor/images/stop_music.gif') no-repeat ;}
|
28
|
+
|
29
|
+
.loading{width:95px;height:7px;font-size:7px;margin:60px auto;background:url(http://static.tieba.baidu.com/tb/editor/images/loading.gif) no-repeat}
|
30
|
+
.empty{width:300px;height:40px;padding:2px;margin:50px auto;line-height:40px; color:#006699;text-align:center;}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
5
|
+
<title>插入音乐</title>
|
6
|
+
<script type="text/javascript" src="../internal.js"></script>
|
7
|
+
<link rel="stylesheet" type="text/css" href="music.css">
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<div class="wrapper">
|
11
|
+
<div class="searchBar">
|
12
|
+
<input id="J_searchName" type="text"/>
|
13
|
+
<input type="button" class="searchBtn" id="J_searchBtn">
|
14
|
+
</div>
|
15
|
+
<div class="resultBar" id="J_resultBar">
|
16
|
+
<div class="loading" style="display:none"></div>
|
17
|
+
<div class="empty"><var id="lang_input_tips"></var></div>
|
18
|
+
</div>
|
19
|
+
<div id="J_preview"></div>
|
20
|
+
</div>
|
21
|
+
<script type="text/javascript" src="music.js"></script>
|
22
|
+
<script type="text/javascript">
|
23
|
+
var music = new Music;
|
24
|
+
dialog.onok = function () {
|
25
|
+
music.exec();
|
26
|
+
};
|
27
|
+
dialog.oncancel = function () {
|
28
|
+
$G('J_preview').innerHTML = "";
|
29
|
+
};
|
30
|
+
</script>
|
31
|
+
</body>
|
32
|
+
</html>
|
@@ -0,0 +1,192 @@
|
|
1
|
+
function Music() {
|
2
|
+
this.init();
|
3
|
+
}
|
4
|
+
(function () {
|
5
|
+
var pages = [],
|
6
|
+
panels = [],
|
7
|
+
selectedItem = null;
|
8
|
+
Music.prototype = {
|
9
|
+
total:70,
|
10
|
+
pageSize:10,
|
11
|
+
dataUrl:"http://tingapi.ting.baidu.com/v1/restserver/ting?method=baidu.ting.search.common",
|
12
|
+
playerUrl:"http://box.baidu.com/widget/flash/bdspacesong.swf",
|
13
|
+
|
14
|
+
init:function () {
|
15
|
+
var me = this;
|
16
|
+
domUtils.on($G("J_searchName"), "keyup", function (event) {
|
17
|
+
var e = window.event || event;
|
18
|
+
if (e.keyCode == 13) {
|
19
|
+
me.dosearch();
|
20
|
+
}
|
21
|
+
});
|
22
|
+
domUtils.on($G("J_searchBtn"), "click", function () {
|
23
|
+
me.dosearch();
|
24
|
+
});
|
25
|
+
},
|
26
|
+
callback:function (data) {
|
27
|
+
var me = this;
|
28
|
+
me.data = data.song_list;
|
29
|
+
setTimeout(function () {
|
30
|
+
$G('J_resultBar').innerHTML = me._renderTemplate(data.song_list);
|
31
|
+
}, 300);
|
32
|
+
},
|
33
|
+
dosearch:function () {
|
34
|
+
var me = this;
|
35
|
+
selectedItem = null;
|
36
|
+
var key = $G('J_searchName').value;
|
37
|
+
if (utils.trim(key) == "")return false;
|
38
|
+
key = encodeURIComponent(key);
|
39
|
+
me._sent(key);
|
40
|
+
},
|
41
|
+
doselect:function (i) {
|
42
|
+
var me = this;
|
43
|
+
if (typeof i == 'object') {
|
44
|
+
selectedItem = i;
|
45
|
+
} else if (typeof i == 'number') {
|
46
|
+
selectedItem = me.data[i];
|
47
|
+
}
|
48
|
+
},
|
49
|
+
onpageclick:function (id) {
|
50
|
+
var me = this;
|
51
|
+
for (var i = 0; i < pages.length; i++) {
|
52
|
+
$G(pages[i]).className = 'pageoff';
|
53
|
+
$G(panels[i]).className = 'paneloff';
|
54
|
+
}
|
55
|
+
$G('page' + id).className = 'pageon';
|
56
|
+
$G('panel' + id).className = 'panelon';
|
57
|
+
},
|
58
|
+
listenTest:function (elem) {
|
59
|
+
var me = this,
|
60
|
+
view = $G('J_preview'),
|
61
|
+
is_play_action = (elem.className == 'm-try'),
|
62
|
+
old_trying = me._getTryingElem();
|
63
|
+
|
64
|
+
if (old_trying) {
|
65
|
+
old_trying.className = 'm-try';
|
66
|
+
view.innerHTML = '';
|
67
|
+
}
|
68
|
+
if (is_play_action) {
|
69
|
+
elem.className = 'm-trying';
|
70
|
+
view.innerHTML = me._buildMusicHtml(me._getUrl(true));
|
71
|
+
}
|
72
|
+
},
|
73
|
+
_sent:function (param) {
|
74
|
+
var me = this;
|
75
|
+
$G('J_resultBar').innerHTML = '<div class="loading"></div>';
|
76
|
+
|
77
|
+
utils.loadFile(document, {
|
78
|
+
src:me.dataUrl + '&query=' + param + '&page_size=' + me.total + '&callback=music.callback&.r=' + Math.random(),
|
79
|
+
tag:"script",
|
80
|
+
type:"text/javascript",
|
81
|
+
defer:"defer"
|
82
|
+
});
|
83
|
+
},
|
84
|
+
_removeHtml:function (str) {
|
85
|
+
var reg = /<\s*\/?\s*[^>]*\s*>/gi;
|
86
|
+
return str.replace(reg, "");
|
87
|
+
},
|
88
|
+
_getUrl:function (isTryListen) {
|
89
|
+
var me = this;
|
90
|
+
var param = 'from=tiebasongwidget&url=&name=' + encodeURIComponent(me._removeHtml(selectedItem.title)) + '&artist='
|
91
|
+
+ encodeURIComponent(me._removeHtml(selectedItem.author)) + '&extra='
|
92
|
+
+ encodeURIComponent(me._removeHtml(selectedItem.album_title))
|
93
|
+
+ '&autoPlay='+isTryListen+'' + '&loop=true';
|
94
|
+
return me.playerUrl + "?" + param;
|
95
|
+
},
|
96
|
+
_getTryingElem:function () {
|
97
|
+
var s = $G('J_listPanel').getElementsByTagName('span');
|
98
|
+
|
99
|
+
for (var i = 0; i < s.length; i++) {
|
100
|
+
if (s[i].className == 'm-trying')
|
101
|
+
return s[i];
|
102
|
+
}
|
103
|
+
return null;
|
104
|
+
},
|
105
|
+
_buildMusicHtml:function (playerUrl) {
|
106
|
+
var html = '<embed class="BDE_try_Music" allowfullscreen="false" pluginspage="http://www.macromedia.com/go/getflashplayer"';
|
107
|
+
html += ' src="' + playerUrl + '"';
|
108
|
+
html += ' width="1" height="1" style="position:absolute;left:-2000px;"';
|
109
|
+
html += ' type="application/x-shockwave-flash" wmode="transparent" play="true" loop="false"';
|
110
|
+
html += ' menu="false" allowscriptaccess="never" scale="noborder">';
|
111
|
+
return html;
|
112
|
+
},
|
113
|
+
_byteLength:function (str) {
|
114
|
+
return str.replace(/[^\u0000-\u007f]/g, "\u0061\u0061").length;
|
115
|
+
},
|
116
|
+
_getMaxText:function (s) {
|
117
|
+
var me = this;
|
118
|
+
s = me._removeHtml(s);
|
119
|
+
if (me._byteLength(s) > 12)
|
120
|
+
return s.substring(0, 5) + '...';
|
121
|
+
if (!s) s = " ";
|
122
|
+
return s;
|
123
|
+
},
|
124
|
+
_rebuildData:function (data) {
|
125
|
+
var me = this,
|
126
|
+
newData = [],
|
127
|
+
d = me.pageSize,
|
128
|
+
itembox;
|
129
|
+
for (var i = 0; i < data.length; i++) {
|
130
|
+
if ((i + d) % d == 0) {
|
131
|
+
itembox = [];
|
132
|
+
newData.push(itembox)
|
133
|
+
}
|
134
|
+
itembox.push(data[i]);
|
135
|
+
}
|
136
|
+
return newData;
|
137
|
+
},
|
138
|
+
_renderTemplate:function (data) {
|
139
|
+
var me = this;
|
140
|
+
if (data.length == 0)return '<div class="empty">' + lang.emptyTxt + '</div>';
|
141
|
+
data = me._rebuildData(data);
|
142
|
+
var s = [], p = [], t = [];
|
143
|
+
s.push('<div id="J_listPanel" class="listPanel">');
|
144
|
+
p.push('<div class="page">');
|
145
|
+
for (var i = 0, tmpList; tmpList = data[i++];) {
|
146
|
+
panels.push('panel' + i);
|
147
|
+
pages.push('page' + i);
|
148
|
+
if (i == 1) {
|
149
|
+
s.push('<div id="panel' + i + '" class="panelon">');
|
150
|
+
if (data.length != 1) {
|
151
|
+
t.push('<div id="page' + i + '" onclick="music.onpageclick(' + i + ')" class="pageon">' + (i ) + '</div>');
|
152
|
+
}
|
153
|
+
} else {
|
154
|
+
s.push('<div id="panel' + i + '" class="paneloff">');
|
155
|
+
t.push('<div id="page' + i + '" onclick="music.onpageclick(' + i + ')" class="pageoff">' + (i ) + '</div>');
|
156
|
+
}
|
157
|
+
s.push('<div class="m-box">');
|
158
|
+
s.push('<div class="m-h"><span class="m-t">' + lang.chapter + '</span><span class="m-s">' + lang.singer
|
159
|
+
+ '</span><span class="m-z">' + lang.special + '</span><span class="m-try-t">' + lang.listenTest + '</span></div>');
|
160
|
+
for (var j = 0, tmpObj; tmpObj = tmpList[j++];) {
|
161
|
+
s.push('<label for="radio-' + i + '-' + j + '" class="m-m">');
|
162
|
+
s.push('<input type="radio" id="radio-' + i + '-' + j + '" name="musicId" class="m-l" onclick="music.doselect(' + (me.pageSize * (i-1) + (j-1)) + ')"/>');
|
163
|
+
s.push('<span class="m-t">' + me._getMaxText(tmpObj.title) + '</span>');
|
164
|
+
s.push('<span class="m-s">' + me._getMaxText(tmpObj.author) + '</span>');
|
165
|
+
s.push('<span class="m-z">' + me._getMaxText(tmpObj.album_title) + '</span>');
|
166
|
+
s.push('<span class="m-try" onclick="music.doselect(' + (me.pageSize * (i-1) + (j-1)) + ');music.listenTest(this)"></span>');
|
167
|
+
s.push('</label>');
|
168
|
+
}
|
169
|
+
s.push('</div>');
|
170
|
+
s.push('</div>');
|
171
|
+
}
|
172
|
+
t.reverse();
|
173
|
+
p.push(t.join(''));
|
174
|
+
s.push('</div>');
|
175
|
+
p.push('</div>');
|
176
|
+
return s.join('') + p.join('');
|
177
|
+
},
|
178
|
+
exec:function () {
|
179
|
+
var me = this;
|
180
|
+
if (selectedItem == null) return;
|
181
|
+
$G('J_preview').innerHTML = "";
|
182
|
+
editor.execCommand('music', {
|
183
|
+
url:me._getUrl(false),
|
184
|
+
width:400,
|
185
|
+
height:95
|
186
|
+
});
|
187
|
+
}
|
188
|
+
};
|
189
|
+
})();
|
190
|
+
|
191
|
+
|
192
|
+
|
@@ -0,0 +1,40 @@
|
|
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
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
6
|
+
<style>
|
7
|
+
html,body{
|
8
|
+
height:100%;
|
9
|
+
width:100%;
|
10
|
+
padding:0;
|
11
|
+
margin:0;
|
12
|
+
}
|
13
|
+
#preview{
|
14
|
+
width:100%;
|
15
|
+
height:100%;
|
16
|
+
padding:0;
|
17
|
+
margin:0;
|
18
|
+
}
|
19
|
+
#preview *{font-family:sans-serif;font-size:16px;}
|
20
|
+
</style>
|
21
|
+
<script type="text/javascript" src="../internal.js"></script>
|
22
|
+
<script src="../../ueditor.parse.js"></script>
|
23
|
+
<title></title>
|
24
|
+
</head>
|
25
|
+
<body class="view">
|
26
|
+
<div id="preview" style="margin:8px">
|
27
|
+
|
28
|
+
</div>
|
29
|
+
</body>
|
30
|
+
<script>
|
31
|
+
document.getElementById('preview').innerHTML = editor.getContent();
|
32
|
+
uParse('#preview',{
|
33
|
+
rootPath : '../../',
|
34
|
+
chartContainerHeight:500
|
35
|
+
})
|
36
|
+
dialog.oncancel = function(){
|
37
|
+
document.getElementById('preview').innerHTML = '';
|
38
|
+
}
|
39
|
+
</script>
|
40
|
+
</html>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|