@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,241 @@ | |
| 1 | 
            +
            /**
         | 
| 2 | 
            +
             * Created with JetBrains PhpStorm.
         | 
| 3 | 
            +
             * User: xuheng
         | 
| 4 | 
            +
             * Date: 12-12-19
         | 
| 5 | 
            +
             * Time: 下午4:55
         | 
| 6 | 
            +
             * To change this template use File | Settings | File Templates.
         | 
| 7 | 
            +
             */
         | 
| 8 | 
            +
            (function () {
         | 
| 9 | 
            +
                var title = $G("J_title"),
         | 
| 10 | 
            +
                    titleCol = $G("J_titleCol"),
         | 
| 11 | 
            +
                    caption = $G("J_caption"),
         | 
| 12 | 
            +
                    sorttable = $G("J_sorttable"),
         | 
| 13 | 
            +
                    autoSizeContent = $G("J_autoSizeContent"),
         | 
| 14 | 
            +
                    autoSizePage = $G("J_autoSizePage"),
         | 
| 15 | 
            +
                    tone = $G("J_tone"),
         | 
| 16 | 
            +
                    me,
         | 
| 17 | 
            +
                    preview = $G("J_preview");
         | 
| 18 | 
            +
             | 
| 19 | 
            +
                var editTable = function () {
         | 
| 20 | 
            +
                    me = this;
         | 
| 21 | 
            +
                    me.init();
         | 
| 22 | 
            +
                };
         | 
| 23 | 
            +
                editTable.prototype = {
         | 
| 24 | 
            +
                    init: function () {
         | 
| 25 | 
            +
                        var colorPiker = new UE.ui.ColorPicker({
         | 
| 26 | 
            +
                                editor: editor
         | 
| 27 | 
            +
                            }),
         | 
| 28 | 
            +
                            colorPop = new UE.ui.Popup({
         | 
| 29 | 
            +
                                editor: editor,
         | 
| 30 | 
            +
                                content: colorPiker
         | 
| 31 | 
            +
                            });
         | 
| 32 | 
            +
             | 
| 33 | 
            +
                        title.checked = editor.queryCommandState("inserttitle") == -1;
         | 
| 34 | 
            +
                        titleCol.checked = editor.queryCommandState("inserttitlecol") == -1;
         | 
| 35 | 
            +
                        caption.checked = editor.queryCommandState("insertcaption") == -1;
         | 
| 36 | 
            +
                        sorttable.checked = editor.queryCommandState("enablesort") == 1;
         | 
| 37 | 
            +
             | 
| 38 | 
            +
                        var enablesortState = editor.queryCommandState("enablesort"),
         | 
| 39 | 
            +
                            disablesortState = editor.queryCommandState("disablesort");
         | 
| 40 | 
            +
             | 
| 41 | 
            +
                        sorttable.checked = !!(enablesortState < 0 && disablesortState >= 0);
         | 
| 42 | 
            +
                        sorttable.disabled = !!(enablesortState < 0 && disablesortState < 0);
         | 
| 43 | 
            +
                        sorttable.title = enablesortState < 0 && disablesortState < 0 ? lang.errorMsg : '';
         | 
| 44 | 
            +
             | 
| 45 | 
            +
                        me.createTable(title.checked, titleCol.checked, caption.checked);
         | 
| 46 | 
            +
                        me.setAutoSize();
         | 
| 47 | 
            +
                        me.setColor(me.getColor());
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                        domUtils.on(title, "click", me.titleHanler);
         | 
| 50 | 
            +
                        domUtils.on(titleCol, "click", me.titleColHanler);
         | 
| 51 | 
            +
                        domUtils.on(caption, "click", me.captionHanler);
         | 
| 52 | 
            +
                        domUtils.on(sorttable, "click", me.sorttableHanler);
         | 
| 53 | 
            +
                        domUtils.on(autoSizeContent, "click", me.autoSizeContentHanler);
         | 
| 54 | 
            +
                        domUtils.on(autoSizePage, "click", me.autoSizePageHanler);
         | 
| 55 | 
            +
             | 
| 56 | 
            +
                        domUtils.on(tone, "click", function () {
         | 
| 57 | 
            +
                            colorPop.showAnchor(tone);
         | 
| 58 | 
            +
                        });
         | 
| 59 | 
            +
                        domUtils.on(document, 'mousedown', function () {
         | 
| 60 | 
            +
                            colorPop.hide();
         | 
| 61 | 
            +
                        });
         | 
| 62 | 
            +
                        colorPiker.addListener("pickcolor", function () {
         | 
| 63 | 
            +
                            me.setColor(arguments[1]);
         | 
| 64 | 
            +
                            colorPop.hide();
         | 
| 65 | 
            +
                        });
         | 
| 66 | 
            +
                        colorPiker.addListener("picknocolor", function () {
         | 
| 67 | 
            +
                            me.setColor("");
         | 
| 68 | 
            +
                            colorPop.hide();
         | 
| 69 | 
            +
                        });
         | 
| 70 | 
            +
                    },
         | 
| 71 | 
            +
             | 
| 72 | 
            +
                    createTable: function (hasTitle, hasTitleCol, hasCaption) {
         | 
| 73 | 
            +
                        var arr = [],
         | 
| 74 | 
            +
                            sortSpan = '<span>^</span>';
         | 
| 75 | 
            +
                        arr.push("<table id='J_example'>");
         | 
| 76 | 
            +
                        if (hasCaption) {
         | 
| 77 | 
            +
                            arr.push("<caption>" + lang.captionName + "</caption>")
         | 
| 78 | 
            +
                        }
         | 
| 79 | 
            +
                        if (hasTitle) {
         | 
| 80 | 
            +
                            arr.push("<tr>");
         | 
| 81 | 
            +
                            if (hasTitleCol) {
         | 
| 82 | 
            +
                                arr.push("<th>" + lang.titleName + "</th>");
         | 
| 83 | 
            +
                            }
         | 
| 84 | 
            +
                            for (var j = 0; j < 5; j++) {
         | 
| 85 | 
            +
                                arr.push("<th>" + lang.titleName + "</th>");
         | 
| 86 | 
            +
                            }
         | 
| 87 | 
            +
                            arr.push("</tr>");
         | 
| 88 | 
            +
                        }
         | 
| 89 | 
            +
                        for (var i = 0; i < 6; i++) {
         | 
| 90 | 
            +
                            arr.push("<tr>");
         | 
| 91 | 
            +
                            if (hasTitleCol) {
         | 
| 92 | 
            +
                                arr.push("<th>" + lang.titleName + "</th>")
         | 
| 93 | 
            +
                            }
         | 
| 94 | 
            +
                            for (var k = 0; k < 5; k++) {
         | 
| 95 | 
            +
                                arr.push("<td>" + lang.cellsName + "</td>")
         | 
| 96 | 
            +
                            }
         | 
| 97 | 
            +
                            arr.push("</tr>");
         | 
| 98 | 
            +
                        }
         | 
| 99 | 
            +
                        arr.push("</table>");
         | 
| 100 | 
            +
                        preview.innerHTML = arr.join("");
         | 
| 101 | 
            +
                        this.updateSortSpan();
         | 
| 102 | 
            +
                    },
         | 
| 103 | 
            +
                    titleHanler: function () {
         | 
| 104 | 
            +
                        var example = $G("J_example"),
         | 
| 105 | 
            +
                            frg = document.createDocumentFragment(),
         | 
| 106 | 
            +
                            color = domUtils.getComputedStyle(domUtils.getElementsByTagName(example, "td")[0], "border-color"),
         | 
| 107 | 
            +
                            colCount = example.rows[0].children.length;
         | 
| 108 | 
            +
             | 
| 109 | 
            +
                        if (title.checked) {
         | 
| 110 | 
            +
                            example.insertRow(0);
         | 
| 111 | 
            +
                            for (var i = 0, node; i < colCount; i++) {
         | 
| 112 | 
            +
                                node = document.createElement("th");
         | 
| 113 | 
            +
                                node.innerHTML = lang.titleName;
         | 
| 114 | 
            +
                                frg.appendChild(node);
         | 
| 115 | 
            +
                            }
         | 
| 116 | 
            +
                            example.rows[0].appendChild(frg);
         | 
| 117 | 
            +
             | 
| 118 | 
            +
                        } else {
         | 
| 119 | 
            +
                            domUtils.remove(example.rows[0]);
         | 
| 120 | 
            +
                        }
         | 
| 121 | 
            +
                        me.setColor(color);
         | 
| 122 | 
            +
                        me.updateSortSpan();
         | 
| 123 | 
            +
                    },
         | 
| 124 | 
            +
                    titleColHanler: function () {
         | 
| 125 | 
            +
                        var example = $G("J_example"),
         | 
| 126 | 
            +
                            color = domUtils.getComputedStyle(domUtils.getElementsByTagName(example, "td")[0], "border-color"),
         | 
| 127 | 
            +
                            colArr = example.rows,
         | 
| 128 | 
            +
                            colCount = colArr.length;
         | 
| 129 | 
            +
             | 
| 130 | 
            +
                        if (titleCol.checked) {
         | 
| 131 | 
            +
                            for (var i = 0, node; i < colCount; i++) {
         | 
| 132 | 
            +
                                node = document.createElement("th");
         | 
| 133 | 
            +
                                node.innerHTML = lang.titleName;
         | 
| 134 | 
            +
                                colArr[i].insertBefore(node, colArr[i].children[0]);
         | 
| 135 | 
            +
                            }
         | 
| 136 | 
            +
                        } else {
         | 
| 137 | 
            +
                            for (var i = 0; i < colCount; i++) {
         | 
| 138 | 
            +
                                domUtils.remove(colArr[i].children[0]);
         | 
| 139 | 
            +
                            }
         | 
| 140 | 
            +
                        }
         | 
| 141 | 
            +
                        me.setColor(color);
         | 
| 142 | 
            +
                        me.updateSortSpan();
         | 
| 143 | 
            +
                    },
         | 
| 144 | 
            +
                    captionHanler: function () {
         | 
| 145 | 
            +
                        var example = $G("J_example");
         | 
| 146 | 
            +
                        if (caption.checked) {
         | 
| 147 | 
            +
                            var row = document.createElement('caption');
         | 
| 148 | 
            +
                            row.innerHTML = lang.captionName;
         | 
| 149 | 
            +
                            example.insertBefore(row, example.firstChild);
         | 
| 150 | 
            +
                        } else {
         | 
| 151 | 
            +
                            domUtils.remove(domUtils.getElementsByTagName(example, 'caption')[0]);
         | 
| 152 | 
            +
                        }
         | 
| 153 | 
            +
                    },
         | 
| 154 | 
            +
                    sorttableHanler: function () {
         | 
| 155 | 
            +
                        me.updateSortSpan();
         | 
| 156 | 
            +
                    },
         | 
| 157 | 
            +
                    autoSizeContentHanler: function () {
         | 
| 158 | 
            +
                        var example = $G("J_example");
         | 
| 159 | 
            +
                        example.removeAttribute("width");
         | 
| 160 | 
            +
                    },
         | 
| 161 | 
            +
                    autoSizePageHanler: function () {
         | 
| 162 | 
            +
                        var example = $G("J_example");
         | 
| 163 | 
            +
                        var tds = example.getElementsByTagName(example, "td");
         | 
| 164 | 
            +
                        utils.each(tds, function (td) {
         | 
| 165 | 
            +
                            td.removeAttribute("width");
         | 
| 166 | 
            +
                        });
         | 
| 167 | 
            +
                        example.setAttribute('width', '100%');
         | 
| 168 | 
            +
                    },
         | 
| 169 | 
            +
                    updateSortSpan: function () {
         | 
| 170 | 
            +
                        var example = $G("J_example"),
         | 
| 171 | 
            +
                            row = example.rows[0];
         | 
| 172 | 
            +
             | 
| 173 | 
            +
                        var spans = domUtils.getElementsByTagName(example, "span");
         | 
| 174 | 
            +
                        utils.each(spans, function (span) {
         | 
| 175 | 
            +
                            span.parentNode.removeChild(span);
         | 
| 176 | 
            +
                        });
         | 
| 177 | 
            +
                        if (sorttable.checked) {
         | 
| 178 | 
            +
                            utils.each(row.cells, function (cell, i) {
         | 
| 179 | 
            +
                                var span = document.createElement("span");
         | 
| 180 | 
            +
                                span.innerHTML = "^";
         | 
| 181 | 
            +
                                cell.appendChild(span);
         | 
| 182 | 
            +
                            });
         | 
| 183 | 
            +
                        }
         | 
| 184 | 
            +
                    },
         | 
| 185 | 
            +
                    getColor: function () {
         | 
| 186 | 
            +
                        var start = editor.selection.getStart(), color,
         | 
| 187 | 
            +
                            cell = domUtils.findParentByTagName(start, ["td", "th", "caption"], true);
         | 
| 188 | 
            +
                        color = cell && domUtils.getComputedStyle(cell, "border-color");
         | 
| 189 | 
            +
                        if (!color) color = "#DDDDDD";
         | 
| 190 | 
            +
                        return color;
         | 
| 191 | 
            +
                    },
         | 
| 192 | 
            +
                    setColor: function (color) {
         | 
| 193 | 
            +
                        var example = $G("J_example"),
         | 
| 194 | 
            +
                            arr = domUtils.getElementsByTagName(example, "td").concat(
         | 
| 195 | 
            +
                                domUtils.getElementsByTagName(example, "th"),
         | 
| 196 | 
            +
                                domUtils.getElementsByTagName(example, "caption")
         | 
| 197 | 
            +
                            );
         | 
| 198 | 
            +
             | 
| 199 | 
            +
                        tone.value = color;
         | 
| 200 | 
            +
                        utils.each(arr, function (node) {
         | 
| 201 | 
            +
                            node.style.borderColor = color;
         | 
| 202 | 
            +
                        });
         | 
| 203 | 
            +
             | 
| 204 | 
            +
                    },
         | 
| 205 | 
            +
                    setAutoSize: function () {
         | 
| 206 | 
            +
                        var me = this;
         | 
| 207 | 
            +
                        autoSizePage.checked = true;
         | 
| 208 | 
            +
                        me.autoSizePageHanler();
         | 
| 209 | 
            +
                    }
         | 
| 210 | 
            +
                };
         | 
| 211 | 
            +
             | 
| 212 | 
            +
                new editTable;
         | 
| 213 | 
            +
             | 
| 214 | 
            +
                dialog.onok = function () {
         | 
| 215 | 
            +
                    editor.__hasEnterExecCommand = true;
         | 
| 216 | 
            +
             | 
| 217 | 
            +
                    var checks = {
         | 
| 218 | 
            +
                        title: "inserttitle deletetitle",
         | 
| 219 | 
            +
                        titleCol: "inserttitlecol deletetitlecol",
         | 
| 220 | 
            +
                        caption: "insertcaption deletecaption",
         | 
| 221 | 
            +
                        sorttable: "enablesort disablesort"
         | 
| 222 | 
            +
                    };
         | 
| 223 | 
            +
                    editor.fireEvent('saveScene');
         | 
| 224 | 
            +
                    for (var i in checks) {
         | 
| 225 | 
            +
                        var cmds = checks[i].split(" "),
         | 
| 226 | 
            +
                            input = $G("J_" + i);
         | 
| 227 | 
            +
                        if (input["checked"]) {
         | 
| 228 | 
            +
                            editor.queryCommandState(cmds[0]) != -1 && editor.execCommand(cmds[0]);
         | 
| 229 | 
            +
                        } else {
         | 
| 230 | 
            +
                            editor.queryCommandState(cmds[1]) != -1 && editor.execCommand(cmds[1]);
         | 
| 231 | 
            +
                        }
         | 
| 232 | 
            +
                    }
         | 
| 233 | 
            +
             | 
| 234 | 
            +
                    editor.execCommand("edittable", tone.value);
         | 
| 235 | 
            +
                    autoSizeContent.checked ? editor.execCommand('adaptbytext') : "";
         | 
| 236 | 
            +
                    autoSizePage.checked ? editor.execCommand("adaptbywindow") : "";
         | 
| 237 | 
            +
                    editor.fireEvent('saveScene');
         | 
| 238 | 
            +
             | 
| 239 | 
            +
                    editor.__hasEnterExecCommand = false;
         | 
| 240 | 
            +
                };
         | 
| 241 | 
            +
            })();
         | 
| @@ -0,0 +1,62 @@ | |
| 1 | 
            +
            <!DOCTYPE html>
         | 
| 2 | 
            +
            <html>
         | 
| 3 | 
            +
            <head>
         | 
| 4 | 
            +
                <title></title>
         | 
| 5 | 
            +
                <script type="text/javascript" src="../internal.js?32939b8e"></script>
         | 
| 6 | 
            +
                <style type="text/css">
         | 
| 7 | 
            +
                    .section {
         | 
| 8 | 
            +
                        text-align: center;
         | 
| 9 | 
            +
                        margin-top: 10px;
         | 
| 10 | 
            +
                    }
         | 
| 11 | 
            +
             | 
| 12 | 
            +
                    .section input {
         | 
| 13 | 
            +
                        margin-left: 5px;
         | 
| 14 | 
            +
                        width: 70px;
         | 
| 15 | 
            +
                    }
         | 
| 16 | 
            +
                </style>
         | 
| 17 | 
            +
            </head>
         | 
| 18 | 
            +
            <body>
         | 
| 19 | 
            +
            <div class="section">
         | 
| 20 | 
            +
                <span><var id="lang_tdBkColor"></var></span>
         | 
| 21 | 
            +
                <input type="text" id="J_tone"/>
         | 
| 22 | 
            +
            </div>
         | 
| 23 | 
            +
            <script type="text/javascript">
         | 
| 24 | 
            +
                var tone = $G("J_tone"),
         | 
| 25 | 
            +
                    colorPiker = new UE.ui.ColorPicker({
         | 
| 26 | 
            +
                        editor: editor
         | 
| 27 | 
            +
                    }),
         | 
| 28 | 
            +
                    colorPop = new UE.ui.Popup({
         | 
| 29 | 
            +
                        editor: editor,
         | 
| 30 | 
            +
                        content: colorPiker
         | 
| 31 | 
            +
                    });
         | 
| 32 | 
            +
                domUtils.on(tone, "click", function () {
         | 
| 33 | 
            +
                    colorPop.showAnchor(tone);
         | 
| 34 | 
            +
                });
         | 
| 35 | 
            +
                domUtils.on(document, 'mousedown', function () {
         | 
| 36 | 
            +
                    colorPop.hide();
         | 
| 37 | 
            +
                });
         | 
| 38 | 
            +
                colorPiker.addListener("pickcolor", function () {
         | 
| 39 | 
            +
                    tone.value = arguments[1];
         | 
| 40 | 
            +
                    colorPop.hide();
         | 
| 41 | 
            +
                });
         | 
| 42 | 
            +
                colorPiker.addListener("picknocolor", function () {
         | 
| 43 | 
            +
                    tone.value = "";
         | 
| 44 | 
            +
                    colorPop.hide();
         | 
| 45 | 
            +
                });
         | 
| 46 | 
            +
                dialog.onok = function () {
         | 
| 47 | 
            +
                    editor.execCommand("edittd", tone.value);
         | 
| 48 | 
            +
                };
         | 
| 49 | 
            +
             | 
| 50 | 
            +
                var start = editor.selection.getStart(),
         | 
| 51 | 
            +
                    cell = start && domUtils.findParentByTagName(start, ["td", "th"], true);
         | 
| 52 | 
            +
                if (cell) {
         | 
| 53 | 
            +
                    var color = domUtils.getComputedStyle(cell, 'background-color');
         | 
| 54 | 
            +
                    if (/^#/.test(color)) {
         | 
| 55 | 
            +
                        tone.value = color
         | 
| 56 | 
            +
                    }
         | 
| 57 | 
            +
             | 
| 58 | 
            +
                }
         | 
| 59 | 
            +
             | 
| 60 | 
            +
            </script>
         | 
| 61 | 
            +
            </body>
         | 
| 62 | 
            +
            </html>
         | 
| @@ -0,0 +1,33 @@ | |
| 1 | 
            +
            <!DOCTYPE html>
         | 
| 2 | 
            +
            <html>
         | 
| 3 | 
            +
            <head>
         | 
| 4 | 
            +
                <title>表格删除提示</title>
         | 
| 5 | 
            +
                <script type="text/javascript" src="../internal.js?32939b8e"></script>
         | 
| 6 | 
            +
                <style type="text/css">
         | 
| 7 | 
            +
                    .section {
         | 
| 8 | 
            +
                        width: 200px;
         | 
| 9 | 
            +
                        margin: 10px auto 0;
         | 
| 10 | 
            +
                        font-size: 14px;
         | 
| 11 | 
            +
                    }
         | 
| 12 | 
            +
             | 
| 13 | 
            +
                    .item {
         | 
| 14 | 
            +
                        text-align: center;
         | 
| 15 | 
            +
                    }
         | 
| 16 | 
            +
                </style>
         | 
| 17 | 
            +
            </head>
         | 
| 18 | 
            +
            <body>
         | 
| 19 | 
            +
            <div class="section">
         | 
| 20 | 
            +
                <div class="item">
         | 
| 21 | 
            +
                    <label><input type="radio" id="J_delRow" name="cmd" checked/><var id="lang_delRow"></var></label>
         | 
| 22 | 
            +
                </div>
         | 
| 23 | 
            +
                <div class="item">
         | 
| 24 | 
            +
                    <label><input type="radio" id="J_delCol" name="cmd"/><var id="lang_delCol"></var></label>
         | 
| 25 | 
            +
                </div>
         | 
| 26 | 
            +
            </div>
         | 
| 27 | 
            +
            <script type="text/javascript">
         | 
| 28 | 
            +
                dialog.onok = function () {
         | 
| 29 | 
            +
                    $G("J_delRow").checked ? editor.execCommand("deleterow") : editor.execCommand("deletecol");
         | 
| 30 | 
            +
                };
         | 
| 31 | 
            +
            </script>
         | 
| 32 | 
            +
            </body>
         | 
| 33 | 
            +
            </html>
         | 
| @@ -0,0 +1,42 @@ | |
| 1 | 
            +
            /**
         | 
| 2 | 
            +
             * Created with JetBrains PhpStorm.
         | 
| 3 | 
            +
             * User: xuheng
         | 
| 4 | 
            +
             * Date: 12-8-8
         | 
| 5 | 
            +
             * Time: 下午2:00
         | 
| 6 | 
            +
             * To change this template use File | Settings | File Templates.
         | 
| 7 | 
            +
             */
         | 
| 8 | 
            +
            var templates = [
         | 
| 9 | 
            +
                {
         | 
| 10 | 
            +
                    "pre": "pre0.png",
         | 
| 11 | 
            +
                    'title': lang.blank,
         | 
| 12 | 
            +
                    'preHtml': '<p class="ue_t"> 欢迎使用UEditor!</p>',
         | 
| 13 | 
            +
                    "html": '<p class="ue_t">欢迎使用UEditor!</p>'
         | 
| 14 | 
            +
             | 
| 15 | 
            +
                },
         | 
| 16 | 
            +
                {
         | 
| 17 | 
            +
                    "pre": "pre1.png",
         | 
| 18 | 
            +
                    'title': lang.blog,
         | 
| 19 | 
            +
                    'preHtml': '<h1 label="Title center" name="tc" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;text-align:center;margin:0px 0px 20px;"><span style="color:#c0504d;">深入理解Range</span></h1><p style="text-align:center;"><strong class=" ">UEditor二次开发</strong></p><h3><span class=" " style="font-family:幼圆">什么是Range</span></h3><p style="text-indent:2em;">对于“插入”选项卡上的库,在设计时都充分考虑了其中的项与文档整体外观的协调性。 </p><br /><h3><span class=" " style="font-family:幼圆">Range能干什么</span></h3><p style="text-indent:2em;">在“开始”选项卡上,通过从快速样式库中为所选文本选择一种外观,您可以方便地更改文档中所选文本的格式。</p>',
         | 
| 20 | 
            +
                    "html": '<h1 class="ue_t" label="Title center" name="tc" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;text-align:center;margin:0px 0px 20px;"><span style="color:#c0504d;">[键入文档标题]</span></h1><p style="text-align:center;"><strong class="ue_t">[键入文档副标题]</strong></p><h3><span class="ue_t" style="font-family:幼圆">[标题 1]</span></h3><p class="ue_t"  style="text-indent:2em;">对于“插入”选项卡上的库,在设计时都充分考虑了其中的项与文档整体外观的协调性。 您可以使用这些库来插入表格、页眉、页脚、列表、封面以及其他文档构建基块。 您创建的图片、图表或关系图也将与当前的文档外观协调一致。</p><h3><span class="ue_t" style="font-family:幼圆">[标题 2]</span></h3><p class="ue_t"  style="text-indent:2em;">在“开始”选项卡上,通过从快速样式库中为所选文本选择一种外观,您可以方便地更改文档中所选文本的格式。 您还可以使用“开始”选项卡上的其他控件来直接设置文本格式。大多数控件都允许您选择是使用当前主题外观,还是使用某种直接指定的格式。 </p><h3><span class="ue_t" style="font-family:幼圆">[标题 3]</span></h3><p class="ue_t">对于“插入”选项卡上的库,在设计时都充分考虑了其中的项与文档整体外观的协调性。 您可以使用这些库来插入表格、页眉、页脚、列表、封面以及其他文档构建基块。 您创建的图片、图表或关系图也将与当前的文档外观协调一致。</p><p class="ue_t"><br /></p>'
         | 
| 21 | 
            +
             | 
| 22 | 
            +
                },
         | 
| 23 | 
            +
                {
         | 
| 24 | 
            +
                    "pre": "pre2.png",
         | 
| 25 | 
            +
                    'title': lang.resume,
         | 
| 26 | 
            +
                    'preHtml': '<h1 label="Title left" name="tl" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;margin:0px 0px 10px;"><span style="color:#e36c09;" class=" ">WEB前端开发简历</span></h1><table width="100%" border="1" bordercolor="#95B3D7" style="border-collapse:collapse;"><tbody><tr><td width="100" style="text-align:center;"><p><span style="background-color:transparent;">插</span><br /></p><p>入</p><p>照</p><p>片</p></td><td><p><span style="background-color:transparent;"> 联系电话:</span><span class="ue_t" style="background-color:transparent;">[键入您的电话]</span><br /></p><p><span style="background-color:transparent;"> 电子邮件:</span><span class="ue_t" style="background-color:transparent;">[键入您的电子邮件地址]</span><br /></p><p><span style="background-color:transparent;"> 家庭住址:</span><span class="ue_t" style="background-color:transparent;">[键入您的地址]</span><br /></p></td></tr></tbody></table><h3><span style="color:#E36C09;font-size:20px;">目标职位</span></h3><p style="text-indent:2em;" class=" ">WEB前端研发工程师</p><h3><span style="color:#e36c09;font-size:20px;">学历</span></h3><p><span style="display:none;line-height:0px;" id="_baidu_bookmark_start_26"></span></p><ol style="list-style-type:decimal;"><li><p><span class="ue_t">[起止时间]</span> <span class="ue_t">[学校名称] </span> <span class="ue_t">[所学专业]</span> <span class="ue_t">[所获学位]</span></p></li></ol><h3><span style="color:#e36c09;font-size:20px;" class="ue_t">工作经验</span></h3><p><br /></p>',
         | 
| 27 | 
            +
                    "html": '<h1 label="Title left" name="tl" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;margin:0px 0px 10px;"><span style="color:#e36c09;" class="ue_t">[此处键入简历标题]</span></h1><p><span style="color:#e36c09;"><br /></span></p><table width="100%" border="1" bordercolor="#95B3D7" style="border-collapse:collapse;"><tbody><tr><td width="200" style="text-align:center;" class="ue_t">【此处插入照片】</td><td><p><br /></p><p> 联系电话:<span class="ue_t">[键入您的电话]</span></p><p><br /></p><p> 电子邮件:<span class="ue_t">[键入您的电子邮件地址]</span></p><p><br /></p><p> 家庭住址:<span class="ue_t">[键入您的地址]</span></p><p><br /></p></td></tr></tbody></table><h3><span style="color:#e36c09;font-size:20px;">目标职位</span></h3><p style="text-indent:2em;" class="ue_t">[此处键入您的期望职位]</p><h3><span style="color:#e36c09;font-size:20px;">学历</span></h3><p><span style="display:none;line-height:0px;" id="_baidu_bookmark_start_26"></span></p><ol style="list-style-type:decimal;"><li><p><span class="ue_t">[键入起止时间]</span> <span class="ue_t">[键入学校名称] </span> <span class="ue_t">[键入所学专业]</span> <span class="ue_t">[键入所获学位]</span></p></li><li><p><span class="ue_t">[键入起止时间]</span> <span class="ue_t">[键入学校名称]</span> <span class="ue_t">[键入所学专业]</span> <span class="ue_t">[键入所获学位]</span></p></li></ol><h3><span style="color:#e36c09;font-size:20px;" class="ue_t">工作经验</span></h3><ol style="list-style-type:decimal;"><li><p><span class="ue_t">[键入起止时间]</span> <span class="ue_t">[键入公司名称]</span> <span class="ue_t">[键入职位名称]</span> </p></li><ol style="list-style-type:lower-alpha;"><li><p><span class="ue_t">[键入负责项目]</span> <span class="ue_t">[键入项目简介]</span></p></li><li><p><span class="ue_t">[键入负责项目]</span> <span class="ue_t">[键入项目简介]</span></p></li></ol><li><p><span class="ue_t">[键入起止时间]</span> <span class="ue_t">[键入公司名称]</span> <span class="ue_t">[键入职位名称]</span> </p></li><ol style="list-style-type:lower-alpha;"><li><p><span class="ue_t">[键入负责项目]</span> <span class="ue_t">[键入项目简介]</span></p></li></ol></ol><p><span style="color:#e36c09;font-size:20px;">掌握技能</span></p><p style="text-indent:2em;">  <span class="ue_t">[这里可以键入您所掌握的技能]</span><br /></p>'
         | 
| 28 | 
            +
             | 
| 29 | 
            +
                },
         | 
| 30 | 
            +
                {
         | 
| 31 | 
            +
                    "pre": "pre3.png",
         | 
| 32 | 
            +
                    'title': lang.richText,
         | 
| 33 | 
            +
                    'preHtml': '<h1 label="Title center" name="tc" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;text-align:center;margin:0px 0px 20px;" class="ue_t">[此处键入文章标题]</h1><p><img src="http://img.baidu.com/hi/youa/y_0034.gif" width="150" height="100" border="0" hspace="0" vspace="0" style="width:150px;height:100px;float:left;" />图文混排方法</p><p>图片居左,文字围绕图片排版</p><p>方法:在文字前面插入图片,设置居左对齐,然后即可在右边输入多行文</p><p><br /></p><p><img src="http://img.baidu.com/hi/youa/y_0040.gif" width="100" height="100" border="0" hspace="0" vspace="0" style="width:100px;height:100px;float:right;" /></p><p>还有没有什么其他的环绕方式呢?这里是居右环绕</p><p><br /></p><p>欢迎大家多多尝试,为UEditor提供更多高质量模板!</p>',
         | 
| 34 | 
            +
                    "html": '<p><br /></p><h1 label="Title center" name="tc" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;text-align:center;margin:0px 0px 20px;" class="ue_t">[此处键入文章标题]</h1><p><img src="http://img.baidu.com/hi/youa/y_0034.gif" width="300" height="200" border="0" hspace="0" vspace="0" style="width:300px;height:200px;float:left;" />图文混排方法</p><p>1. 图片居左,文字围绕图片排版</p><p>方法:在文字前面插入图片,设置居左对齐,然后即可在右边输入多行文本</p><p><br /></p><p>2. 图片居右,文字围绕图片排版</p><p>方法:在文字前面插入图片,设置居右对齐,然后即可在左边输入多行文本</p><p><br /></p><p>3. 图片居中环绕排版</p><p>方法:亲,这个真心没有办法。。。</p><p><br /></p><p><br /></p><p><img src="http://img.baidu.com/hi/youa/y_0040.gif" width="300" height="300" border="0" hspace="0" vspace="0" style="width:300px;height:300px;float:right;" /></p><p>还有没有什么其他的环绕方式呢?这里是居右环绕</p><p><br /></p><p>欢迎大家多多尝试,为UEditor提供更多高质量模板!</p><p><br /></p><p>占位</p><p><br /></p><p>占位</p><p><br /></p><p>占位</p><p><br /></p><p>占位</p><p><br /></p><p>占位</p><p><br /></p><p><br /></p>'
         | 
| 35 | 
            +
                },
         | 
| 36 | 
            +
                {
         | 
| 37 | 
            +
                    "pre": "pre4.png",
         | 
| 38 | 
            +
                    'title': lang.sciPapers,
         | 
| 39 | 
            +
                    'preHtml': '<h2 style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;margin:0px 0px 10px;text-align:center;" class="ue_t">[键入文章标题]</h2><p><strong><span style="font-size:12px;">摘要</span></strong><span style="font-size:12px;" class="ue_t">:这里可以输入很长很长很长很长很长很长很长很长很差的摘要</span></p><p style="line-height:1.5em;"><strong>标题 1</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">这里可以输入很多内容,可以图文混排,可以有列表等。</span></p><p style="line-height:1.5em;"><strong>标题 2</strong></p><ol style="list-style-type:lower-alpha;"><li><p class="ue_t">列表 1</p></li><li><p class="ue_t">列表 2</p></li><ol style="list-style-type:lower-roman;"><li><p class="ue_t">多级列表 1</p></li><li><p class="ue_t">多级列表 2</p></li></ol><li><p class="ue_t">列表 3<br /></p></li></ol><p style="line-height:1.5em;"><strong>标题 3</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">来个文字图文混排的</span></p><p style="text-indent:2em;"><br /></p>',
         | 
| 40 | 
            +
                    'html': '<h2 style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;margin:0px 0px 10px;text-align:center;" class="ue_t">[键入文章标题]</h2><p><strong><span style="font-size:12px;">摘要</span></strong><span style="font-size:12px;" class="ue_t">:这里可以输入很长很长很长很长很长很长很长很长很差的摘要</span></p><p style="line-height:1.5em;"><strong>标题 1</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">这里可以输入很多内容,可以图文混排,可以有列表等。</span></p><p style="line-height:1.5em;"><strong>标题 2</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">来个列表瞅瞅:</span></p><ol style="list-style-type:lower-alpha;"><li><p class="ue_t">列表 1</p></li><li><p class="ue_t">列表 2</p></li><ol style="list-style-type:lower-roman;"><li><p class="ue_t">多级列表 1</p></li><li><p class="ue_t">多级列表 2</p></li></ol><li><p class="ue_t">列表 3<br /></p></li></ol><p style="line-height:1.5em;"><strong>标题 3</strong></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">来个文字图文混排的</span></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">这里可以多行</span></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">右边是图片</span></p><p style="text-indent:2em;"><span style="font-size:14px;" class="ue_t">绝对没有问题的,不信你也可以试试看</span></p><p><br /></p>'
         | 
| 41 | 
            +
                }
         | 
| 42 | 
            +
            ];
         | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| @@ -0,0 +1,99 @@ | |
| 1 | 
            +
            .wrap {
         | 
| 2 | 
            +
                padding: 5px;
         | 
| 3 | 
            +
                font-size: 14px;
         | 
| 4 | 
            +
            }
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            .left {
         | 
| 7 | 
            +
                width: 425px;
         | 
| 8 | 
            +
                float: left;
         | 
| 9 | 
            +
            }
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            .right {
         | 
| 12 | 
            +
                width: 160px;
         | 
| 13 | 
            +
                border: 1px solid #ccc;
         | 
| 14 | 
            +
                float: right;
         | 
| 15 | 
            +
                padding: 5px;
         | 
| 16 | 
            +
                margin-right: 5px;
         | 
| 17 | 
            +
            }
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            .right .pre {
         | 
| 20 | 
            +
                height: 332px;
         | 
| 21 | 
            +
                overflow-y: auto;
         | 
| 22 | 
            +
            }
         | 
| 23 | 
            +
             | 
| 24 | 
            +
            .right .preitem {
         | 
| 25 | 
            +
                border: white 1px solid;
         | 
| 26 | 
            +
                margin: 5px 0;
         | 
| 27 | 
            +
                padding: 2px 0;
         | 
| 28 | 
            +
            }
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            .right .preitem:hover {
         | 
| 31 | 
            +
                background-color: lemonChiffon;
         | 
| 32 | 
            +
                cursor: pointer;
         | 
| 33 | 
            +
                border: #ccc 1px solid;
         | 
| 34 | 
            +
            }
         | 
| 35 | 
            +
             | 
| 36 | 
            +
            .right .preitem img {
         | 
| 37 | 
            +
                display: block;
         | 
| 38 | 
            +
                margin: 0 auto;
         | 
| 39 | 
            +
                width: 100px;
         | 
| 40 | 
            +
            }
         | 
| 41 | 
            +
             | 
| 42 | 
            +
            .clear {
         | 
| 43 | 
            +
                clear: both;
         | 
| 44 | 
            +
            }
         | 
| 45 | 
            +
             | 
| 46 | 
            +
            .top {
         | 
| 47 | 
            +
                height: 26px;
         | 
| 48 | 
            +
                line-height: 26px;
         | 
| 49 | 
            +
                padding: 5px;
         | 
| 50 | 
            +
            }
         | 
| 51 | 
            +
             | 
| 52 | 
            +
            .bottom {
         | 
| 53 | 
            +
                height: 320px;
         | 
| 54 | 
            +
                width: 100%;
         | 
| 55 | 
            +
                margin: 0 auto;
         | 
| 56 | 
            +
            }
         | 
| 57 | 
            +
             | 
| 58 | 
            +
            .transparent {
         | 
| 59 | 
            +
                background: url("images/bg.gif") repeat;
         | 
| 60 | 
            +
            }
         | 
| 61 | 
            +
             | 
| 62 | 
            +
            .bottom table tr td {
         | 
| 63 | 
            +
                border: 1px dashed #ccc;
         | 
| 64 | 
            +
            }
         | 
| 65 | 
            +
             | 
| 66 | 
            +
            #colorPicker {
         | 
| 67 | 
            +
                width: 17px;
         | 
| 68 | 
            +
                height: 17px;
         | 
| 69 | 
            +
                border: 1px solid #CCC;
         | 
| 70 | 
            +
                display: inline-block;
         | 
| 71 | 
            +
                border-radius: 3px;
         | 
| 72 | 
            +
                box-shadow: 2px 2px 5px #D3D6DA;
         | 
| 73 | 
            +
            }
         | 
| 74 | 
            +
             | 
| 75 | 
            +
            .border_style1 {
         | 
| 76 | 
            +
                padding: 2px;
         | 
| 77 | 
            +
                border: 1px solid #ccc;
         | 
| 78 | 
            +
                border-radius: 5px;
         | 
| 79 | 
            +
                box-shadow: 2px 2px 5px #d3d6da;
         | 
| 80 | 
            +
            }
         | 
| 81 | 
            +
             | 
| 82 | 
            +
            p {
         | 
| 83 | 
            +
                margin: 5px 0
         | 
| 84 | 
            +
            }
         | 
| 85 | 
            +
             | 
| 86 | 
            +
            table {
         | 
| 87 | 
            +
                clear: both;
         | 
| 88 | 
            +
                margin-bottom: 10px;
         | 
| 89 | 
            +
                border-collapse: collapse;
         | 
| 90 | 
            +
                word-break: break-all;
         | 
| 91 | 
            +
            }
         | 
| 92 | 
            +
             | 
| 93 | 
            +
            li {
         | 
| 94 | 
            +
                clear: both
         | 
| 95 | 
            +
            }
         | 
| 96 | 
            +
             | 
| 97 | 
            +
            ol {
         | 
| 98 | 
            +
                padding-left: 40px;
         | 
| 99 | 
            +
            }
         | 
| @@ -0,0 +1,26 @@ | |
| 1 | 
            +
            <!DOCTYPE HTML>
         | 
| 2 | 
            +
            <html>
         | 
| 3 | 
            +
            <head>
         | 
| 4 | 
            +
                <title></title>
         | 
| 5 | 
            +
                <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
         | 
| 6 | 
            +
                <script type="text/javascript" src="../internal.js?32939b8e"></script>
         | 
| 7 | 
            +
                <link rel="stylesheet" type="text/css" href="template.css?3b1e29d0">
         | 
| 8 | 
            +
            </head>
         | 
| 9 | 
            +
            <body>
         | 
| 10 | 
            +
            <div class="wrap">
         | 
| 11 | 
            +
                <div class="left">
         | 
| 12 | 
            +
                    <div class="top">
         | 
| 13 | 
            +
                        <label><var id="lang_template_clear"></var>:<input id="issave" type="checkbox"></label>
         | 
| 14 | 
            +
                    </div>
         | 
| 15 | 
            +
                    <div class="bottom border_style1" id="preview"></div>
         | 
| 16 | 
            +
                </div>
         | 
| 17 | 
            +
                <fieldset class="right border_style1">
         | 
| 18 | 
            +
                    <legend><var id="lang_template_select"></var></legend>
         | 
| 19 | 
            +
                    <div class="pre" id="preitem"></div>
         | 
| 20 | 
            +
                </fieldset>
         | 
| 21 | 
            +
                <div class="clear"></div>
         | 
| 22 | 
            +
            </div>
         | 
| 23 | 
            +
            <script type="text/javascript" src="config.js?a9586d57"></script>
         | 
| 24 | 
            +
            <script type="text/javascript" src="template.js?c0277498"></script>
         | 
| 25 | 
            +
            </body>
         | 
| 26 | 
            +
            </html>
         | 
| @@ -0,0 +1,53 @@ | |
| 1 | 
            +
            /**
         | 
| 2 | 
            +
             * Created with JetBrains PhpStorm.
         | 
| 3 | 
            +
             * User: xuheng
         | 
| 4 | 
            +
             * Date: 12-8-8
         | 
| 5 | 
            +
             * Time: 下午2:09
         | 
| 6 | 
            +
             * To change this template use File | Settings | File Templates.
         | 
| 7 | 
            +
             */
         | 
| 8 | 
            +
            (function () {
         | 
| 9 | 
            +
                var me = editor,
         | 
| 10 | 
            +
                    preview = $G("preview"),
         | 
| 11 | 
            +
                    preitem = $G("preitem"),
         | 
| 12 | 
            +
                    tmps = templates,
         | 
| 13 | 
            +
                    currentTmp;
         | 
| 14 | 
            +
                var initPre = function () {
         | 
| 15 | 
            +
                    var str = "";
         | 
| 16 | 
            +
                    for (var i = 0, tmp; tmp = tmps[i++];) {
         | 
| 17 | 
            +
                        str += '<div class="preitem" onclick="pre(' + i + ')"><img src="' + "images/" + tmp.pre + '" ' + (tmp.title ? "alt=" + tmp.title + " title=" + tmp.title + "" : "") + '></div>';
         | 
| 18 | 
            +
                    }
         | 
| 19 | 
            +
                    preitem.innerHTML = str;
         | 
| 20 | 
            +
                };
         | 
| 21 | 
            +
                var pre = function (n) {
         | 
| 22 | 
            +
                    var tmp = tmps[n - 1];
         | 
| 23 | 
            +
                    currentTmp = tmp;
         | 
| 24 | 
            +
                    clearItem();
         | 
| 25 | 
            +
                    domUtils.setStyles(preitem.childNodes[n - 1], {
         | 
| 26 | 
            +
                        "background-color": "lemonChiffon",
         | 
| 27 | 
            +
                        "border": "#ccc 1px solid"
         | 
| 28 | 
            +
                    });
         | 
| 29 | 
            +
                    preview.innerHTML = tmp.preHtml ? tmp.preHtml : "";
         | 
| 30 | 
            +
                };
         | 
| 31 | 
            +
                var clearItem = function () {
         | 
| 32 | 
            +
                    var items = preitem.children;
         | 
| 33 | 
            +
                    for (var i = 0, item; item = items[i++];) {
         | 
| 34 | 
            +
                        domUtils.setStyles(item, {
         | 
| 35 | 
            +
                            "background-color": "",
         | 
| 36 | 
            +
                            "border": "white 1px solid"
         | 
| 37 | 
            +
                        });
         | 
| 38 | 
            +
                    }
         | 
| 39 | 
            +
                };
         | 
| 40 | 
            +
                dialog.onok = function () {
         | 
| 41 | 
            +
                    if (!$G("issave").checked) {
         | 
| 42 | 
            +
                        me.execCommand("cleardoc");
         | 
| 43 | 
            +
                    }
         | 
| 44 | 
            +
                    var obj = {
         | 
| 45 | 
            +
                        html: currentTmp && currentTmp.html
         | 
| 46 | 
            +
                    };
         | 
| 47 | 
            +
                    me.execCommand("template", obj);
         | 
| 48 | 
            +
                };
         | 
| 49 | 
            +
                initPre();
         | 
| 50 | 
            +
                window.pre = pre;
         | 
| 51 | 
            +
                pre(2)
         | 
| 52 | 
            +
             | 
| 53 | 
            +
            })();
         | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file |