@lingxiteam/lcdp-ueditor-react 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/LcdpUeditor.d.ts +74 -0
- package/es/LcdpUeditor.js +335 -0
- package/es/const.d.ts +12 -0
- package/es/const.js +19 -0
- package/es/defaultConfig.json +77 -0
- package/es/index.d.ts +4 -0
- package/es/index.js +3 -0
- package/es/tools/UeditorResourceLoader.d.ts +21 -0
- package/es/tools/UeditorResourceLoader.js +114 -0
- package/es/tools/loadScript.d.ts +5 -0
- package/es/tools/loadScript.js +54 -0
- package/es/type.d.ts +142 -0
- package/es/type.js +1 -0
- package/package.json +32 -0
- package/ueditor-resource/dialogs/anchor/anchor.html +62 -0
- package/ueditor-resource/dialogs/attachment/attachment.css +716 -0
- package/ueditor-resource/dialogs/attachment/attachment.html +61 -0
- package/ueditor-resource/dialogs/attachment/attachment.js +803 -0
- package/ueditor-resource/dialogs/attachment/images/alignicon.gif +0 -0
- package/ueditor-resource/dialogs/attachment/images/alignicon.png +0 -0
- package/ueditor-resource/dialogs/attachment/images/bg.png +0 -0
- package/ueditor-resource/dialogs/attachment/images/file-icons.gif +0 -0
- package/ueditor-resource/dialogs/attachment/images/file-icons.png +0 -0
- package/ueditor-resource/dialogs/attachment/images/icons.gif +0 -0
- package/ueditor-resource/dialogs/attachment/images/icons.png +0 -0
- package/ueditor-resource/dialogs/attachment/images/image.png +0 -0
- package/ueditor-resource/dialogs/attachment/images/progress.png +0 -0
- package/ueditor-resource/dialogs/attachment/images/success.gif +0 -0
- package/ueditor-resource/dialogs/attachment/images/success.png +0 -0
- package/ueditor-resource/dialogs/audio/audio.css +879 -0
- package/ueditor-resource/dialogs/audio/audio.html +94 -0
- package/ueditor-resource/dialogs/audio/audio.js +815 -0
- package/ueditor-resource/dialogs/audio/icon/center-active.png +0 -0
- package/ueditor-resource/dialogs/audio/icon/center.png +0 -0
- package/ueditor-resource/dialogs/audio/icon/img.png +0 -0
- package/ueditor-resource/dialogs/audio/icon/left-active.png +0 -0
- package/ueditor-resource/dialogs/audio/icon/left.png +0 -0
- package/ueditor-resource/dialogs/audio/icon/none-active.png +0 -0
- package/ueditor-resource/dialogs/audio/icon/none.png +0 -0
- package/ueditor-resource/dialogs/audio/icon/right-active.png +0 -0
- package/ueditor-resource/dialogs/audio/icon/right.png +0 -0
- package/ueditor-resource/dialogs/audio/images/bg.png +0 -0
- package/ueditor-resource/dialogs/audio/images/center_focus.jpg +0 -0
- package/ueditor-resource/dialogs/audio/images/file-icons.gif +0 -0
- package/ueditor-resource/dialogs/audio/images/file-icons.png +0 -0
- package/ueditor-resource/dialogs/audio/images/icons.gif +0 -0
- package/ueditor-resource/dialogs/audio/images/icons.png +0 -0
- package/ueditor-resource/dialogs/audio/images/image.png +0 -0
- package/ueditor-resource/dialogs/audio/images/left_focus.jpg +0 -0
- package/ueditor-resource/dialogs/audio/images/none_focus.jpg +0 -0
- package/ueditor-resource/dialogs/audio/images/progress.png +0 -0
- package/ueditor-resource/dialogs/audio/images/right_focus.jpg +0 -0
- package/ueditor-resource/dialogs/audio/images/success.gif +0 -0
- package/ueditor-resource/dialogs/audio/images/success.png +0 -0
- package/ueditor-resource/dialogs/background/background.css +193 -0
- package/ueditor-resource/dialogs/background/background.html +59 -0
- package/ueditor-resource/dialogs/background/background.js +370 -0
- package/ueditor-resource/dialogs/background/images/bg.png +0 -0
- package/ueditor-resource/dialogs/background/images/success.png +0 -0
- package/ueditor-resource/dialogs/contentimport/contentimport.html +176 -0
- package/ueditor-resource/dialogs/contentimport/contentimport.js +91 -0
- package/ueditor-resource/dialogs/emotion/emotion.css +129 -0
- package/ueditor-resource/dialogs/emotion/emotion.html +70 -0
- package/ueditor-resource/dialogs/emotion/emotion.js +186 -0
- package/ueditor-resource/dialogs/emotion/images/0.gif +0 -0
- package/ueditor-resource/dialogs/emotion/images/bface.gif +0 -0
- package/ueditor-resource/dialogs/emotion/images/cface.gif +0 -0
- package/ueditor-resource/dialogs/emotion/images/fface.gif +0 -0
- package/ueditor-resource/dialogs/emotion/images/jxface2.gif +0 -0
- package/ueditor-resource/dialogs/emotion/images/neweditor-tab-bg.png +0 -0
- package/ueditor-resource/dialogs/emotion/images/tface.gif +0 -0
- package/ueditor-resource/dialogs/emotion/images/wface.gif +0 -0
- package/ueditor-resource/dialogs/emotion/images/yface.gif +0 -0
- package/ueditor-resource/dialogs/formula/formula.html +98 -0
- package/ueditor-resource/dialogs/formula/formula.js +147 -0
- package/ueditor-resource/dialogs/help/help.css +37 -0
- package/ueditor-resource/dialogs/help/help.html +82 -0
- package/ueditor-resource/dialogs/help/help.js +57 -0
- package/ueditor-resource/dialogs/image/icon/center-active.png +0 -0
- package/ueditor-resource/dialogs/image/icon/center.png +0 -0
- package/ueditor-resource/dialogs/image/icon/img.png +0 -0
- package/ueditor-resource/dialogs/image/icon/left-active.png +0 -0
- package/ueditor-resource/dialogs/image/icon/left.png +0 -0
- package/ueditor-resource/dialogs/image/icon/none-active.png +0 -0
- package/ueditor-resource/dialogs/image/icon/none.png +0 -0
- package/ueditor-resource/dialogs/image/icon/right-active.png +0 -0
- package/ueditor-resource/dialogs/image/icon/right.png +0 -0
- package/ueditor-resource/dialogs/image/image.css +768 -0
- package/ueditor-resource/dialogs/image/image.html +145 -0
- package/ueditor-resource/dialogs/image/image.js +1060 -0
- package/ueditor-resource/dialogs/image/images/alignicon.jpg +0 -0
- package/ueditor-resource/dialogs/image/images/bg.png +0 -0
- package/ueditor-resource/dialogs/image/images/icons.gif +0 -0
- package/ueditor-resource/dialogs/image/images/icons.png +0 -0
- package/ueditor-resource/dialogs/image/images/image.png +0 -0
- package/ueditor-resource/dialogs/image/images/progress.png +0 -0
- package/ueditor-resource/dialogs/image/images/success.gif +0 -0
- package/ueditor-resource/dialogs/image/images/success.png +0 -0
- package/ueditor-resource/dialogs/insertframe/insertframe.html +135 -0
- package/ueditor-resource/dialogs/internal.js +81 -0
- package/ueditor-resource/dialogs/link/link.html +148 -0
- package/ueditor-resource/dialogs/preview/preview.html +45 -0
- package/ueditor-resource/dialogs/scrawl/images/addimg.png +0 -0
- package/ueditor-resource/dialogs/scrawl/images/brush.png +0 -0
- package/ueditor-resource/dialogs/scrawl/images/delimg.png +0 -0
- package/ueditor-resource/dialogs/scrawl/images/delimgH.png +0 -0
- package/ueditor-resource/dialogs/scrawl/images/empty.png +0 -0
- package/ueditor-resource/dialogs/scrawl/images/emptyH.png +0 -0
- package/ueditor-resource/dialogs/scrawl/images/eraser.png +0 -0
- package/ueditor-resource/dialogs/scrawl/images/redo.png +0 -0
- package/ueditor-resource/dialogs/scrawl/images/redoH.png +0 -0
- package/ueditor-resource/dialogs/scrawl/images/scale.png +0 -0
- package/ueditor-resource/dialogs/scrawl/images/scaleH.png +0 -0
- package/ueditor-resource/dialogs/scrawl/images/size.png +0 -0
- package/ueditor-resource/dialogs/scrawl/images/undo.png +0 -0
- package/ueditor-resource/dialogs/scrawl/images/undoH.png +0 -0
- package/ueditor-resource/dialogs/scrawl/scrawl.css +324 -0
- package/ueditor-resource/dialogs/scrawl/scrawl.html +95 -0
- package/ueditor-resource/dialogs/scrawl/scrawl.js +682 -0
- package/ueditor-resource/dialogs/searchreplace/searchreplace.html +144 -0
- package/ueditor-resource/dialogs/searchreplace/searchreplace.js +174 -0
- package/ueditor-resource/dialogs/spechars/spechars.html +42 -0
- package/ueditor-resource/dialogs/spechars/spechars.js +86 -0
- package/ueditor-resource/dialogs/table/dragicon.png +0 -0
- package/ueditor-resource/dialogs/table/edittable.css +85 -0
- package/ueditor-resource/dialogs/table/edittable.html +69 -0
- package/ueditor-resource/dialogs/table/edittable.js +241 -0
- package/ueditor-resource/dialogs/table/edittd.html +62 -0
- package/ueditor-resource/dialogs/table/edittip.html +33 -0
- package/ueditor-resource/dialogs/template/config.js +42 -0
- package/ueditor-resource/dialogs/template/images/bg.gif +0 -0
- package/ueditor-resource/dialogs/template/images/pre0.png +0 -0
- package/ueditor-resource/dialogs/template/images/pre1.png +0 -0
- package/ueditor-resource/dialogs/template/images/pre2.png +0 -0
- package/ueditor-resource/dialogs/template/images/pre3.png +0 -0
- package/ueditor-resource/dialogs/template/images/pre4.png +0 -0
- package/ueditor-resource/dialogs/template/template.css +99 -0
- package/ueditor-resource/dialogs/template/template.html +26 -0
- package/ueditor-resource/dialogs/template/template.js +53 -0
- package/ueditor-resource/dialogs/video/icon/center-active.png +0 -0
- package/ueditor-resource/dialogs/video/icon/center.png +0 -0
- package/ueditor-resource/dialogs/video/icon/img.png +0 -0
- package/ueditor-resource/dialogs/video/icon/left-active.png +0 -0
- package/ueditor-resource/dialogs/video/icon/left.png +0 -0
- package/ueditor-resource/dialogs/video/icon/none-active.png +0 -0
- package/ueditor-resource/dialogs/video/icon/none.png +0 -0
- package/ueditor-resource/dialogs/video/icon/right-active.png +0 -0
- package/ueditor-resource/dialogs/video/icon/right.png +0 -0
- package/ueditor-resource/dialogs/video/images/bg.png +0 -0
- package/ueditor-resource/dialogs/video/images/center_focus.jpg +0 -0
- package/ueditor-resource/dialogs/video/images/file-icons.gif +0 -0
- package/ueditor-resource/dialogs/video/images/file-icons.png +0 -0
- package/ueditor-resource/dialogs/video/images/icons.gif +0 -0
- package/ueditor-resource/dialogs/video/images/icons.png +0 -0
- package/ueditor-resource/dialogs/video/images/image.png +0 -0
- package/ueditor-resource/dialogs/video/images/left_focus.jpg +0 -0
- package/ueditor-resource/dialogs/video/images/none_focus.jpg +0 -0
- package/ueditor-resource/dialogs/video/images/progress.png +0 -0
- package/ueditor-resource/dialogs/video/images/right_focus.jpg +0 -0
- package/ueditor-resource/dialogs/video/images/success.gif +0 -0
- package/ueditor-resource/dialogs/video/images/success.png +0 -0
- package/ueditor-resource/dialogs/video/video.css +909 -0
- package/ueditor-resource/dialogs/video/video.html +115 -0
- package/ueditor-resource/dialogs/video/video.js +867 -0
- package/ueditor-resource/dialogs/wordimage/wordimage.html +221 -0
- package/ueditor-resource/dialogs/wordimage/wordimage.js +93 -0
- package/ueditor-resource/index.html +146 -0
- package/ueditor-resource/lang/en/en.js +686 -0
- package/ueditor-resource/lang/en/images/addimage.png +0 -0
- package/ueditor-resource/lang/en/images/alldeletebtnhoverskin.png +0 -0
- package/ueditor-resource/lang/en/images/alldeletebtnupskin.png +0 -0
- package/ueditor-resource/lang/en/images/background.png +0 -0
- package/ueditor-resource/lang/en/images/button.png +0 -0
- package/ueditor-resource/lang/en/images/copy.png +0 -0
- package/ueditor-resource/lang/en/images/deletedisable.png +0 -0
- package/ueditor-resource/lang/en/images/deleteenable.png +0 -0
- package/ueditor-resource/lang/en/images/listbackground.png +0 -0
- package/ueditor-resource/lang/en/images/localimage.png +0 -0
- package/ueditor-resource/lang/en/images/music.png +0 -0
- package/ueditor-resource/lang/en/images/rotateleftdisable.png +0 -0
- package/ueditor-resource/lang/en/images/rotateleftenable.png +0 -0
- package/ueditor-resource/lang/en/images/rotaterightdisable.png +0 -0
- package/ueditor-resource/lang/en/images/rotaterightenable.png +0 -0
- package/ueditor-resource/lang/en/images/upload.png +0 -0
- package/ueditor-resource/lang/zh-cn/images/copy.png +0 -0
- package/ueditor-resource/lang/zh-cn/images/localimage.png +0 -0
- package/ueditor-resource/lang/zh-cn/images/music.png +0 -0
- package/ueditor-resource/lang/zh-cn/images/upload.png +0 -0
- package/ueditor-resource/lang/zh-cn/zh-cn.js +748 -0
- package/ueditor-resource/plugins/demo/demo.js +3 -0
- package/ueditor-resource/themes/default/css/ueditor.css +2148 -0
- package/ueditor-resource/themes/default/dialog.css +17 -0
- package/ueditor-resource/themes/default/dialogbase.css +132 -0
- package/ueditor-resource/themes/default/exts/ai.svg +12 -0
- package/ueditor-resource/themes/default/exts/apk.svg +12 -0
- package/ueditor-resource/themes/default/exts/chm.svg +12 -0
- package/ueditor-resource/themes/default/exts/css.svg +12 -0
- package/ueditor-resource/themes/default/exts/doc.svg +22 -0
- package/ueditor-resource/themes/default/exts/docx.svg +22 -0
- package/ueditor-resource/themes/default/exts/dwg.svg +16 -0
- package/ueditor-resource/themes/default/exts/folder.svg +3 -0
- package/ueditor-resource/themes/default/exts/gif.svg +14 -0
- package/ueditor-resource/themes/default/exts/html.svg +12 -0
- package/ueditor-resource/themes/default/exts/jpeg.svg +14 -0
- package/ueditor-resource/themes/default/exts/jpg.svg +14 -0
- package/ueditor-resource/themes/default/exts/log.svg +12 -0
- package/ueditor-resource/themes/default/exts/mp3.svg +14 -0
- package/ueditor-resource/themes/default/exts/mp4.svg +12 -0
- package/ueditor-resource/themes/default/exts/pdf.svg +14 -0
- package/ueditor-resource/themes/default/exts/png.svg +14 -0
- package/ueditor-resource/themes/default/exts/ppt.svg +24 -0
- package/ueditor-resource/themes/default/exts/pptx.svg +24 -0
- package/ueditor-resource/themes/default/exts/psd.svg +12 -0
- package/ueditor-resource/themes/default/exts/rar.svg +12 -0
- package/ueditor-resource/themes/default/exts/svg.svg +12 -0
- package/ueditor-resource/themes/default/exts/torrent.svg +14 -0
- package/ueditor-resource/themes/default/exts/txt.svg +14 -0
- package/ueditor-resource/themes/default/exts/unknown.svg +12 -0
- package/ueditor-resource/themes/default/exts/xls.svg +25 -0
- package/ueditor-resource/themes/default/exts/xlsx.svg +25 -0
- package/ueditor-resource/themes/default/exts/zip.svg +12 -0
- package/ueditor-resource/themes/default/images/anchor.gif +0 -0
- package/ueditor-resource/themes/default/images/arrow.png +0 -0
- package/ueditor-resource/themes/default/images/arrow_down.png +0 -0
- package/ueditor-resource/themes/default/images/arrow_up.png +0 -0
- package/ueditor-resource/themes/default/images/button-bg.gif +0 -0
- package/ueditor-resource/themes/default/images/cancelbutton.gif +0 -0
- package/ueditor-resource/themes/default/images/charts.png +0 -0
- package/ueditor-resource/themes/default/images/cursor_h.gif +0 -0
- package/ueditor-resource/themes/default/images/cursor_h.png +0 -0
- package/ueditor-resource/themes/default/images/cursor_v.gif +0 -0
- package/ueditor-resource/themes/default/images/cursor_v.png +0 -0
- package/ueditor-resource/themes/default/images/dialog-title-bg.png +0 -0
- package/ueditor-resource/themes/default/images/filescan.png +0 -0
- package/ueditor-resource/themes/default/images/highlighted.gif +0 -0
- package/ueditor-resource/themes/default/images/icons-all.gif +0 -0
- package/ueditor-resource/themes/default/images/icons.gif +0 -0
- package/ueditor-resource/themes/default/images/icons.png +0 -0
- package/ueditor-resource/themes/default/images/img-cracked.png +0 -0
- package/ueditor-resource/themes/default/images/loaderror.png +0 -0
- package/ueditor-resource/themes/default/images/loading.gif +0 -0
- package/ueditor-resource/themes/default/images/lock.gif +0 -0
- package/ueditor-resource/themes/default/images/neweditor-tab-bg.png +0 -0
- package/ueditor-resource/themes/default/images/pagebreak.gif +0 -0
- package/ueditor-resource/themes/default/images/scale.png +0 -0
- package/ueditor-resource/themes/default/images/sortable.png +0 -0
- package/ueditor-resource/themes/default/images/spacer.gif +0 -0
- package/ueditor-resource/themes/default/images/sparator_v.png +0 -0
- package/ueditor-resource/themes/default/images/table-cell-align.png +0 -0
- package/ueditor-resource/themes/default/images/tangram-colorpicker.png +0 -0
- package/ueditor-resource/themes/default/images/toolbar_bg.png +0 -0
- package/ueditor-resource/themes/default/images/unhighlighted.gif +0 -0
- package/ueditor-resource/themes/default/images/upload.png +0 -0
- package/ueditor-resource/themes/default/images/videologo.gif +0 -0
- package/ueditor-resource/themes/default/images/word.gif +0 -0
- package/ueditor-resource/themes/default/images/wordpaste.png +0 -0
- package/ueditor-resource/themes/iframe.css +63 -0
- package/ueditor-resource/third-party/SyntaxHighlighter/shCore.js +3655 -0
- package/ueditor-resource/third-party/SyntaxHighlighter/shCoreDefault.css +1 -0
- package/ueditor-resource/third-party/clipboard/clipboard.js +753 -0
- package/ueditor-resource/third-party/clipboard/clipboard.swf +0 -0
- package/ueditor-resource/third-party/codemirror/codemirror.css +106 -0
- package/ueditor-resource/third-party/codemirror/codemirror.js +3581 -0
- package/ueditor-resource/third-party/jquery-3.5.1.js +2 -0
- package/ueditor-resource/third-party/jquery-3.5.1_1.js +4314 -0
- package/ueditor-resource/third-party/webuploader/webuploader.css +88 -0
- package/ueditor-resource/third-party/webuploader/webuploader.js +4 -0
- package/ueditor-resource/third-party/zeroclipboard/ZeroClipboard.js +1256 -0
- package/ueditor-resource/third-party/zeroclipboard/ZeroClipboard.swf +0 -0
- package/ueditor-resource/ueditor.all.js +32643 -0
- package/ueditor-resource/ueditor.config.js +656 -0
- package/ueditor-resource/ueditor.parse.js +639 -0
| @@ -0,0 +1,176 @@ | |
| 1 | 
            +
            <!DOCTYPE html>
         | 
| 2 | 
            +
            <head>
         | 
| 3 | 
            +
                <title></title>
         | 
| 4 | 
            +
                <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
         | 
| 5 | 
            +
                <script type="text/javascript" src="../internal.js?32939b8e"></script>
         | 
| 6 | 
            +
                <style type="text/css">
         | 
| 7 | 
            +
                    .wrapper {
         | 
| 8 | 
            +
                        width: 600px;
         | 
| 9 | 
            +
                        padding: 10px;
         | 
| 10 | 
            +
                        height: 352px;
         | 
| 11 | 
            +
                        overflow: hidden;
         | 
| 12 | 
            +
                        position: relative;
         | 
| 13 | 
            +
                        border-bottom: 1px solid #d7d7d7;
         | 
| 14 | 
            +
                    }
         | 
| 15 | 
            +
             | 
| 16 | 
            +
                    .wrapper .file-upload {
         | 
| 17 | 
            +
                        display: flex;
         | 
| 18 | 
            +
                        align-items: center;
         | 
| 19 | 
            +
                    }
         | 
| 20 | 
            +
             | 
| 21 | 
            +
                    .wrapper .file-upload .file-tip {
         | 
| 22 | 
            +
                        color: #999;
         | 
| 23 | 
            +
                        font-size: 12px;
         | 
| 24 | 
            +
                        padding-left: 10px;
         | 
| 25 | 
            +
                        flex-grow: 1;
         | 
| 26 | 
            +
                    }
         | 
| 27 | 
            +
             | 
| 28 | 
            +
                    .wrapper .file-manual {
         | 
| 29 | 
            +
                        background: #EEE;
         | 
| 30 | 
            +
                        padding: 10px;
         | 
| 31 | 
            +
                        border-radius: 5px;
         | 
| 32 | 
            +
                        margin-top: 10px;
         | 
| 33 | 
            +
                        line-height: 2;
         | 
| 34 | 
            +
                    }
         | 
| 35 | 
            +
             | 
| 36 | 
            +
                    .wrapper .file-manual .title {
         | 
| 37 | 
            +
                        font-weight: bold;
         | 
| 38 | 
            +
                        font-size: 120%;
         | 
| 39 | 
            +
                    }
         | 
| 40 | 
            +
             | 
| 41 | 
            +
                    .wrapper .file-manual .body {
         | 
| 42 | 
            +
                    }
         | 
| 43 | 
            +
             | 
| 44 | 
            +
                    .wrapper .file-manual .body li {
         | 
| 45 | 
            +
                        list-style: disc;
         | 
| 46 | 
            +
                        margin-left: 20px;
         | 
| 47 | 
            +
                    }
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                    .wrapper .upload-button {
         | 
| 50 | 
            +
                        width: 100px;
         | 
| 51 | 
            +
                        height: 30px;
         | 
| 52 | 
            +
                        background-color: #F8F8F8;
         | 
| 53 | 
            +
                        border: 1px solid #EEE;
         | 
| 54 | 
            +
                        border-radius: 4px;
         | 
| 55 | 
            +
                        text-align: center;
         | 
| 56 | 
            +
                        line-height: 28px;
         | 
| 57 | 
            +
                        cursor: pointer;
         | 
| 58 | 
            +
                        position: relative;
         | 
| 59 | 
            +
                        flex-shrink: 0;
         | 
| 60 | 
            +
                        margin-right: 5px;
         | 
| 61 | 
            +
                    }
         | 
| 62 | 
            +
             | 
| 63 | 
            +
                    .wrapper .upload-button .text {
         | 
| 64 | 
            +
                        display: inline-block;
         | 
| 65 | 
            +
                        vertical-align: middle;
         | 
| 66 | 
            +
                    }
         | 
| 67 | 
            +
             | 
| 68 | 
            +
                    .wrapper .upload-button input {
         | 
| 69 | 
            +
                        position: absolute;
         | 
| 70 | 
            +
                        left: 0;
         | 
| 71 | 
            +
                        top: 0;
         | 
| 72 | 
            +
                        opacity: 0;
         | 
| 73 | 
            +
                        cursor: pointer;
         | 
| 74 | 
            +
                        height: 100%;
         | 
| 75 | 
            +
                        width: 100%;
         | 
| 76 | 
            +
                    }
         | 
| 77 | 
            +
             | 
| 78 | 
            +
                    .wrapper .file-result {
         | 
| 79 | 
            +
                        border: 1px solid #333;
         | 
| 80 | 
            +
                        padding: 10px;
         | 
| 81 | 
            +
                        border-radius: 5px;
         | 
| 82 | 
            +
                        position: absolute;
         | 
| 83 | 
            +
                        left: 10px;
         | 
| 84 | 
            +
                        right: 10px;
         | 
| 85 | 
            +
                        top: 50px;
         | 
| 86 | 
            +
                        background: #FFF;
         | 
| 87 | 
            +
                        bottom: 10px;
         | 
| 88 | 
            +
                        overflow: auto;
         | 
| 89 | 
            +
                        display: none;
         | 
| 90 | 
            +
                    }
         | 
| 91 | 
            +
                    .wrapper .file-input{
         | 
| 92 | 
            +
                        position: absolute;
         | 
| 93 | 
            +
                        left: 10px;
         | 
| 94 | 
            +
                        right: 10px;
         | 
| 95 | 
            +
                        top: 50px;
         | 
| 96 | 
            +
                        background: #EEE;
         | 
| 97 | 
            +
                        bottom: 10px;
         | 
| 98 | 
            +
                        border-radius: 5px;
         | 
| 99 | 
            +
                        display:none;
         | 
| 100 | 
            +
                    }
         | 
| 101 | 
            +
                    .wrapper .file-input textarea{
         | 
| 102 | 
            +
                        position: absolute;
         | 
| 103 | 
            +
                        left: 10px;
         | 
| 104 | 
            +
                        right: 10px;
         | 
| 105 | 
            +
                        bottom: 10px;
         | 
| 106 | 
            +
                        border: none;
         | 
| 107 | 
            +
                        resize: none;
         | 
| 108 | 
            +
                        border-radius: 5px;
         | 
| 109 | 
            +
                        padding: 5px;
         | 
| 110 | 
            +
                        outline: none;
         | 
| 111 | 
            +
                        top: 30px;
         | 
| 112 | 
            +
                    }
         | 
| 113 | 
            +
                    .wrapper .file-input .tool{
         | 
| 114 | 
            +
                        text-align: right;
         | 
| 115 | 
            +
                        padding: 5px 10px;
         | 
| 116 | 
            +
                    }
         | 
| 117 | 
            +
                    .wrapper .file-input .tool a{
         | 
| 118 | 
            +
                        display: inline-block;
         | 
| 119 | 
            +
                        text-decoration: none;
         | 
| 120 | 
            +
                        color: #333;
         | 
| 121 | 
            +
                        background: #FFF;
         | 
| 122 | 
            +
                        padding: 0 10px;
         | 
| 123 | 
            +
                        line-height: 20px;
         | 
| 124 | 
            +
                        border-radius: 3px;
         | 
| 125 | 
            +
                    }
         | 
| 126 | 
            +
                </style>
         | 
| 127 | 
            +
            </head>
         | 
| 128 | 
            +
            <body>
         | 
| 129 | 
            +
            <div class="wrapper">
         | 
| 130 | 
            +
                <div class="file-upload">
         | 
| 131 | 
            +
                    <div class="upload-button">
         | 
| 132 | 
            +
                        <div class="text">选择本地文件</div>
         | 
| 133 | 
            +
                        <input type="file" id="contentImport"/>
         | 
| 134 | 
            +
                    </div>
         | 
| 135 | 
            +
                    <div class="upload-button">
         | 
| 136 | 
            +
                        <div class="text" onclick="$('.file-input').show();">粘贴Markdown</div>
         | 
| 137 | 
            +
                    </div>
         | 
| 138 | 
            +
                    <div class="file-tip"></div>
         | 
| 139 | 
            +
                </div>
         | 
| 140 | 
            +
                <div class="file-manual">
         | 
| 141 | 
            +
                    <div class="title">
         | 
| 142 | 
            +
                        支持文档格式
         | 
| 143 | 
            +
                    </div>
         | 
| 144 | 
            +
                    <div class="body">
         | 
| 145 | 
            +
                        <ul>
         | 
| 146 | 
            +
                            <li><b>Word</b>:docx</li>
         | 
| 147 | 
            +
                            <li><b>Markdown</b>:md</li>
         | 
| 148 | 
            +
                        </ul>
         | 
| 149 | 
            +
                    </div>
         | 
| 150 | 
            +
                </div>
         | 
| 151 | 
            +
                <div class="file-result"></div>
         | 
| 152 | 
            +
                <div class="file-input">
         | 
| 153 | 
            +
                    <textarea id="fileInputContent"></textarea>
         | 
| 154 | 
            +
                    <div class="tool">
         | 
| 155 | 
            +
                        <a href="javascript:;" id="fileInputConfirm">
         | 
| 156 | 
            +
                            确定
         | 
| 157 | 
            +
                        </a>
         | 
| 158 | 
            +
                        <a href="javascript:;" onclick="$(this).closest('.file-input').hide();">
         | 
| 159 | 
            +
                            关闭
         | 
| 160 | 
            +
                        </a>
         | 
| 161 | 
            +
                    </div>
         | 
| 162 | 
            +
                </div>
         | 
| 163 | 
            +
            </div>
         | 
| 164 | 
            +
            <script src="../../third-party/jquery-3.5.1.js?89c36344"></script>
         | 
| 165 | 
            +
            <script src="https://cdn.bootcdn.net/ajax/libs/mammoth/1.6.0/mammoth.browser.min.js"></script>
         | 
| 166 | 
            +
            <script src="https://cdn.bootcdn.net/ajax/libs/showdown/2.1.0/showdown.min.js"></script>
         | 
| 167 | 
            +
            <script type="text/javascript" src="contentimport.js?34705cde"></script>
         | 
| 168 | 
            +
            <script type="text/javascript">
         | 
| 169 | 
            +
                utils.domReady(function () {
         | 
| 170 | 
            +
                    var options = {};
         | 
| 171 | 
            +
                    var callbacks = {};
         | 
| 172 | 
            +
                    contentImport.init(options, callbacks);
         | 
| 173 | 
            +
                });
         | 
| 174 | 
            +
            </script>
         | 
| 175 | 
            +
            </body>
         | 
| 176 | 
            +
            </html>
         | 
| @@ -0,0 +1,91 @@ | |
| 1 | 
            +
            var contentImport = {};
         | 
| 2 | 
            +
            var g = $G;
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            contentImport.data = {
         | 
| 5 | 
            +
                result: null,
         | 
| 6 | 
            +
            };
         | 
| 7 | 
            +
            contentImport.init = function (opt, callbacks) {
         | 
| 8 | 
            +
                addUploadButtonListener();
         | 
| 9 | 
            +
                addOkListener();
         | 
| 10 | 
            +
            };
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            function processWord(file) {
         | 
| 13 | 
            +
                $('.file-tip').html('正在转换Word文件,请稍后...');
         | 
| 14 | 
            +
                $('.file-result').html('').hide();
         | 
| 15 | 
            +
                var reader = new FileReader();
         | 
| 16 | 
            +
                reader.onload = function (loadEvent) {
         | 
| 17 | 
            +
                    mammoth.convertToHtml({
         | 
| 18 | 
            +
                        arrayBuffer: loadEvent.target.result
         | 
| 19 | 
            +
                    })
         | 
| 20 | 
            +
                        .then(function displayResult(result) {
         | 
| 21 | 
            +
                            $('.file-tip').html('转换成功');
         | 
| 22 | 
            +
                            contentImport.data.result = result.value;
         | 
| 23 | 
            +
                            $('.file-result').html(result.value).show();
         | 
| 24 | 
            +
                        }, function (error) {
         | 
| 25 | 
            +
                            $('.file-tip').html('Word文件转换失败:' + error);
         | 
| 26 | 
            +
                        });
         | 
| 27 | 
            +
                };
         | 
| 28 | 
            +
                reader.onerror = function (loadEvent) {
         | 
| 29 | 
            +
                    $('.file-tip').html('Word文件转换失败:' + loadEvent);
         | 
| 30 | 
            +
                };
         | 
| 31 | 
            +
                reader.readAsArrayBuffer(file);
         | 
| 32 | 
            +
            }
         | 
| 33 | 
            +
             | 
| 34 | 
            +
            function processMarkdown( markdown ){
         | 
| 35 | 
            +
                var converter = new showdown.Converter();
         | 
| 36 | 
            +
                var html = converter.makeHtml(markdown);
         | 
| 37 | 
            +
                $('.file-tip').html('转换成功');
         | 
| 38 | 
            +
                contentImport.data.result = html;
         | 
| 39 | 
            +
                $('.file-result').html(html).show();
         | 
| 40 | 
            +
            }
         | 
| 41 | 
            +
             | 
| 42 | 
            +
            function processMarkdownFile(file) {
         | 
| 43 | 
            +
                $('.file-tip').html('正在转换Markdown文件,请稍后...');
         | 
| 44 | 
            +
                $('.file-result').html('').hide();
         | 
| 45 | 
            +
                var reader = new FileReader();
         | 
| 46 | 
            +
                reader.onload = function (loadEvent) {
         | 
| 47 | 
            +
                    processMarkdown( loadEvent.target.result );
         | 
| 48 | 
            +
                };
         | 
| 49 | 
            +
                reader.onerror = function (loadEvent) {
         | 
| 50 | 
            +
                    $('.file-tip').html('Markdown文件转换失败:' + loadEvent);
         | 
| 51 | 
            +
                };
         | 
| 52 | 
            +
                reader.readAsText(file, "UTF-8");
         | 
| 53 | 
            +
            }
         | 
| 54 | 
            +
             | 
| 55 | 
            +
            function addUploadButtonListener() {
         | 
| 56 | 
            +
                g('contentImport').addEventListener('change', function () {
         | 
| 57 | 
            +
                    const file = this.files[0];
         | 
| 58 | 
            +
                    const fileName = file.name;
         | 
| 59 | 
            +
                    const fileExt = fileName.substring(fileName.lastIndexOf('.') + 1).toLowerCase();
         | 
| 60 | 
            +
                    switch (fileExt) {
         | 
| 61 | 
            +
                        case 'docx':
         | 
| 62 | 
            +
                        case 'doc':
         | 
| 63 | 
            +
                            processWord(file);
         | 
| 64 | 
            +
                            break;
         | 
| 65 | 
            +
                        case 'md':
         | 
| 66 | 
            +
                            processMarkdownFile(file);
         | 
| 67 | 
            +
                            break;
         | 
| 68 | 
            +
                        default:
         | 
| 69 | 
            +
                            $('.file-tip').html('不支持的文件格式:' + fileExt);
         | 
| 70 | 
            +
                            break;
         | 
| 71 | 
            +
                    }
         | 
| 72 | 
            +
                });
         | 
| 73 | 
            +
                g('fileInputConfirm').addEventListener('click', function () {
         | 
| 74 | 
            +
                    processMarkdown( g('fileInputContent').value );
         | 
| 75 | 
            +
                    $('.file-input').hide();
         | 
| 76 | 
            +
                });
         | 
| 77 | 
            +
            }
         | 
| 78 | 
            +
             | 
| 79 | 
            +
            function addOkListener() {
         | 
| 80 | 
            +
                dialog.onok = function () {
         | 
| 81 | 
            +
                    if (!contentImport.data.result) {
         | 
| 82 | 
            +
                        alert('请先上传文件识别内容');
         | 
| 83 | 
            +
                        return false;
         | 
| 84 | 
            +
                    }
         | 
| 85 | 
            +
                    editor.fireEvent('saveScene');
         | 
| 86 | 
            +
                    editor.execCommand("inserthtml", contentImport.data.result);
         | 
| 87 | 
            +
                    editor.fireEvent('saveScene');
         | 
| 88 | 
            +
                };
         | 
| 89 | 
            +
                dialog.oncancel = function () {
         | 
| 90 | 
            +
                };
         | 
| 91 | 
            +
            }
         | 
| @@ -0,0 +1,129 @@ | |
| 1 | 
            +
            .jd img {
         | 
| 2 | 
            +
                background: transparent url(images/jxface2.gif?v=1.1) no-repeat scroll left top;
         | 
| 3 | 
            +
                cursor: pointer;
         | 
| 4 | 
            +
                width: 35px;
         | 
| 5 | 
            +
                height: 35px;
         | 
| 6 | 
            +
                display: block;
         | 
| 7 | 
            +
            }
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            .pp img {
         | 
| 10 | 
            +
                background: transparent url(images/fface.gif?v=1.1) no-repeat scroll left top;
         | 
| 11 | 
            +
                cursor: pointer;
         | 
| 12 | 
            +
                width: 25px;
         | 
| 13 | 
            +
                height: 25px;
         | 
| 14 | 
            +
                display: block;
         | 
| 15 | 
            +
            }
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            .ldw img {
         | 
| 18 | 
            +
                background: transparent url(images/wface.gif?v=1.1) no-repeat scroll left top;
         | 
| 19 | 
            +
                cursor: pointer;
         | 
| 20 | 
            +
                width: 35px;
         | 
| 21 | 
            +
                height: 35px;
         | 
| 22 | 
            +
                display: block;
         | 
| 23 | 
            +
            }
         | 
| 24 | 
            +
             | 
| 25 | 
            +
            .tsj img {
         | 
| 26 | 
            +
                background: transparent url(images/tface.gif?v=1.1) no-repeat scroll left top;
         | 
| 27 | 
            +
                cursor: pointer;
         | 
| 28 | 
            +
                width: 35px;
         | 
| 29 | 
            +
                height: 35px;
         | 
| 30 | 
            +
                display: block;
         | 
| 31 | 
            +
            }
         | 
| 32 | 
            +
             | 
| 33 | 
            +
            .cat img {
         | 
| 34 | 
            +
                background: transparent url(images/cface.gif?v=1.1) no-repeat scroll left top;
         | 
| 35 | 
            +
                cursor: pointer;
         | 
| 36 | 
            +
                width: 35px;
         | 
| 37 | 
            +
                height: 35px;
         | 
| 38 | 
            +
                display: block;
         | 
| 39 | 
            +
            }
         | 
| 40 | 
            +
             | 
| 41 | 
            +
            .bb img {
         | 
| 42 | 
            +
                background: transparent url(images/bface.gif?v=1.1) no-repeat scroll left top;
         | 
| 43 | 
            +
                cursor: pointer;
         | 
| 44 | 
            +
                width: 35px;
         | 
| 45 | 
            +
                height: 35px;
         | 
| 46 | 
            +
                display: block;
         | 
| 47 | 
            +
            }
         | 
| 48 | 
            +
             | 
| 49 | 
            +
            .youa img {
         | 
| 50 | 
            +
                background: transparent url(images/yface.gif?v=1.1) no-repeat scroll left top;
         | 
| 51 | 
            +
                cursor: pointer;
         | 
| 52 | 
            +
                width: 35px;
         | 
| 53 | 
            +
                height: 35px;
         | 
| 54 | 
            +
                display: block;
         | 
| 55 | 
            +
            }
         | 
| 56 | 
            +
             | 
| 57 | 
            +
            .smileytable td {
         | 
| 58 | 
            +
                height: 37px;
         | 
| 59 | 
            +
            }
         | 
| 60 | 
            +
             | 
| 61 | 
            +
            #tabPanel {
         | 
| 62 | 
            +
                margin-left: 5px;
         | 
| 63 | 
            +
                overflow: hidden;
         | 
| 64 | 
            +
            }
         | 
| 65 | 
            +
             | 
| 66 | 
            +
            #tabContent {
         | 
| 67 | 
            +
                float: left;
         | 
| 68 | 
            +
                background: #FFFFFF;
         | 
| 69 | 
            +
            }
         | 
| 70 | 
            +
             | 
| 71 | 
            +
            #tabContent div {
         | 
| 72 | 
            +
                display: none;
         | 
| 73 | 
            +
                width: 480px;
         | 
| 74 | 
            +
                overflow: hidden;
         | 
| 75 | 
            +
            }
         | 
| 76 | 
            +
             | 
| 77 | 
            +
            #tabIconReview.show {
         | 
| 78 | 
            +
                left: 17px;
         | 
| 79 | 
            +
                display: block;
         | 
| 80 | 
            +
            }
         | 
| 81 | 
            +
             | 
| 82 | 
            +
            .menuFocus {
         | 
| 83 | 
            +
                background: #ACCD3C;
         | 
| 84 | 
            +
            }
         | 
| 85 | 
            +
             | 
| 86 | 
            +
            .menuDefault {
         | 
| 87 | 
            +
                background: #FFFFFF;
         | 
| 88 | 
            +
            }
         | 
| 89 | 
            +
             | 
| 90 | 
            +
            #tabIconReview {
         | 
| 91 | 
            +
                position: absolute;
         | 
| 92 | 
            +
                left: 406px;
         | 
| 93 | 
            +
                left: 398px \9;
         | 
| 94 | 
            +
                top: 41px;
         | 
| 95 | 
            +
                z-index: 65533;
         | 
| 96 | 
            +
                width: 90px;
         | 
| 97 | 
            +
                height: 76px;
         | 
| 98 | 
            +
            }
         | 
| 99 | 
            +
             | 
| 100 | 
            +
            img.review {
         | 
| 101 | 
            +
                width: 90px;
         | 
| 102 | 
            +
                height: 76px;
         | 
| 103 | 
            +
                border: 2px solid #9cb945;
         | 
| 104 | 
            +
                background: #FFFFFF;
         | 
| 105 | 
            +
                background-position: center;
         | 
| 106 | 
            +
                background-repeat: no-repeat;
         | 
| 107 | 
            +
            }
         | 
| 108 | 
            +
             | 
| 109 | 
            +
            .wrapper .tabbody {
         | 
| 110 | 
            +
                position: relative;
         | 
| 111 | 
            +
                float: left;
         | 
| 112 | 
            +
                clear: both;
         | 
| 113 | 
            +
                padding: 10px;
         | 
| 114 | 
            +
                width: 95%;
         | 
| 115 | 
            +
            }
         | 
| 116 | 
            +
             | 
| 117 | 
            +
            .tabbody table {
         | 
| 118 | 
            +
                width: 100%;
         | 
| 119 | 
            +
            }
         | 
| 120 | 
            +
             | 
| 121 | 
            +
            .tabbody td {
         | 
| 122 | 
            +
                border: 1px solid #BAC498;
         | 
| 123 | 
            +
            }
         | 
| 124 | 
            +
             | 
| 125 | 
            +
            .tabbody td span {
         | 
| 126 | 
            +
                display: block;
         | 
| 127 | 
            +
                zoom: 1;
         | 
| 128 | 
            +
                padding: 0 4px;
         | 
| 129 | 
            +
            }
         | 
| @@ -0,0 +1,70 @@ | |
| 1 | 
            +
            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
         | 
| 2 | 
            +
            <html xmlns="http://www.w3.org/1999/xhtml">
         | 
| 3 | 
            +
            <head>
         | 
| 4 | 
            +
                <title></title>
         | 
| 5 | 
            +
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
         | 
| 6 | 
            +
                <meta name="robots" content="noindex, nofollow"/>
         | 
| 7 | 
            +
                <script type="text/javascript" src="../internal.js?32939b8e"></script>
         | 
| 8 | 
            +
                <link rel="stylesheet" type="text/css" href="emotion.css?756c9678">
         | 
| 9 | 
            +
            </head>
         | 
| 10 | 
            +
            <body>
         | 
| 11 | 
            +
            <div id="tabPanel" class="wrapper">
         | 
| 12 | 
            +
                <div id="tabHeads" class="tabhead">
         | 
| 13 | 
            +
                    <span><var id="lang_input_choice"></var></span>
         | 
| 14 | 
            +
                    <span><var id="lang_input_Tuzki"></var></span>
         | 
| 15 | 
            +
                    <span><var id="lang_input_lvdouwa"></var></span>
         | 
| 16 | 
            +
                    <span><var id="lang_input_BOBO"></var></span>
         | 
| 17 | 
            +
                    <span><var id="lang_input_babyCat"></var></span>
         | 
| 18 | 
            +
                    <span><var id="lang_input_bubble"></var></span>
         | 
| 19 | 
            +
                    <span><var id="lang_input_youa"></var></span>
         | 
| 20 | 
            +
                </div>
         | 
| 21 | 
            +
                <div id="tabBodys" class="tabbody">
         | 
| 22 | 
            +
                    <div id="tab0"></div>
         | 
| 23 | 
            +
                    <div id="tab1"></div>
         | 
| 24 | 
            +
                    <div id="tab2"></div>
         | 
| 25 | 
            +
                    <div id="tab3"></div>
         | 
| 26 | 
            +
                    <div id="tab4"></div>
         | 
| 27 | 
            +
                    <div id="tab5"></div>
         | 
| 28 | 
            +
                    <div id="tab6"></div>
         | 
| 29 | 
            +
                </div>
         | 
| 30 | 
            +
            </div>
         | 
| 31 | 
            +
            <div id="tabIconReview">
         | 
| 32 | 
            +
                <img id='faceReview' class='review' src="../../themes/default/images/spacer.gif"/>
         | 
| 33 | 
            +
            </div>
         | 
| 34 | 
            +
            <script type="text/javascript" src="emotion.js?8f5d7fd3"></script>
         | 
| 35 | 
            +
            <script type="text/javascript">
         | 
| 36 | 
            +
                var emotion = {
         | 
| 37 | 
            +
                    tabNum: 7, //切换面板数量
         | 
| 38 | 
            +
                    SmilmgName: {
         | 
| 39 | 
            +
                        tab0: ['j_00', 84],
         | 
| 40 | 
            +
                        tab1: ['t_00', 40],
         | 
| 41 | 
            +
                        tab2: ['w_00', 52],
         | 
| 42 | 
            +
                        tab3: ['B_00', 63],
         | 
| 43 | 
            +
                        tab4: ['C_00', 20],
         | 
| 44 | 
            +
                        tab5: ['i_f', 50],
         | 
| 45 | 
            +
                        tab6: ['y_00', 40]
         | 
| 46 | 
            +
                    }, //图片前缀名
         | 
| 47 | 
            +
                    imageFolders: {
         | 
| 48 | 
            +
                        tab0: 'jx2/',
         | 
| 49 | 
            +
                        tab1: 'tsj/',
         | 
| 50 | 
            +
                        tab2: 'ldw/',
         | 
| 51 | 
            +
                        tab3: 'bobo/',
         | 
| 52 | 
            +
                        tab4: 'babycat/',
         | 
| 53 | 
            +
                        tab5: 'face/',
         | 
| 54 | 
            +
                        tab6: 'youa/'
         | 
| 55 | 
            +
                    }, //图片对应文件夹路径
         | 
| 56 | 
            +
                    imageCss: {tab0: 'jd', tab1: 'tsj', tab2: 'ldw', tab3: 'bb', tab4: 'cat', tab5: 'pp', tab6: 'youa'}, //图片css类名
         | 
| 57 | 
            +
                    imageCssOffset: {tab0: 35, tab1: 35, tab2: 35, tab3: 35, tab4: 35, tab5: 25, tab6: 35}, //图片偏移
         | 
| 58 | 
            +
                    SmileyInfor: {
         | 
| 59 | 
            +
                        tab0: ['Kiss', 'Love', 'Yeah', '啊!', '背扭', '顶', '抖胸', '88', '汗', '瞌睡', '鲁拉', '拍砖', '揉脸', '生日快乐', '大笑', '瀑布汗~', '惊讶', '臭美', '傻笑', '抛媚眼', '发怒', '打酱油', '俯卧撑', '气愤', '?', '吻', '怒', '胜利', 'HI', 'KISS', '不说', '不要', '扯花', '大心', '顶', '大惊', '飞吻', '鬼脸', '害羞', '口水', '狂哭', '来', '发财了', '吃西瓜', '套牢', '害羞', '庆祝', '我来了', '敲打', '晕了', '胜利', '臭美', '被打了', '贪吃', '迎接', '酷', '微笑', '亲吻', '调皮', '惊恐', '耍酷', '发火', '害羞', '汗水', '大哭', '', '加油', '困', '你NB', '晕倒', '开心', '偷笑', '大哭', '滴汗', '叹气', '超赞', '??', '飞吻', '天使', '撒花', '生气', '被砸', '吓傻', '随意吐'],
         | 
| 60 | 
            +
                        tab1: ['Kiss', 'Love', 'Yeah', '啊!', '背扭', '顶', '抖胸', '88', '汗', '瞌睡', '鲁拉', '拍砖', '揉脸', '生日快乐', '摊手', '睡觉', '瘫坐', '无聊', '星星闪', '旋转', '也不行', '郁闷', '正Music', '抓墙', '撞墙至死', '歪头', '戳眼', '飘过', '互相拍砖', '砍死你', '扔桌子', '少林寺', '什么?', '转头', '我爱牛奶', '我踢', '摇晃', '晕厥', '在笼子里', '震荡'],
         | 
| 61 | 
            +
                        tab2: ['大笑', '瀑布汗~', '惊讶', '臭美', '傻笑', '抛媚眼', '发怒', '我错了', 'money', '气愤', '挑逗', '吻', '怒', '胜利', '委屈', '受伤', '说啥呢?', '闭嘴', '不', '逗你玩儿', '飞吻', '眩晕', '魔法', '我来了', '睡了', '我打', '闭嘴', '打', '打晕了', '刷牙', '爆揍', '炸弹', '倒立', '刮胡子', '邪恶的笑', '不要不要', '爱恋中', '放大仔细看', '偷窥', '超高兴', '晕', '松口气', '我跑', '享受', '修养', '哭', '汗', '啊~', '热烈欢迎', '打酱油', '俯卧撑', '?'],
         | 
| 62 | 
            +
                        tab3: ['HI', 'KISS', '不说', '不要', '扯花', '大心', '顶', '大惊', '飞吻', '鬼脸', '害羞', '口水', '狂哭', '来', '泪眼', '流泪', '生气', '吐舌', '喜欢', '旋转', '再见', '抓狂', '汗', '鄙视', '拜', '吐血', '嘘', '打人', '蹦跳', '变脸', '扯肉', '吃To', '吃花', '吹泡泡糖', '大变身', '飞天舞', '回眸', '可怜', '猛抽', '泡泡', '苹果', '亲', '', '骚舞', '烧香', '睡', '套娃娃', '捅捅', '舞倒', '西红柿', '爱慕', '摇', '摇摆', '杂耍', '招财', '被殴', '被球闷', '大惊', '理想', '欧打', '呕吐', '碎', '吐痰'],
         | 
| 63 | 
            +
                        tab4: ['发财了', '吃西瓜', '套牢', '害羞', '庆祝', '我来了', '敲打', '晕了', '胜利', '臭美', '被打了', '贪吃', '迎接', '酷', '顶', '幸运', '爱心', '躲', '送花', '选择'],
         | 
| 64 | 
            +
                        tab5: ['微笑', '亲吻', '调皮', '惊讶', '耍酷', '发火', '害羞', '汗水', '大哭', '得意', '鄙视', '困', '夸奖', '晕倒', '疑问', '媒婆', '狂吐', '青蛙', '发愁', '亲吻', '', '爱心', '心碎', '玫瑰', '礼物', '哭', '奸笑', '可爱', '得意', '呲牙', '暴汗', '楚楚可怜', '困', '哭', '生气', '惊讶', '口水', '彩虹', '夜空', '太阳', '钱钱', '灯泡', '咖啡', '蛋糕', '音乐', '爱', '胜利', '赞', '鄙视', 'OK'],
         | 
| 65 | 
            +
                        tab6: ['男兜', '女兜', '开心', '乖乖', '偷笑', '大笑', '抽泣', '大哭', '无奈', '滴汗', '叹气', '狂晕', '委屈', '超赞', '??', '疑问', '飞吻', '天使', '撒花', '生气', '被砸', '口水', '泪奔', '吓傻', '吐舌头', '点头', '随意吐', '旋转', '困困', '鄙视', '狂顶', '篮球', '再见', '欢迎光临', '恭喜发财', '稍等', '我在线', '恕不议价', '库房有货', '货在路上']
         | 
| 66 | 
            +
                    }
         | 
| 67 | 
            +
                };
         | 
| 68 | 
            +
            </script>
         | 
| 69 | 
            +
            </body>
         | 
| 70 | 
            +
            </html>
         | 
| @@ -0,0 +1,186 @@ | |
| 1 | 
            +
            window.onload = function () {
         | 
| 2 | 
            +
                editor.setOpt({
         | 
| 3 | 
            +
                    emotionLocalization: false
         | 
| 4 | 
            +
                });
         | 
| 5 | 
            +
             | 
| 6 | 
            +
                emotion.SmileyPath = editor.options.emotionLocalization === true ? 'images/' : "http://img.baidu.com/hi/";
         | 
| 7 | 
            +
                emotion.SmileyBox = createTabList(emotion.tabNum);
         | 
| 8 | 
            +
                emotion.tabExist = createArr(emotion.tabNum);
         | 
| 9 | 
            +
             | 
| 10 | 
            +
                initImgName();
         | 
| 11 | 
            +
                initEvtHandler("tabHeads");
         | 
| 12 | 
            +
            };
         | 
| 13 | 
            +
             | 
| 14 | 
            +
            function initImgName() {
         | 
| 15 | 
            +
                for (var pro in emotion.SmilmgName) {
         | 
| 16 | 
            +
                    var tempName = emotion.SmilmgName[pro],
         | 
| 17 | 
            +
                        tempBox = emotion.SmileyBox[pro],
         | 
| 18 | 
            +
                        tempStr = "";
         | 
| 19 | 
            +
             | 
| 20 | 
            +
                    if (tempBox.length) return;
         | 
| 21 | 
            +
                    for (var i = 1; i <= tempName[1]; i++) {
         | 
| 22 | 
            +
                        tempStr = tempName[0];
         | 
| 23 | 
            +
                        if (i < 10) tempStr = tempStr + '0';
         | 
| 24 | 
            +
                        tempStr = tempStr + i + '.gif';
         | 
| 25 | 
            +
                        tempBox.push(tempStr);
         | 
| 26 | 
            +
                    }
         | 
| 27 | 
            +
                }
         | 
| 28 | 
            +
            }
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            function initEvtHandler(conId) {
         | 
| 31 | 
            +
                var tabHeads = $G(conId);
         | 
| 32 | 
            +
                for (var i = 0, j = 0; i < tabHeads.childNodes.length; i++) {
         | 
| 33 | 
            +
                    var tabObj = tabHeads.childNodes[i];
         | 
| 34 | 
            +
                    if (tabObj.nodeType == 1) {
         | 
| 35 | 
            +
                        domUtils.on(tabObj, "click", (function (index) {
         | 
| 36 | 
            +
                            return function () {
         | 
| 37 | 
            +
                                switchTab(index);
         | 
| 38 | 
            +
                            };
         | 
| 39 | 
            +
                        })(j));
         | 
| 40 | 
            +
                        j++;
         | 
| 41 | 
            +
                    }
         | 
| 42 | 
            +
                }
         | 
| 43 | 
            +
                switchTab(0);
         | 
| 44 | 
            +
                $G("tabIconReview").style.display = 'none';
         | 
| 45 | 
            +
            }
         | 
| 46 | 
            +
             | 
| 47 | 
            +
            function InsertSmiley(url, evt) {
         | 
| 48 | 
            +
                var obj = {
         | 
| 49 | 
            +
                    src: editor.options.emotionLocalization ? editor.options.UEDITOR_HOME_URL + "dialogs/emotion/" + url : url
         | 
| 50 | 
            +
                };
         | 
| 51 | 
            +
                obj._src = obj.src;
         | 
| 52 | 
            +
                editor.execCommand('insertimage', obj);
         | 
| 53 | 
            +
                if (!evt.ctrlKey) {
         | 
| 54 | 
            +
                    dialog.popup.hide();
         | 
| 55 | 
            +
                }
         | 
| 56 | 
            +
            }
         | 
| 57 | 
            +
             | 
| 58 | 
            +
            function switchTab(index) {
         | 
| 59 | 
            +
             | 
| 60 | 
            +
                autoHeight(index);
         | 
| 61 | 
            +
                if (emotion.tabExist[index] == 0) {
         | 
| 62 | 
            +
                    emotion.tabExist[index] = 1;
         | 
| 63 | 
            +
                    createTab('tab' + index);
         | 
| 64 | 
            +
                }
         | 
| 65 | 
            +
                //获取呈现元素句柄数组
         | 
| 66 | 
            +
                var tabHeads = $G("tabHeads").getElementsByTagName("span"),
         | 
| 67 | 
            +
                    tabBodys = $G("tabBodys").getElementsByTagName("div"),
         | 
| 68 | 
            +
                    i = 0, L = tabHeads.length;
         | 
| 69 | 
            +
                //隐藏所有呈现元素
         | 
| 70 | 
            +
                for (; i < L; i++) {
         | 
| 71 | 
            +
                    tabHeads[i].className = "";
         | 
| 72 | 
            +
                    tabBodys[i].style.display = "none";
         | 
| 73 | 
            +
                }
         | 
| 74 | 
            +
                //显示对应呈现元素
         | 
| 75 | 
            +
                tabHeads[index].className = "focus";
         | 
| 76 | 
            +
                tabBodys[index].style.display = "block";
         | 
| 77 | 
            +
            }
         | 
| 78 | 
            +
             | 
| 79 | 
            +
            function autoHeight(index) {
         | 
| 80 | 
            +
                var iframe = dialog.getDom("iframe"),
         | 
| 81 | 
            +
                    parent = iframe.parentNode.parentNode;
         | 
| 82 | 
            +
                switch (index) {
         | 
| 83 | 
            +
                    case 0:
         | 
| 84 | 
            +
                        iframe.style.height = "380px";
         | 
| 85 | 
            +
                        parent.style.height = "392px";
         | 
| 86 | 
            +
                        break;
         | 
| 87 | 
            +
                    case 1:
         | 
| 88 | 
            +
                        iframe.style.height = "220px";
         | 
| 89 | 
            +
                        parent.style.height = "232px";
         | 
| 90 | 
            +
                        break;
         | 
| 91 | 
            +
                    case 2:
         | 
| 92 | 
            +
                        iframe.style.height = "260px";
         | 
| 93 | 
            +
                        parent.style.height = "272px";
         | 
| 94 | 
            +
                        break;
         | 
| 95 | 
            +
                    case 3:
         | 
| 96 | 
            +
                        iframe.style.height = "300px";
         | 
| 97 | 
            +
                        parent.style.height = "312px";
         | 
| 98 | 
            +
                        break;
         | 
| 99 | 
            +
                    case 4:
         | 
| 100 | 
            +
                        iframe.style.height = "140px";
         | 
| 101 | 
            +
                        parent.style.height = "152px";
         | 
| 102 | 
            +
                        break;
         | 
| 103 | 
            +
                    case 5:
         | 
| 104 | 
            +
                        iframe.style.height = "260px";
         | 
| 105 | 
            +
                        parent.style.height = "272px";
         | 
| 106 | 
            +
                        break;
         | 
| 107 | 
            +
                    case 6:
         | 
| 108 | 
            +
                        iframe.style.height = "230px";
         | 
| 109 | 
            +
                        parent.style.height = "242px";
         | 
| 110 | 
            +
                        break;
         | 
| 111 | 
            +
                    default:
         | 
| 112 | 
            +
             | 
| 113 | 
            +
                }
         | 
| 114 | 
            +
            }
         | 
| 115 | 
            +
             | 
| 116 | 
            +
             | 
| 117 | 
            +
            function createTab(tabName) {
         | 
| 118 | 
            +
                var faceVersion = "?v=1.1", //版本号
         | 
| 119 | 
            +
                    tab = $G(tabName), //获取将要生成的Div句柄
         | 
| 120 | 
            +
                    imagePath = emotion.SmileyPath + emotion.imageFolders[tabName], //获取显示表情和预览表情的路径
         | 
| 121 | 
            +
                    positionLine = 11 / 2, //中间数
         | 
| 122 | 
            +
                    iWidth = iHeight = 35, //图片长宽
         | 
| 123 | 
            +
                    iColWidth = 3, //表格剩余空间的显示比例
         | 
| 124 | 
            +
                    tableCss = emotion.imageCss[tabName],
         | 
| 125 | 
            +
                    cssOffset = emotion.imageCssOffset[tabName],
         | 
| 126 | 
            +
                    textHTML = ['<table class="smileytable">'],
         | 
| 127 | 
            +
                    i = 0, imgNum = emotion.SmileyBox[tabName].length, imgColNum = 11, faceImage,
         | 
| 128 | 
            +
                    sUrl, realUrl, posflag, offset, infor;
         | 
| 129 | 
            +
             | 
| 130 | 
            +
                for (; i < imgNum;) {
         | 
| 131 | 
            +
                    textHTML.push('<tr>');
         | 
| 132 | 
            +
                    for (var j = 0; j < imgColNum; j++, i++) {
         | 
| 133 | 
            +
                        faceImage = emotion.SmileyBox[tabName][i];
         | 
| 134 | 
            +
                        if (faceImage) {
         | 
| 135 | 
            +
                            sUrl = imagePath + faceImage + faceVersion;
         | 
| 136 | 
            +
                            realUrl = imagePath + faceImage;
         | 
| 137 | 
            +
                            posflag = j < positionLine ? 0 : 1;
         | 
| 138 | 
            +
                            offset = cssOffset * i * (-1) - 1;
         | 
| 139 | 
            +
                            infor = emotion.SmileyInfor[tabName][i];
         | 
| 140 | 
            +
             | 
| 141 | 
            +
                            textHTML.push('<td  class="' + tableCss + '"   border="1" width="' + iColWidth + '%" style="border-collapse:collapse;" align="center"  bgcolor="transparent" onclick="InsertSmiley(\'' + realUrl.replace(/'/g, "\\'") + '\',event)" onmouseover="over(this,\'' + sUrl + '\',\'' + posflag + '\')" onmouseout="out(this)">');
         | 
| 142 | 
            +
                            textHTML.push('<span>');
         | 
| 143 | 
            +
                            textHTML.push('<img  style="background-position:left ' + offset + 'px;" title="' + infor + '" src="' + emotion.SmileyPath + (editor.options.emotionLocalization ? '0.gif" width="' : 'default/0.gif" width="') + iWidth + '" height="' + iHeight + '"></img>');
         | 
| 144 | 
            +
                            textHTML.push('</span>');
         | 
| 145 | 
            +
                        } else {
         | 
| 146 | 
            +
                            textHTML.push('<td width="' + iColWidth + '%"   bgcolor="#FFFFFF">');
         | 
| 147 | 
            +
                        }
         | 
| 148 | 
            +
                        textHTML.push('</td>');
         | 
| 149 | 
            +
                    }
         | 
| 150 | 
            +
                    textHTML.push('</tr>');
         | 
| 151 | 
            +
                }
         | 
| 152 | 
            +
                textHTML.push('</table>');
         | 
| 153 | 
            +
                textHTML = textHTML.join("");
         | 
| 154 | 
            +
                tab.innerHTML = textHTML;
         | 
| 155 | 
            +
            }
         | 
| 156 | 
            +
             | 
| 157 | 
            +
            function over(td, srcPath, posFlag) {
         | 
| 158 | 
            +
                td.style.backgroundColor = "#ACCD3C";
         | 
| 159 | 
            +
                $G('faceReview').style.backgroundImage = "url(" + srcPath + ")";
         | 
| 160 | 
            +
                if (posFlag == 1) $G("tabIconReview").className = "show";
         | 
| 161 | 
            +
                $G("tabIconReview").style.display = 'block';
         | 
| 162 | 
            +
            }
         | 
| 163 | 
            +
             | 
| 164 | 
            +
            function out(td) {
         | 
| 165 | 
            +
                td.style.backgroundColor = "transparent";
         | 
| 166 | 
            +
                var tabIconRevew = $G("tabIconReview");
         | 
| 167 | 
            +
                tabIconRevew.className = "";
         | 
| 168 | 
            +
                tabIconRevew.style.display = 'none';
         | 
| 169 | 
            +
            }
         | 
| 170 | 
            +
             | 
| 171 | 
            +
            function createTabList(tabNum) {
         | 
| 172 | 
            +
                var obj = {};
         | 
| 173 | 
            +
                for (var i = 0; i < tabNum; i++) {
         | 
| 174 | 
            +
                    obj["tab" + i] = [];
         | 
| 175 | 
            +
                }
         | 
| 176 | 
            +
                return obj;
         | 
| 177 | 
            +
            }
         | 
| 178 | 
            +
             | 
| 179 | 
            +
            function createArr(tabNum) {
         | 
| 180 | 
            +
                var arr = [];
         | 
| 181 | 
            +
                for (var i = 0; i < tabNum; i++) {
         | 
| 182 | 
            +
                    arr[i] = 0;
         | 
| 183 | 
            +
                }
         | 
| 184 | 
            +
                return arr;
         | 
| 185 | 
            +
            }
         | 
| 186 | 
            +
             | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file |