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,102 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/html4/loose.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<title></title>
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
7
|
+
<script type="text/javascript" src="../internal.js"></script>
|
8
|
+
<style type="text/css">
|
9
|
+
.warpper{ position:relative;width: 380px; height: 100%; margin: 10px auto;}
|
10
|
+
.tabbody{height: 160px;}
|
11
|
+
.tabbody table{width:100%;border-collapse: separate;border-spacing: 3px;}
|
12
|
+
.tabbody .panel{width:373px;height:100%;padding-left: 5px;position: absolute;background-color: #fff;}
|
13
|
+
.tabbody input.int{ width:190px;height:21px;border:1px solid #d7d7d7;line-height:21px;}
|
14
|
+
.tabbody input.btn{padding: 0 5px; text-align:center;line-height:24px; text-decoration: none;height:24px;background:url("../../themes/default/images/dialog-title-bg.png") repeat-x;border:1px solid #ccc; }
|
15
|
+
</style>
|
16
|
+
</head>
|
17
|
+
<body>
|
18
|
+
<div class="warpper" id="searchtab">
|
19
|
+
<div id="head" class="tabhead">
|
20
|
+
<span tabsrc="find" class="focus"><var id="lang_tab_search"></var></span>
|
21
|
+
<span tabsrc="replace" ><var id="lang_tab_replace"></var></span>
|
22
|
+
</div>
|
23
|
+
<div class="tabbody">
|
24
|
+
<div class="panel" id="find">
|
25
|
+
<table>
|
26
|
+
<tr>
|
27
|
+
<td width="80"><var id="lang_search1"></var>: </td>
|
28
|
+
<td><input id="findtxt" type="text" class="int" /></td>
|
29
|
+
</tr>
|
30
|
+
<!--<tr>-->
|
31
|
+
|
32
|
+
<!--<td colspan="2"><span style="color:red"><var id="lang_searchReg"></var></span></td>-->
|
33
|
+
<!--</tr>-->
|
34
|
+
<tr>
|
35
|
+
<td><var id="lang_case_sensitive1"></var></td>
|
36
|
+
<td>
|
37
|
+
<input id="matchCase" type="checkbox" />
|
38
|
+
</td>
|
39
|
+
</tr>
|
40
|
+
<tr>
|
41
|
+
<td colspan="2">
|
42
|
+
<input id="nextFindBtn" type="button" class="btn" />
|
43
|
+
<input id="preFindBtn" type="button" class="btn" />
|
44
|
+
</td>
|
45
|
+
</tr>
|
46
|
+
<tr>
|
47
|
+
<td colspan="2">
|
48
|
+
|
49
|
+
</td>
|
50
|
+
</tr>
|
51
|
+
<tr>
|
52
|
+
<td colspan="2">
|
53
|
+
<span id="search-msg" style="color:red"></span>
|
54
|
+
</td>
|
55
|
+
</tr>
|
56
|
+
</table>
|
57
|
+
</div>
|
58
|
+
<div class="panel" id="replace">
|
59
|
+
<table>
|
60
|
+
<tr>
|
61
|
+
<td width="80"><var id="lang_search2"></var>: </td>
|
62
|
+
<td><input id="findtxt1" type="text" class="int" /></td>
|
63
|
+
</tr>
|
64
|
+
<!--<tr>-->
|
65
|
+
|
66
|
+
<!--<td colspan="2"><span style="color:red"><var id="lang_searchReg1"></var></span></td>-->
|
67
|
+
<!--</tr>-->
|
68
|
+
<tr>
|
69
|
+
<td><var id="lang_replace"></var>: </td>
|
70
|
+
<td><input id="replacetxt" type="text" class="int" /></td>
|
71
|
+
</tr>
|
72
|
+
<tr>
|
73
|
+
<td><var id="lang_case_sensitive2"></var></td>
|
74
|
+
<td>
|
75
|
+
<input id="matchCase1" type="checkbox" />
|
76
|
+
</td>
|
77
|
+
</tr>
|
78
|
+
<tr>
|
79
|
+
<td colspan="2">
|
80
|
+
<input id="nextReplaceBtn" type="button" class="btn" />
|
81
|
+
<input id="preReplaceBtn" type="button" class="btn" />
|
82
|
+
<input id="repalceBtn" type="button" class="btn" />
|
83
|
+
<input id="repalceAllBtn" type="button" class="btn" />
|
84
|
+
</td>
|
85
|
+
</tr>
|
86
|
+
<tr>
|
87
|
+
<td colspan="2">
|
88
|
+
|
89
|
+
</td>
|
90
|
+
</tr>
|
91
|
+
<tr>
|
92
|
+
<td colspan="2">
|
93
|
+
<span id="replace-msg" style="color:red"></span>
|
94
|
+
</td>
|
95
|
+
</tr>
|
96
|
+
</table>
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
</div>
|
100
|
+
<script type="text/javascript" src="searchreplace.js"></script>
|
101
|
+
</body>
|
102
|
+
</html>
|
@@ -0,0 +1,164 @@
|
|
1
|
+
/**
|
2
|
+
* Created with JetBrains PhpStorm.
|
3
|
+
* User: xuheng
|
4
|
+
* Date: 12-9-26
|
5
|
+
* Time: 下午12:29
|
6
|
+
* To change this template use File | Settings | File Templates.
|
7
|
+
*/
|
8
|
+
|
9
|
+
//清空上次查选的痕迹
|
10
|
+
editor.firstForSR = 0;
|
11
|
+
editor.currentRangeForSR = null;
|
12
|
+
//给tab注册切换事件
|
13
|
+
/**
|
14
|
+
* tab点击处理事件
|
15
|
+
* @param tabHeads
|
16
|
+
* @param tabBodys
|
17
|
+
* @param obj
|
18
|
+
*/
|
19
|
+
function clickHandler( tabHeads,tabBodys,obj ) {
|
20
|
+
//head样式更改
|
21
|
+
for ( var k = 0, len = tabHeads.length; k < len; k++ ) {
|
22
|
+
tabHeads[k].className = "";
|
23
|
+
}
|
24
|
+
obj.className = "focus";
|
25
|
+
//body显隐
|
26
|
+
var tabSrc = obj.getAttribute( "tabSrc" );
|
27
|
+
for ( var j = 0, length = tabBodys.length; j < length; j++ ) {
|
28
|
+
var body = tabBodys[j],
|
29
|
+
id = body.getAttribute( "id" );
|
30
|
+
if ( id != tabSrc ) {
|
31
|
+
body.style.zIndex = 1;
|
32
|
+
} else {
|
33
|
+
body.style.zIndex = 200;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
/**
|
40
|
+
* TAB切换
|
41
|
+
* @param tabParentId tab的父节点ID或者对象本身
|
42
|
+
*/
|
43
|
+
function switchTab( tabParentId ) {
|
44
|
+
var tabElements = $G( tabParentId ).children,
|
45
|
+
tabHeads = tabElements[0].children,
|
46
|
+
tabBodys = tabElements[1].children;
|
47
|
+
|
48
|
+
for ( var i = 0, length = tabHeads.length; i < length; i++ ) {
|
49
|
+
var head = tabHeads[i];
|
50
|
+
if ( head.className === "focus" )clickHandler(tabHeads,tabBodys, head );
|
51
|
+
head.onclick = function () {
|
52
|
+
clickHandler(tabHeads,tabBodys,this);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
$G('searchtab').onmousedown = function(){
|
57
|
+
$G('search-msg').innerHTML = '';
|
58
|
+
$G('replace-msg').innerHTML = ''
|
59
|
+
}
|
60
|
+
//是否区分大小写
|
61
|
+
function getMatchCase(id) {
|
62
|
+
return $G(id).checked ? true : false;
|
63
|
+
}
|
64
|
+
//查找
|
65
|
+
$G("nextFindBtn").onclick = function (txt, dir, mcase) {
|
66
|
+
var findtxt = $G("findtxt").value, obj;
|
67
|
+
if (!findtxt) {
|
68
|
+
return false;
|
69
|
+
}
|
70
|
+
obj = {
|
71
|
+
searchStr:findtxt,
|
72
|
+
dir:1,
|
73
|
+
casesensitive:getMatchCase("matchCase")
|
74
|
+
};
|
75
|
+
if (!frCommond(obj)) {
|
76
|
+
var bk = editor.selection.getRange().createBookmark();
|
77
|
+
$G('search-msg').innerHTML = lang.getEnd;
|
78
|
+
editor.selection.getRange().moveToBookmark(bk).select();
|
79
|
+
|
80
|
+
|
81
|
+
}
|
82
|
+
};
|
83
|
+
$G("nextReplaceBtn").onclick = function (txt, dir, mcase) {
|
84
|
+
var findtxt = $G("findtxt1").value, obj;
|
85
|
+
if (!findtxt) {
|
86
|
+
return false;
|
87
|
+
}
|
88
|
+
obj = {
|
89
|
+
searchStr:findtxt,
|
90
|
+
dir:1,
|
91
|
+
casesensitive:getMatchCase("matchCase1")
|
92
|
+
};
|
93
|
+
frCommond(obj);
|
94
|
+
};
|
95
|
+
$G("preFindBtn").onclick = function (txt, dir, mcase) {
|
96
|
+
var findtxt = $G("findtxt").value, obj;
|
97
|
+
if (!findtxt) {
|
98
|
+
return false;
|
99
|
+
}
|
100
|
+
obj = {
|
101
|
+
searchStr:findtxt,
|
102
|
+
dir:-1,
|
103
|
+
casesensitive:getMatchCase("matchCase")
|
104
|
+
};
|
105
|
+
if (!frCommond(obj)) {
|
106
|
+
$G('search-msg').innerHTML = lang.getStart;
|
107
|
+
}
|
108
|
+
};
|
109
|
+
$G("preReplaceBtn").onclick = function (txt, dir, mcase) {
|
110
|
+
var findtxt = $G("findtxt1").value, obj;
|
111
|
+
if (!findtxt) {
|
112
|
+
return false;
|
113
|
+
}
|
114
|
+
obj = {
|
115
|
+
searchStr:findtxt,
|
116
|
+
dir:-1,
|
117
|
+
casesensitive:getMatchCase("matchCase1")
|
118
|
+
};
|
119
|
+
frCommond(obj);
|
120
|
+
};
|
121
|
+
//替换
|
122
|
+
$G("repalceBtn").onclick = function () {
|
123
|
+
var findtxt = $G("findtxt1").value.replace(/^\s|\s$/g, ""), obj,
|
124
|
+
replacetxt = $G("replacetxt").value.replace(/^\s|\s$/g, "");
|
125
|
+
if (!findtxt) {
|
126
|
+
return false;
|
127
|
+
}
|
128
|
+
if (findtxt == replacetxt || (!getMatchCase("matchCase1") && findtxt.toLowerCase() == replacetxt.toLowerCase())) {
|
129
|
+
return false;
|
130
|
+
}
|
131
|
+
obj = {
|
132
|
+
searchStr:findtxt,
|
133
|
+
dir:1,
|
134
|
+
casesensitive:getMatchCase("matchCase1"),
|
135
|
+
replaceStr:replacetxt
|
136
|
+
};
|
137
|
+
frCommond(obj);
|
138
|
+
};
|
139
|
+
//全部替换
|
140
|
+
$G("repalceAllBtn").onclick = function () {
|
141
|
+
var findtxt = $G("findtxt1").value.replace(/^\s|\s$/g, ""), obj,
|
142
|
+
replacetxt = $G("replacetxt").value.replace(/^\s|\s$/g, "");
|
143
|
+
if (!findtxt) {
|
144
|
+
return false;
|
145
|
+
}
|
146
|
+
if (findtxt == replacetxt || (!getMatchCase("matchCase1") && findtxt.toLowerCase() == replacetxt.toLowerCase())) {
|
147
|
+
return false;
|
148
|
+
}
|
149
|
+
obj = {
|
150
|
+
searchStr:findtxt,
|
151
|
+
casesensitive:getMatchCase("matchCase1"),
|
152
|
+
replaceStr:replacetxt,
|
153
|
+
all:true
|
154
|
+
};
|
155
|
+
var num = frCommond(obj);
|
156
|
+
if (num) {
|
157
|
+
$G('replace-msg').innerHTML = lang.countMsg.replace("{#count}", num);
|
158
|
+
}
|
159
|
+
};
|
160
|
+
//执行
|
161
|
+
var frCommond = function (obj) {
|
162
|
+
return editor.execCommand("searchreplace", obj);
|
163
|
+
};
|
164
|
+
switchTab("searchtab");
|
@@ -0,0 +1,58 @@
|
|
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
|
+
<style type="text/css">
|
8
|
+
*{color: #838383}
|
9
|
+
html,body {
|
10
|
+
font-size: 12px;
|
11
|
+
width:100%;
|
12
|
+
height:100%;
|
13
|
+
overflow: hidden;
|
14
|
+
margin:0px;
|
15
|
+
padding:0px;
|
16
|
+
}
|
17
|
+
h2 { font-size: 16px; margin: 20px auto;}
|
18
|
+
.content{
|
19
|
+
padding:5px 15px 0 15px;
|
20
|
+
height:100%;
|
21
|
+
}
|
22
|
+
dt,dd { margin-left: 0; padding-left: 0;}
|
23
|
+
dt a { display: block;
|
24
|
+
height: 30px;
|
25
|
+
line-height: 30px;
|
26
|
+
width: 55px;
|
27
|
+
background: #EFEFEF;
|
28
|
+
border: 1px solid #CCC;
|
29
|
+
padding: 0 10px;
|
30
|
+
text-decoration: none;
|
31
|
+
}
|
32
|
+
dt a:hover{
|
33
|
+
background: #e0e0e0;
|
34
|
+
border-color: #999
|
35
|
+
}
|
36
|
+
dt a:active{
|
37
|
+
background: #ccc;
|
38
|
+
border-color: #999;
|
39
|
+
color: #666;
|
40
|
+
}
|
41
|
+
dd { line-height:20px;margin-top: 10px;}
|
42
|
+
span{ padding-right:4px;}
|
43
|
+
input{width:210px;height:21px;background: #FFF;border:1px solid #d7d7d7;padding: 0px; margin: 0px; }
|
44
|
+
|
45
|
+
|
46
|
+
</style>
|
47
|
+
</head>
|
48
|
+
<body>
|
49
|
+
<div class="content">
|
50
|
+
<h2><var id="lang_showMsg"></var></h2>
|
51
|
+
<dl>
|
52
|
+
<dt><a href="../../third-party/snapscreen/UEditorSnapscreen.exe" target="_blank" id="downlink"><var id="lang_download"></var></a></dt>
|
53
|
+
<dd><var id="lang_step1"></var></dd>
|
54
|
+
<dd><var id="lang_step2"></var></dd>
|
55
|
+
</dl>
|
56
|
+
</div>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/html4/loose.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<title></title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
|
7
|
+
<script type="text/javascript" src="../internal.js"></script>
|
8
|
+
<style type="text/css">
|
9
|
+
html,body{overflow:hidden;}
|
10
|
+
#specharsTab{width: 97%;margin: 10px auto; zoom:1;position: relative}
|
11
|
+
.tabbody {height:447px;}
|
12
|
+
.tabbody span{ margin: 5px 3px;text-align: center;display:inline-block;width: 40px;height:16px;line-height: 16px;cursor: pointer; }
|
13
|
+
</style>
|
14
|
+
</head>
|
15
|
+
<body>
|
16
|
+
<div id="specharsTab">
|
17
|
+
<div id="tabHeads" class="tabhead"></div><div id="tabBodys" class="tabbody"></div>
|
18
|
+
</div>
|
19
|
+
<script type="text/javascript" src="spechars.js"></script>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/**
|
2
|
+
* Created with JetBrains PhpStorm.
|
3
|
+
* User: xuheng
|
4
|
+
* Date: 12-9-26
|
5
|
+
* Time: 下午1:09
|
6
|
+
* To change this template use File | Settings | File Templates.
|
7
|
+
*/
|
8
|
+
var charsContent = [
|
9
|
+
{ name:"tsfh", title:lang.tsfh, content:toArray("、,。,·,ˉ,ˇ,¨,〃,々,—,~,‖,…,‘,’,“,”,〔,〕,〈,〉,《,》,「,」,『,』,〖,〗,【,】,±,×,÷,∶,∧,∨,∑,∏,∪,∩,∈,∷,√,⊥,∥,∠,⌒,⊙,∫,∮,≡,≌,≈,∽,∝,≠,≮,≯,≤,≥,∞,∵,∴,♂,♀,°,′,″,℃,$,¤,¢,£,‰,§,№,☆,★,○,●,◎,◇,◆,□,■,△,▲,※,→,←,↑,↓,〓,〡,〢,〣,〤,〥,〦,〧,〨,〩,㊣,㎎,㎏,㎜,㎝,㎞,㎡,㏄,㏎,㏑,㏒,㏕,︰,¬,¦,℡,ˊ,ˋ,˙,–,―,‥,‵,℅,℉,↖,↗,↘,↙,∕,∟,∣,≒,≦,≧,⊿,═,║,╒,╓,╔,╕,╖,╗,╘,╙,╚,╛,╜,╝,╞,╟,╠,╡,╢,╣,╤,╥,╦,╧,╨,╩,╪,╫,╬,╭,╮,╯,╰,╱,╲,╳,▁,▂,▃,▄,▅,▆,▇,�,█,▉,▊,▋,▌,▍,▎,▏,▓,▔,▕,▼,▽,◢,◣,◤,◥,☉,⊕,〒,〝,〞")},
|
10
|
+
{ name:"lmsz", title:lang.lmsz, content:toArray("ⅰ,ⅱ,ⅲ,ⅳ,ⅴ,ⅵ,ⅶ,ⅷ,ⅸ,ⅹ,Ⅰ,Ⅱ,Ⅲ,Ⅳ,Ⅴ,Ⅵ,Ⅶ,Ⅷ,Ⅸ,Ⅹ,Ⅺ,Ⅻ")},
|
11
|
+
{ name:"szfh", title:lang.szfh, content:toArray("⒈,⒉,⒊,⒋,⒌,⒍,⒎,⒏,⒐,⒑,⒒,⒓,⒔,⒕,⒖,⒗,⒘,⒙,⒚,⒛,⑴,⑵,⑶,⑷,⑸,⑹,⑺,⑻,⑼,⑽,⑾,⑿,⒀,⒁,⒂,⒃,⒄,⒅,⒆,⒇,①,②,③,④,⑤,⑥,⑦,⑧,⑨,⑩,㈠,㈡,㈢,㈣,㈤,㈥,㈦,㈧,㈨,㈩")},
|
12
|
+
{ name:"rwfh", title:lang.rwfh, content:toArray("ぁ,あ,ぃ,い,ぅ,う,ぇ,え,ぉ,お,か,が,き,ぎ,く,ぐ,け,げ,こ,ご,さ,ざ,し,じ,す,ず,せ,ぜ,そ,ぞ,た,だ,ち,ぢ,っ,つ,づ,て,で,と,ど,な,に,ぬ,ね,の,は,ば,ぱ,ひ,び,ぴ,ふ,ぶ,ぷ,へ,べ,ぺ,ほ,ぼ,ぽ,ま,み,む,め,も,ゃ,や,ゅ,ゆ,ょ,よ,ら,り,る,れ,ろ,ゎ,わ,ゐ,ゑ,を,ん,ァ,ア,ィ,イ,ゥ,ウ,ェ,エ,ォ,オ,カ,ガ,キ,ギ,ク,グ,ケ,ゲ,コ,ゴ,サ,ザ,シ,ジ,ス,ズ,セ,ゼ,ソ,ゾ,タ,ダ,チ,ヂ,ッ,ツ,ヅ,テ,デ,ト,ド,ナ,ニ,ヌ,ネ,ノ,ハ,バ,パ,ヒ,ビ,ピ,フ,ブ,プ,ヘ,ベ,ペ,ホ,ボ,ポ,マ,ミ,ム,メ,モ,ャ,ヤ,ュ,ユ,ョ,ヨ,ラ,リ,ル,レ,ロ,ヮ,ワ,ヰ,ヱ,ヲ,ン,ヴ,ヵ,ヶ")},
|
13
|
+
{ name:"xlzm", title:lang.xlzm, content:toArray("Α,Β,Γ,Δ,Ε,Ζ,Η,Θ,Ι,Κ,Λ,Μ,Ν,Ξ,Ο,Π,Ρ,Σ,Τ,Υ,Φ,Χ,Ψ,Ω,α,β,γ,δ,ε,ζ,η,θ,ι,κ,λ,μ,ν,ξ,ο,π,ρ,σ,τ,υ,φ,χ,ψ,ω")},
|
14
|
+
{ name:"ewzm", title:lang.ewzm, content:toArray("А,Б,В,Г,Д,Е,Ё,Ж,З,И,Й,К,Л,М,Н,О,П,Р,С,Т,У,Ф,Х,Ц,Ч,Ш,Щ,Ъ,Ы,Ь,Э,Ю,Я,а,б,в,г,д,е,ё,ж,з,и,й,к,л,м,н,о,п,р,с,т,у,ф,х,ц,ч,ш,щ,ъ,ы,ь,э,ю,я")},
|
15
|
+
{ name:"pyzm", title:lang.pyzm, content:toArray("ā,á,ǎ,à,ē,é,ě,è,ī,í,ǐ,ì,ō,ó,ǒ,ò,ū,ú,ǔ,ù,ǖ,ǘ,ǚ,ǜ,ü")},
|
16
|
+
{ name:"yyyb", title:lang.yyyb, content:toArray("i:,i,e,æ,ʌ,ə:,ə,u:,u,ɔ:,ɔ,a:,ei,ai,ɔi,əu,au,iə,εə,uə,p,t,k,b,d,g,f,s,ʃ,θ,h,v,z,ʒ,ð,tʃ,tr,ts,dʒ,dr,dz,m,n,ŋ,l,r,w,j,")},
|
17
|
+
{ name:"zyzf", title:lang.zyzf, content:toArray("ㄅ,ㄆ,ㄇ,ㄈ,ㄉ,ㄊ,ㄋ,ㄌ,ㄍ,ㄎ,ㄏ,ㄐ,ㄑ,ㄒ,ㄓ,ㄔ,ㄕ,ㄖ,ㄗ,ㄘ,ㄙ,ㄚ,ㄛ,ㄜ,ㄝ,ㄞ,ㄟ,ㄠ,ㄡ,ㄢ,ㄣ,ㄤ,ㄥ,ㄦ,ㄧ,ㄨ")}
|
18
|
+
];
|
19
|
+
(function createTab(content) {
|
20
|
+
for (var i = 0, ci; ci = content[i++];) {
|
21
|
+
var span = document.createElement("span");
|
22
|
+
span.setAttribute("tabSrc", ci.name);
|
23
|
+
span.innerHTML = ci.title;
|
24
|
+
if (i == 1)span.className = "focus";
|
25
|
+
domUtils.on(span, "click", function () {
|
26
|
+
var tmps = $G("tabHeads").children;
|
27
|
+
for (var k = 0, sk; sk = tmps[k++];) {
|
28
|
+
sk.className = "";
|
29
|
+
}
|
30
|
+
tmps = $G("tabBodys").children;
|
31
|
+
for (var k = 0, sk; sk = tmps[k++];) {
|
32
|
+
sk.style.display = "none";
|
33
|
+
}
|
34
|
+
this.className = "focus";
|
35
|
+
$G(this.getAttribute("tabSrc")).style.display = "";
|
36
|
+
});
|
37
|
+
$G("tabHeads").appendChild(span);
|
38
|
+
domUtils.insertAfter(span, document.createTextNode("\n"));
|
39
|
+
var div = document.createElement("div");
|
40
|
+
div.id = ci.name;
|
41
|
+
div.style.display = (i == 1) ? "" : "none";
|
42
|
+
var cons = ci.content;
|
43
|
+
for (var j = 0, con; con = cons[j++];) {
|
44
|
+
var charSpan = document.createElement("span");
|
45
|
+
charSpan.innerHTML = con;
|
46
|
+
domUtils.on(charSpan, "click", function () {
|
47
|
+
editor.execCommand("insertHTML", this.innerHTML);
|
48
|
+
dialog.close();
|
49
|
+
});
|
50
|
+
div.appendChild(charSpan);
|
51
|
+
}
|
52
|
+
$G("tabBodys").appendChild(div);
|
53
|
+
}
|
54
|
+
})(charsContent);
|
55
|
+
function toArray(str) {
|
56
|
+
return str.split(",");
|
57
|
+
}
|
Binary file
|
@@ -0,0 +1,84 @@
|
|
1
|
+
body{
|
2
|
+
overflow: hidden;
|
3
|
+
width: 540px;
|
4
|
+
}
|
5
|
+
.wrapper {
|
6
|
+
margin: 10px auto 0;
|
7
|
+
font-size: 12px;
|
8
|
+
overflow: hidden;
|
9
|
+
width: 520px;
|
10
|
+
height: 315px;
|
11
|
+
}
|
12
|
+
|
13
|
+
.clear {
|
14
|
+
clear: both;
|
15
|
+
}
|
16
|
+
|
17
|
+
.wrapper .left {
|
18
|
+
float: left;
|
19
|
+
margin-left: 10px;;
|
20
|
+
}
|
21
|
+
|
22
|
+
.wrapper .right {
|
23
|
+
float: right;
|
24
|
+
border-left: 2px dotted #EDEDED;
|
25
|
+
padding-left: 15px;
|
26
|
+
}
|
27
|
+
|
28
|
+
.section {
|
29
|
+
margin-bottom: 15px;
|
30
|
+
width: 240px;
|
31
|
+
overflow: hidden;
|
32
|
+
}
|
33
|
+
|
34
|
+
.section h3 {
|
35
|
+
font-weight: bold;
|
36
|
+
padding: 5px 0;
|
37
|
+
margin-bottom: 10px;
|
38
|
+
border-bottom: 1px solid #EDEDED;
|
39
|
+
font-size: 12px;
|
40
|
+
}
|
41
|
+
|
42
|
+
.section ul {
|
43
|
+
list-style: none;
|
44
|
+
overflow: hidden;
|
45
|
+
clear: both;
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
.section li {
|
50
|
+
float: left;
|
51
|
+
width: 120px;;
|
52
|
+
}
|
53
|
+
|
54
|
+
.section .tone {
|
55
|
+
width: 80px;;
|
56
|
+
}
|
57
|
+
|
58
|
+
.section .preview {
|
59
|
+
width: 220px;
|
60
|
+
}
|
61
|
+
|
62
|
+
.section .preview table {
|
63
|
+
text-align: center;
|
64
|
+
vertical-align: middle;
|
65
|
+
color: #666;
|
66
|
+
}
|
67
|
+
|
68
|
+
.section .preview caption {
|
69
|
+
font-weight: bold;
|
70
|
+
}
|
71
|
+
|
72
|
+
.section .preview td {
|
73
|
+
border-width: 1px;
|
74
|
+
border-style: solid;
|
75
|
+
height: 22px;
|
76
|
+
}
|
77
|
+
|
78
|
+
.section .preview th {
|
79
|
+
border-style: solid;
|
80
|
+
border-color: #DDD;
|
81
|
+
border-width: 2px 1px 1px 1px;
|
82
|
+
height: 22px;
|
83
|
+
background-color: #F7F7F7;
|
84
|
+
}
|