@lingxiteam/lcdp-ueditor-react 1.0.0-alpha.9 → 1.0.2
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 +1 -0
- package/es/LcdpUeditor.d.ts.map +1 -0
- package/es/LcdpUeditor.js +72 -61
- package/es/const.d.ts.map +1 -0
- package/es/const.js +4 -4
- package/es/defaultConfig.json +76 -76
- package/es/index.d.ts.map +1 -0
- package/es/tools/UeditorResourceLoader.d.ts.map +1 -0
- package/es/tools/UeditorResourceLoader.js +11 -16
- package/es/tools/filterHtmlNode.d.ts +5 -0
- package/es/tools/filterHtmlNode.d.ts.map +1 -0
- package/es/tools/filterHtmlNode.js +41 -0
- package/es/tools/loadScript.d.ts.map +1 -0
- package/es/tools/loadScript.js +5 -7
- package/es/type.d.ts +6 -0
- package/es/type.d.ts.map +1 -0
- package/lib/LcdpUeditor.d.ts +1 -0
- package/lib/LcdpUeditor.js +24 -8
- package/lib/defaultConfig.json +76 -76
- package/lib/tools/filterHtmlNode.d.ts +5 -0
- package/lib/tools/filterHtmlNode.js +61 -0
- package/lib/type.d.ts +6 -0
- package/package.json +35 -34
- package/ueditor-resource/dialogs/anchor/anchor.html +62 -62
- package/ueditor-resource/dialogs/attachment/attachment.css +716 -716
- package/ueditor-resource/dialogs/attachment/attachment.html +61 -61
- package/ueditor-resource/dialogs/attachment/attachment.js +803 -803
- package/ueditor-resource/dialogs/audio/audio.css +879 -879
- package/ueditor-resource/dialogs/audio/audio.html +93 -93
- package/ueditor-resource/dialogs/audio/audio.js +815 -815
- package/ueditor-resource/dialogs/background/background.css +193 -193
- package/ueditor-resource/dialogs/background/background.html +59 -59
- package/ueditor-resource/dialogs/background/background.js +370 -370
- package/ueditor-resource/dialogs/contentimport/contentimport.html +176 -176
- package/ueditor-resource/dialogs/contentimport/contentimport.js +91 -91
- package/ueditor-resource/dialogs/emotion/emotion.css +129 -129
- package/ueditor-resource/dialogs/emotion/emotion.html +70 -70
- package/ueditor-resource/dialogs/emotion/emotion.js +186 -186
- package/ueditor-resource/dialogs/formula/formula.html +98 -98
- package/ueditor-resource/dialogs/formula/formula.js +147 -147
- package/ueditor-resource/dialogs/help/help.css +37 -37
- package/ueditor-resource/dialogs/help/help.html +82 -82
- package/ueditor-resource/dialogs/help/help.js +57 -57
- package/ueditor-resource/dialogs/image/image.css +768 -768
- package/ueditor-resource/dialogs/image/image.html +144 -144
- package/ueditor-resource/dialogs/image/image.js +1060 -1060
- package/ueditor-resource/dialogs/insertframe/insertframe.html +135 -135
- package/ueditor-resource/dialogs/internal.js +81 -81
- package/ueditor-resource/dialogs/link/link.html +148 -148
- package/ueditor-resource/dialogs/preview/preview.html +45 -45
- package/ueditor-resource/dialogs/scrawl/scrawl.css +324 -324
- package/ueditor-resource/dialogs/scrawl/scrawl.html +95 -95
- package/ueditor-resource/dialogs/scrawl/scrawl.js +682 -682
- package/ueditor-resource/dialogs/searchreplace/searchreplace.html +144 -144
- package/ueditor-resource/dialogs/searchreplace/searchreplace.js +174 -174
- package/ueditor-resource/dialogs/spechars/spechars.html +42 -42
- package/ueditor-resource/dialogs/spechars/spechars.js +86 -86
- package/ueditor-resource/dialogs/table/edittable.css +85 -85
- package/ueditor-resource/dialogs/table/edittable.html +69 -69
- package/ueditor-resource/dialogs/table/edittable.js +241 -241
- package/ueditor-resource/dialogs/table/edittd.html +62 -62
- package/ueditor-resource/dialogs/table/edittip.html +33 -33
- package/ueditor-resource/dialogs/template/config.js +42 -42
- package/ueditor-resource/dialogs/template/template.css +99 -99
- package/ueditor-resource/dialogs/template/template.html +26 -26
- package/ueditor-resource/dialogs/template/template.js +53 -53
- package/ueditor-resource/dialogs/video/video.css +909 -909
- package/ueditor-resource/dialogs/video/video.html +114 -114
- package/ueditor-resource/dialogs/video/video.js +867 -867
- package/ueditor-resource/dialogs/wordimage/wordimage.html +221 -221
- package/ueditor-resource/dialogs/wordimage/wordimage.js +93 -93
- package/ueditor-resource/lang/en/en.js +686 -686
- package/ueditor-resource/lang/zh-cn/zh-cn.js +748 -748
- package/ueditor-resource/lang/zh-tw/zh-tw.js +748 -748
- package/ueditor-resource/plugins/demo/demo.js +3 -3
- package/ueditor-resource/themes/default/css/ueditor.css +2149 -2148
- package/ueditor-resource/themes/default/dialog.css +17 -17
- package/ueditor-resource/themes/default/dialogbase.css +132 -132
- package/ueditor-resource/themes/default/exts/ai.svg +12 -12
- package/ueditor-resource/themes/default/exts/apk.svg +12 -12
- package/ueditor-resource/themes/default/exts/chm.svg +12 -12
- package/ueditor-resource/themes/default/exts/css.svg +12 -12
- package/ueditor-resource/themes/default/exts/doc.svg +22 -22
- package/ueditor-resource/themes/default/exts/docx.svg +22 -22
- package/ueditor-resource/themes/default/exts/dwg.svg +16 -16
- package/ueditor-resource/themes/default/exts/folder.svg +3 -3
- package/ueditor-resource/themes/default/exts/gif.svg +14 -14
- package/ueditor-resource/themes/default/exts/html.svg +12 -12
- package/ueditor-resource/themes/default/exts/jpeg.svg +14 -14
- package/ueditor-resource/themes/default/exts/jpg.svg +14 -14
- package/ueditor-resource/themes/default/exts/log.svg +12 -12
- package/ueditor-resource/themes/default/exts/mp3.svg +14 -14
- package/ueditor-resource/themes/default/exts/mp4.svg +12 -12
- package/ueditor-resource/themes/default/exts/pdf.svg +14 -14
- package/ueditor-resource/themes/default/exts/png.svg +14 -14
- package/ueditor-resource/themes/default/exts/ppt.svg +24 -24
- package/ueditor-resource/themes/default/exts/pptx.svg +24 -24
- package/ueditor-resource/themes/default/exts/psd.svg +12 -12
- package/ueditor-resource/themes/default/exts/rar.svg +12 -12
- package/ueditor-resource/themes/default/exts/svg.svg +12 -12
- package/ueditor-resource/themes/default/exts/torrent.svg +14 -14
- package/ueditor-resource/themes/default/exts/txt.svg +14 -14
- package/ueditor-resource/themes/default/exts/unknown.svg +12 -12
- package/ueditor-resource/themes/default/exts/xls.svg +25 -25
- package/ueditor-resource/themes/default/exts/xlsx.svg +25 -25
- package/ueditor-resource/themes/default/exts/zip.svg +12 -12
- package/ueditor-resource/themes/iframe.css +63 -63
- package/ueditor-resource/third-party/SyntaxHighlighter/shCore.js +3655 -3655
- package/ueditor-resource/third-party/clipboard/clipboard.js +752 -752
- package/ueditor-resource/third-party/codemirror/codemirror.css +106 -106
- package/ueditor-resource/third-party/codemirror/codemirror.js +3581 -3581
- package/ueditor-resource/third-party/jquery-3.5.1.js +1 -1
- package/ueditor-resource/third-party/jquery-3.5.1_1.js +4314 -4314
- package/ueditor-resource/third-party/webuploader/webuploader.css +88 -88
- package/ueditor-resource/third-party/webuploader/webuploader.js +3 -3
- package/ueditor-resource/third-party/zeroclipboard/ZeroClipboard.js +1255 -1255
- package/ueditor-resource/{lcdp-ueditor.all.js → ueditor.all.js} +5270 -5269
- package/ueditor-resource/ueditor.config.js +655 -655
- package/ueditor-resource/{lcdp-ueditor.parse.js → ueditor.parse.js} +13 -13
- package/ueditor-resource/index.html +0 -146
| @@ -1,147 +1,147 @@ | |
| 1 | 
            -
            function preg_quote(str, delimiter) {
         | 
| 2 | 
            -
                // Quote regular expression characters plus an optional character
         | 
| 3 | 
            -
                //
         | 
| 4 | 
            -
                // version: 1107.2516
         | 
| 5 | 
            -
                // discuss at: http://phpjs.org/functions/preg_quote
         | 
| 6 | 
            -
                // +   original by: booeyOH
         | 
| 7 | 
            -
                // +   improved by: Ates Goral (http://magnetiq.com)
         | 
| 8 | 
            -
                // +   improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
         | 
| 9 | 
            -
                // +   bugfixed by: Onno Marsman
         | 
| 10 | 
            -
                // +   improved by: Brett Zamir (http://brett-zamir.me)
         | 
| 11 | 
            -
                // *     example 1: preg_quote("$40");
         | 
| 12 | 
            -
                // *     returns 1: '\$40'
         | 
| 13 | 
            -
                // *     example 2: preg_quote("*RRRING* Hello?");
         | 
| 14 | 
            -
                // *     returns 2: '\*RRRING\* Hello\?'
         | 
| 15 | 
            -
                // *     example 3: preg_quote("\\.+*?[^]$(){}=!<>|:");
         | 
| 16 | 
            -
                // *     returns 3: '\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:'
         | 
| 17 | 
            -
                return (str + '').replace(new RegExp('[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\' + (delimiter || '') + '-]', 'g'), '\\$&');
         | 
| 18 | 
            -
            }
         | 
| 19 | 
            -
             | 
| 20 | 
            -
            function loadScript(url, cb) {
         | 
| 21 | 
            -
                var script;
         | 
| 22 | 
            -
                script = document.createElement('script');
         | 
| 23 | 
            -
                script.src = url;
         | 
| 24 | 
            -
                script.onload = function () {
         | 
| 25 | 
            -
                    cb && cb({isNew: true})
         | 
| 26 | 
            -
                };
         | 
| 27 | 
            -
                document.getElementsByTagName('head')[0].appendChild(script);
         | 
| 28 | 
            -
            }
         | 
| 29 | 
            -
             | 
| 30 | 
            -
            var Formula = {
         | 
| 31 | 
            -
                mode: 'plain',
         | 
| 32 | 
            -
                latexeasy: null,
         | 
| 33 | 
            -
                init: function () {
         | 
| 34 | 
            -
                    // console.log('Formula.init')
         | 
| 35 | 
            -
                    Formula.initMode();
         | 
| 36 | 
            -
                    Formula.initEvent();
         | 
| 37 | 
            -
                    Formula.initSubmit();
         | 
| 38 | 
            -
                },
         | 
| 39 | 
            -
                renderPlain: function () {
         | 
| 40 | 
            -
                    var $preview = $('#preview');
         | 
| 41 | 
            -
                    var value = $('#editor').val();
         | 
| 42 | 
            -
                    if (!value) {
         | 
| 43 | 
            -
                        $preview.hide();
         | 
| 44 | 
            -
                        return;
         | 
| 45 | 
            -
                    }
         | 
| 46 | 
            -
                    value = encodeURIComponent(value);
         | 
| 47 | 
            -
                    var formulaConfig = editor.getOpt('formulaConfig');
         | 
| 48 | 
            -
                    var src = formulaConfig.imageUrlTemplate.replace(/\{\}/, value);
         | 
| 49 | 
            -
                    $('#previewImage').attr('src', src);
         | 
| 50 | 
            -
                    $preview.show();
         | 
| 51 | 
            -
                },
         | 
| 52 | 
            -
                setValuePlain: function (value) {
         | 
| 53 | 
            -
                    $('#editor').val(value);
         | 
| 54 | 
            -
                    Formula.renderPlain();
         | 
| 55 | 
            -
                },
         | 
| 56 | 
            -
                setValueLive: function (value) {
         | 
| 57 | 
            -
                    if (!Formula.latexeasy) {
         | 
| 58 | 
            -
                        setTimeout(function () {
         | 
| 59 | 
            -
                            Formula.setValueLive(value);
         | 
| 60 | 
            -
                        }, 100);
         | 
| 61 | 
            -
                        return;
         | 
| 62 | 
            -
                    }
         | 
| 63 | 
            -
                    Formula.latexeasy.call('set.latex', {latex: value});
         | 
| 64 | 
            -
                },
         | 
| 65 | 
            -
                initMode: function () {
         | 
| 66 | 
            -
                    var formulaConfig = editor.getOpt('formulaConfig');
         | 
| 67 | 
            -
                    if ('live' === formulaConfig.editorMode) {
         | 
| 68 | 
            -
                        $('#liveEditor').attr('src', formulaConfig.editorLiveServer + '/editor');
         | 
| 69 | 
            -
                        $('#modeLive').show();
         | 
| 70 | 
            -
                        Formula.mode = 'live';
         | 
| 71 | 
            -
                    } else {
         | 
| 72 | 
            -
                        $('#modePlain').show();
         | 
| 73 | 
            -
                        Formula.mode = 'plain';
         | 
| 74 | 
            -
                    }
         | 
| 75 | 
            -
                    var img = editor.selection.getRange().getClosedNode();
         | 
| 76 | 
            -
                    if (img && img.getAttribute('data-formula-image') !== null) {
         | 
| 77 | 
            -
                        var value = img.getAttribute('data-formula-image');
         | 
| 78 | 
            -
                        if (value) {
         | 
| 79 | 
            -
                            Formula.setValue(decodeURIComponent(value));
         | 
| 80 | 
            -
                        }
         | 
| 81 | 
            -
                    }
         | 
| 82 | 
            -
                },
         | 
| 83 | 
            -
                setValue: function (value) {
         | 
| 84 | 
            -
                    switch (Formula.mode) {
         | 
| 85 | 
            -
                        case 'plain':
         | 
| 86 | 
            -
                            Formula.setValuePlain(value);
         | 
| 87 | 
            -
                            break;
         | 
| 88 | 
            -
                        case 'live':
         | 
| 89 | 
            -
                            Formula.setValueLive(value);
         | 
| 90 | 
            -
                            break;
         | 
| 91 | 
            -
                    }
         | 
| 92 | 
            -
                },
         | 
| 93 | 
            -
                getValue: function (cb) {
         | 
| 94 | 
            -
                    switch (Formula.mode) {
         | 
| 95 | 
            -
                        case 'plain':
         | 
| 96 | 
            -
                            cb($.trim($('#editor').val()));
         | 
| 97 | 
            -
                            break;
         | 
| 98 | 
            -
                        case 'live':
         | 
| 99 | 
            -
                            Formula.latexeasy.call('get.latex', {}, function (data) {
         | 
| 100 | 
            -
                                cb(data.latex);
         | 
| 101 | 
            -
                            });
         | 
| 102 | 
            -
                            break;
         | 
| 103 | 
            -
                    }
         | 
| 104 | 
            -
                },
         | 
| 105 | 
            -
                initEvent: function () {
         | 
| 106 | 
            -
                    var changeTimer = null, le;
         | 
| 107 | 
            -
                    switch (Formula.mode) {
         | 
| 108 | 
            -
                        case 'plain':
         | 
| 109 | 
            -
                            // console.log('Formula.initEvent');
         | 
| 110 | 
            -
                            $('#editor').on('change keypress', function () {
         | 
| 111 | 
            -
                                changeTimer && clearTimeout(changeTimer);
         | 
| 112 | 
            -
                                changeTimer = setTimeout(function () {
         | 
| 113 | 
            -
                                    Formula.renderPlain();
         | 
| 114 | 
            -
                                }, 1000);
         | 
| 115 | 
            -
                            });
         | 
| 116 | 
            -
                            $('#inputDemo').on('click', function () {
         | 
| 117 | 
            -
                                $('#editor').val('f(a) = \\frac{1}{2\\pi i} \\oint\\frac{f(z)}{z-a}dz');
         | 
| 118 | 
            -
                                Formula.renderPlain();
         | 
| 119 | 
            -
                            });
         | 
| 120 | 
            -
                            break;
         | 
| 121 | 
            -
                        case 'live':
         | 
| 122 | 
            -
                            var formulaConfig = editor.getOpt('formulaConfig');
         | 
| 123 | 
            -
                            loadScript(formulaConfig.editorLiveServer + '/vendor/LatexEasyEditor/editor/sdk.js', function () {
         | 
| 124 | 
            -
                                le = new window.LatexEasy(document.getElementById('liveEditor'));
         | 
| 125 | 
            -
                                le.on('ready', function () {
         | 
| 126 | 
            -
                                    Formula.latexeasy = le;
         | 
| 127 | 
            -
                                });
         | 
| 128 | 
            -
                                le.init();
         | 
| 129 | 
            -
                            });
         | 
| 130 | 
            -
                            break;
         | 
| 131 | 
            -
                    }
         | 
| 132 | 
            -
                },
         | 
| 133 | 
            -
                initSubmit: function () {
         | 
| 134 | 
            -
                    dialog.onclose = function (t, ok) {
         | 
| 135 | 
            -
                        if (!ok) {
         | 
| 136 | 
            -
                            return true;
         | 
| 137 | 
            -
                        }
         | 
| 138 | 
            -
                        // console.log('onclose', t, ok);
         | 
| 139 | 
            -
                        Formula.getValue(function (value) {
         | 
| 140 | 
            -
                            editor.execCommand('formula', value);
         | 
| 141 | 
            -
                            editor.fireEvent('saveScene');
         | 
| 142 | 
            -
                            dialog.close(false);
         | 
| 143 | 
            -
                        });
         | 
| 144 | 
            -
                        return false;
         | 
| 145 | 
            -
                    };
         | 
| 146 | 
            -
                }
         | 
| 147 | 
            -
            };
         | 
| 1 | 
            +
            function preg_quote(str, delimiter) {
         | 
| 2 | 
            +
                // Quote regular expression characters plus an optional character
         | 
| 3 | 
            +
                //
         | 
| 4 | 
            +
                // version: 1107.2516
         | 
| 5 | 
            +
                // discuss at: http://phpjs.org/functions/preg_quote
         | 
| 6 | 
            +
                // +   original by: booeyOH
         | 
| 7 | 
            +
                // +   improved by: Ates Goral (http://magnetiq.com)
         | 
| 8 | 
            +
                // +   improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
         | 
| 9 | 
            +
                // +   bugfixed by: Onno Marsman
         | 
| 10 | 
            +
                // +   improved by: Brett Zamir (http://brett-zamir.me)
         | 
| 11 | 
            +
                // *     example 1: preg_quote("$40");
         | 
| 12 | 
            +
                // *     returns 1: '\$40'
         | 
| 13 | 
            +
                // *     example 2: preg_quote("*RRRING* Hello?");
         | 
| 14 | 
            +
                // *     returns 2: '\*RRRING\* Hello\?'
         | 
| 15 | 
            +
                // *     example 3: preg_quote("\\.+*?[^]$(){}=!<>|:");
         | 
| 16 | 
            +
                // *     returns 3: '\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:'
         | 
| 17 | 
            +
                return (str + '').replace(new RegExp('[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\' + (delimiter || '') + '-]', 'g'), '\\$&');
         | 
| 18 | 
            +
            }
         | 
| 19 | 
            +
             | 
| 20 | 
            +
            function loadScript(url, cb) {
         | 
| 21 | 
            +
                var script;
         | 
| 22 | 
            +
                script = document.createElement('script');
         | 
| 23 | 
            +
                script.src = url;
         | 
| 24 | 
            +
                script.onload = function () {
         | 
| 25 | 
            +
                    cb && cb({isNew: true})
         | 
| 26 | 
            +
                };
         | 
| 27 | 
            +
                document.getElementsByTagName('head')[0].appendChild(script);
         | 
| 28 | 
            +
            }
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            var Formula = {
         | 
| 31 | 
            +
                mode: 'plain',
         | 
| 32 | 
            +
                latexeasy: null,
         | 
| 33 | 
            +
                init: function () {
         | 
| 34 | 
            +
                    // console.log('Formula.init')
         | 
| 35 | 
            +
                    Formula.initMode();
         | 
| 36 | 
            +
                    Formula.initEvent();
         | 
| 37 | 
            +
                    Formula.initSubmit();
         | 
| 38 | 
            +
                },
         | 
| 39 | 
            +
                renderPlain: function () {
         | 
| 40 | 
            +
                    var $preview = $('#preview');
         | 
| 41 | 
            +
                    var value = $('#editor').val();
         | 
| 42 | 
            +
                    if (!value) {
         | 
| 43 | 
            +
                        $preview.hide();
         | 
| 44 | 
            +
                        return;
         | 
| 45 | 
            +
                    }
         | 
| 46 | 
            +
                    value = encodeURIComponent(value);
         | 
| 47 | 
            +
                    var formulaConfig = editor.getOpt('formulaConfig');
         | 
| 48 | 
            +
                    var src = formulaConfig.imageUrlTemplate.replace(/\{\}/, value);
         | 
| 49 | 
            +
                    $('#previewImage').attr('src', src);
         | 
| 50 | 
            +
                    $preview.show();
         | 
| 51 | 
            +
                },
         | 
| 52 | 
            +
                setValuePlain: function (value) {
         | 
| 53 | 
            +
                    $('#editor').val(value);
         | 
| 54 | 
            +
                    Formula.renderPlain();
         | 
| 55 | 
            +
                },
         | 
| 56 | 
            +
                setValueLive: function (value) {
         | 
| 57 | 
            +
                    if (!Formula.latexeasy) {
         | 
| 58 | 
            +
                        setTimeout(function () {
         | 
| 59 | 
            +
                            Formula.setValueLive(value);
         | 
| 60 | 
            +
                        }, 100);
         | 
| 61 | 
            +
                        return;
         | 
| 62 | 
            +
                    }
         | 
| 63 | 
            +
                    Formula.latexeasy.call('set.latex', {latex: value});
         | 
| 64 | 
            +
                },
         | 
| 65 | 
            +
                initMode: function () {
         | 
| 66 | 
            +
                    var formulaConfig = editor.getOpt('formulaConfig');
         | 
| 67 | 
            +
                    if ('live' === formulaConfig.editorMode) {
         | 
| 68 | 
            +
                        $('#liveEditor').attr('src', formulaConfig.editorLiveServer + '/editor');
         | 
| 69 | 
            +
                        $('#modeLive').show();
         | 
| 70 | 
            +
                        Formula.mode = 'live';
         | 
| 71 | 
            +
                    } else {
         | 
| 72 | 
            +
                        $('#modePlain').show();
         | 
| 73 | 
            +
                        Formula.mode = 'plain';
         | 
| 74 | 
            +
                    }
         | 
| 75 | 
            +
                    var img = editor.selection.getRange().getClosedNode();
         | 
| 76 | 
            +
                    if (img && img.getAttribute('data-formula-image') !== null) {
         | 
| 77 | 
            +
                        var value = img.getAttribute('data-formula-image');
         | 
| 78 | 
            +
                        if (value) {
         | 
| 79 | 
            +
                            Formula.setValue(decodeURIComponent(value));
         | 
| 80 | 
            +
                        }
         | 
| 81 | 
            +
                    }
         | 
| 82 | 
            +
                },
         | 
| 83 | 
            +
                setValue: function (value) {
         | 
| 84 | 
            +
                    switch (Formula.mode) {
         | 
| 85 | 
            +
                        case 'plain':
         | 
| 86 | 
            +
                            Formula.setValuePlain(value);
         | 
| 87 | 
            +
                            break;
         | 
| 88 | 
            +
                        case 'live':
         | 
| 89 | 
            +
                            Formula.setValueLive(value);
         | 
| 90 | 
            +
                            break;
         | 
| 91 | 
            +
                    }
         | 
| 92 | 
            +
                },
         | 
| 93 | 
            +
                getValue: function (cb) {
         | 
| 94 | 
            +
                    switch (Formula.mode) {
         | 
| 95 | 
            +
                        case 'plain':
         | 
| 96 | 
            +
                            cb($.trim($('#editor').val()));
         | 
| 97 | 
            +
                            break;
         | 
| 98 | 
            +
                        case 'live':
         | 
| 99 | 
            +
                            Formula.latexeasy.call('get.latex', {}, function (data) {
         | 
| 100 | 
            +
                                cb(data.latex);
         | 
| 101 | 
            +
                            });
         | 
| 102 | 
            +
                            break;
         | 
| 103 | 
            +
                    }
         | 
| 104 | 
            +
                },
         | 
| 105 | 
            +
                initEvent: function () {
         | 
| 106 | 
            +
                    var changeTimer = null, le;
         | 
| 107 | 
            +
                    switch (Formula.mode) {
         | 
| 108 | 
            +
                        case 'plain':
         | 
| 109 | 
            +
                            // console.log('Formula.initEvent');
         | 
| 110 | 
            +
                            $('#editor').on('change keypress', function () {
         | 
| 111 | 
            +
                                changeTimer && clearTimeout(changeTimer);
         | 
| 112 | 
            +
                                changeTimer = setTimeout(function () {
         | 
| 113 | 
            +
                                    Formula.renderPlain();
         | 
| 114 | 
            +
                                }, 1000);
         | 
| 115 | 
            +
                            });
         | 
| 116 | 
            +
                            $('#inputDemo').on('click', function () {
         | 
| 117 | 
            +
                                $('#editor').val('f(a) = \\frac{1}{2\\pi i} \\oint\\frac{f(z)}{z-a}dz');
         | 
| 118 | 
            +
                                Formula.renderPlain();
         | 
| 119 | 
            +
                            });
         | 
| 120 | 
            +
                            break;
         | 
| 121 | 
            +
                        case 'live':
         | 
| 122 | 
            +
                            var formulaConfig = editor.getOpt('formulaConfig');
         | 
| 123 | 
            +
                            loadScript(formulaConfig.editorLiveServer + '/vendor/LatexEasyEditor/editor/sdk.js', function () {
         | 
| 124 | 
            +
                                le = new window.LatexEasy(document.getElementById('liveEditor'));
         | 
| 125 | 
            +
                                le.on('ready', function () {
         | 
| 126 | 
            +
                                    Formula.latexeasy = le;
         | 
| 127 | 
            +
                                });
         | 
| 128 | 
            +
                                le.init();
         | 
| 129 | 
            +
                            });
         | 
| 130 | 
            +
                            break;
         | 
| 131 | 
            +
                    }
         | 
| 132 | 
            +
                },
         | 
| 133 | 
            +
                initSubmit: function () {
         | 
| 134 | 
            +
                    dialog.onclose = function (t, ok) {
         | 
| 135 | 
            +
                        if (!ok) {
         | 
| 136 | 
            +
                            return true;
         | 
| 137 | 
            +
                        }
         | 
| 138 | 
            +
                        // console.log('onclose', t, ok);
         | 
| 139 | 
            +
                        Formula.getValue(function (value) {
         | 
| 140 | 
            +
                            editor.execCommand('formula', value);
         | 
| 141 | 
            +
                            editor.fireEvent('saveScene');
         | 
| 142 | 
            +
                            dialog.close(false);
         | 
| 143 | 
            +
                        });
         | 
| 144 | 
            +
                        return false;
         | 
| 145 | 
            +
                    };
         | 
| 146 | 
            +
                }
         | 
| 147 | 
            +
            };
         | 
| @@ -1,37 +1,37 @@ | |
| 1 | 
            -
            .wrapper {
         | 
| 2 | 
            -
                width: 370px;
         | 
| 3 | 
            -
                margin: 10px auto;
         | 
| 4 | 
            -
                zoom: 1;
         | 
| 5 | 
            -
            }
         | 
| 6 | 
            -
             | 
| 7 | 
            -
            .tabbody {
         | 
| 8 | 
            -
                height: 360px;
         | 
| 9 | 
            -
            }
         | 
| 10 | 
            -
             | 
| 11 | 
            -
            .tabbody .panel {
         | 
| 12 | 
            -
                width: 100%;
         | 
| 13 | 
            -
                height: 360px;
         | 
| 14 | 
            -
                position: absolute;
         | 
| 15 | 
            -
                background: #fff;
         | 
| 16 | 
            -
            }
         | 
| 17 | 
            -
             | 
| 18 | 
            -
            .tabbody .panel h1 {
         | 
| 19 | 
            -
                font-size: 26px;
         | 
| 20 | 
            -
                margin: 5px 0 0 5px;
         | 
| 21 | 
            -
            }
         | 
| 22 | 
            -
             | 
| 23 | 
            -
            .tabbody .panel p {
         | 
| 24 | 
            -
                font-size: 12px;
         | 
| 25 | 
            -
                margin: 5px 0 0 5px;
         | 
| 26 | 
            -
            }
         | 
| 27 | 
            -
             | 
| 28 | 
            -
            .tabbody table {
         | 
| 29 | 
            -
                width: 90%;
         | 
| 30 | 
            -
                line-height: 20px;
         | 
| 31 | 
            -
                margin: 5px 0 0 5px;;
         | 
| 32 | 
            -
            }
         | 
| 33 | 
            -
             | 
| 34 | 
            -
            .tabbody table thead {
         | 
| 35 | 
            -
                font-weight: bold;
         | 
| 36 | 
            -
                line-height: 25px;
         | 
| 37 | 
            -
            }
         | 
| 1 | 
            +
            .wrapper {
         | 
| 2 | 
            +
                width: 370px;
         | 
| 3 | 
            +
                margin: 10px auto;
         | 
| 4 | 
            +
                zoom: 1;
         | 
| 5 | 
            +
            }
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            .tabbody {
         | 
| 8 | 
            +
                height: 360px;
         | 
| 9 | 
            +
            }
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            .tabbody .panel {
         | 
| 12 | 
            +
                width: 100%;
         | 
| 13 | 
            +
                height: 360px;
         | 
| 14 | 
            +
                position: absolute;
         | 
| 15 | 
            +
                background: #fff;
         | 
| 16 | 
            +
            }
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            .tabbody .panel h1 {
         | 
| 19 | 
            +
                font-size: 26px;
         | 
| 20 | 
            +
                margin: 5px 0 0 5px;
         | 
| 21 | 
            +
            }
         | 
| 22 | 
            +
             | 
| 23 | 
            +
            .tabbody .panel p {
         | 
| 24 | 
            +
                font-size: 12px;
         | 
| 25 | 
            +
                margin: 5px 0 0 5px;
         | 
| 26 | 
            +
            }
         | 
| 27 | 
            +
             | 
| 28 | 
            +
            .tabbody table {
         | 
| 29 | 
            +
                width: 90%;
         | 
| 30 | 
            +
                line-height: 20px;
         | 
| 31 | 
            +
                margin: 5px 0 0 5px;;
         | 
| 32 | 
            +
            }
         | 
| 33 | 
            +
             | 
| 34 | 
            +
            .tabbody table thead {
         | 
| 35 | 
            +
                font-weight: bold;
         | 
| 36 | 
            +
                line-height: 25px;
         | 
| 37 | 
            +
            }
         | 
| @@ -1,82 +1,82 @@ | |
| 1 | 
            -
            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
         | 
| 2 | 
            -
                "http://www.w3.org/TR/html4/loose.dtd">
         | 
| 3 | 
            -
            <html>
         | 
| 4 | 
            -
            <head>
         | 
| 5 | 
            -
                <title>帮助</title>
         | 
| 6 | 
            -
                <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
         | 
| 7 | 
            -
                <script type="text/javascript" src="../internal.js? | 
| 8 | 
            -
                <link rel="stylesheet" type="text/css" href="help.css? | 
| 9 | 
            -
            </head>
         | 
| 10 | 
            -
            <body>
         | 
| 11 | 
            -
            <div class="wrapper" id="helptab">
         | 
| 12 | 
            -
                <div id="tabHeads" class="tabhead">
         | 
| 13 | 
            -
                    <span class="focus" tabsrc="about"><var id="lang_input_about"></var></span>
         | 
| 14 | 
            -
                    <span tabsrc="shortcuts"><var id="lang_input_shortcuts"></var></span>
         | 
| 15 | 
            -
                </div>
         | 
| 16 | 
            -
                <div id="tabBodys" class="tabbody">
         | 
| 17 | 
            -
                    <div id="about" class="panel">
         | 
| 18 | 
            -
                        <h1>UEditor Plus</h1>
         | 
| 19 | 
            -
                        <p id="version"></p>
         | 
| 20 | 
            -
                        <p><var id="lang_input_introduction"></var></p>
         | 
| 21 | 
            -
                    </div>
         | 
| 22 | 
            -
                    <div id="shortcuts" class="panel">
         | 
| 23 | 
            -
                        <table>
         | 
| 24 | 
            -
                            <thead>
         | 
| 25 | 
            -
                            <tr>
         | 
| 26 | 
            -
                                <td><var id="lang_Txt_shortcuts"></var></td>
         | 
| 27 | 
            -
                                <td><var id="lang_Txt_func"></var></td>
         | 
| 28 | 
            -
                            </tr>
         | 
| 29 | 
            -
                            </thead>
         | 
| 30 | 
            -
                            <tbody>
         | 
| 31 | 
            -
                            <tr>
         | 
| 32 | 
            -
                                <td>ctrl+b</td>
         | 
| 33 | 
            -
                                <td><var id="lang_Txt_bold"></var></td>
         | 
| 34 | 
            -
                            </tr>
         | 
| 35 | 
            -
                            <tr>
         | 
| 36 | 
            -
                                <td>ctrl+c</td>
         | 
| 37 | 
            -
                                <td><var id="lang_Txt_copy"></var></td>
         | 
| 38 | 
            -
                            </tr>
         | 
| 39 | 
            -
                            <tr>
         | 
| 40 | 
            -
                                <td>ctrl+x</td>
         | 
| 41 | 
            -
                                <td><var id="lang_Txt_cut"></var></td>
         | 
| 42 | 
            -
                            </tr>
         | 
| 43 | 
            -
                            <tr>
         | 
| 44 | 
            -
                                <td>ctrl+v</td>
         | 
| 45 | 
            -
                                <td><var id="lang_Txt_Paste"></var></td>
         | 
| 46 | 
            -
                            </tr>
         | 
| 47 | 
            -
                            <tr>
         | 
| 48 | 
            -
                                <td>ctrl+y</td>
         | 
| 49 | 
            -
                                <td><var id="lang_Txt_undo"></var></td>
         | 
| 50 | 
            -
                            </tr>
         | 
| 51 | 
            -
                            <tr>
         | 
| 52 | 
            -
                                <td>ctrl+z</td>
         | 
| 53 | 
            -
                                <td><var id="lang_Txt_redo"></var></td>
         | 
| 54 | 
            -
                            </tr>
         | 
| 55 | 
            -
                            <tr>
         | 
| 56 | 
            -
                                <td>ctrl+i</td>
         | 
| 57 | 
            -
                                <td><var id="lang_Txt_italic"></var></td>
         | 
| 58 | 
            -
                            </tr>
         | 
| 59 | 
            -
                            <tr>
         | 
| 60 | 
            -
                                <td>ctrl+u</td>
         | 
| 61 | 
            -
                                <td><var id="lang_Txt_underline"></var></td>
         | 
| 62 | 
            -
                            </tr>
         | 
| 63 | 
            -
                            <tr>
         | 
| 64 | 
            -
                                <td>ctrl+a</td>
         | 
| 65 | 
            -
                                <td><var id="lang_Txt_selectAll"></var></td>
         | 
| 66 | 
            -
                            </tr>
         | 
| 67 | 
            -
                            <tr>
         | 
| 68 | 
            -
                                <td>shift+enter</td>
         | 
| 69 | 
            -
                                <td><var id="lang_Txt_visualEnter"></var></td>
         | 
| 70 | 
            -
                            </tr>
         | 
| 71 | 
            -
                            <tr>
         | 
| 72 | 
            -
                                <td>alt+z</td>
         | 
| 73 | 
            -
                                <td><var id="lang_Txt_fullscreen"></var></td>
         | 
| 74 | 
            -
                            </tr>
         | 
| 75 | 
            -
                            </tbody>
         | 
| 76 | 
            -
                        </table>
         | 
| 77 | 
            -
                    </div>
         | 
| 78 | 
            -
                </div>
         | 
| 79 | 
            -
            </div>
         | 
| 80 | 
            -
            <script type="text/javascript" src="help.js? | 
| 81 | 
            -
            </body>
         | 
| 82 | 
            -
            </html>
         | 
| 1 | 
            +
            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
         | 
| 2 | 
            +
                "http://www.w3.org/TR/html4/loose.dtd">
         | 
| 3 | 
            +
            <html>
         | 
| 4 | 
            +
            <head>
         | 
| 5 | 
            +
                <title>帮助</title>
         | 
| 6 | 
            +
                <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
         | 
| 7 | 
            +
                <script type="text/javascript" src="../internal.js?aea0c61c"></script>
         | 
| 8 | 
            +
                <link rel="stylesheet" type="text/css" href="help.css?81231bdb">
         | 
| 9 | 
            +
            </head>
         | 
| 10 | 
            +
            <body>
         | 
| 11 | 
            +
            <div class="wrapper" id="helptab">
         | 
| 12 | 
            +
                <div id="tabHeads" class="tabhead">
         | 
| 13 | 
            +
                    <span class="focus" tabsrc="about"><var id="lang_input_about"></var></span>
         | 
| 14 | 
            +
                    <span tabsrc="shortcuts"><var id="lang_input_shortcuts"></var></span>
         | 
| 15 | 
            +
                </div>
         | 
| 16 | 
            +
                <div id="tabBodys" class="tabbody">
         | 
| 17 | 
            +
                    <div id="about" class="panel">
         | 
| 18 | 
            +
                        <h1>UEditor Plus</h1>
         | 
| 19 | 
            +
                        <p id="version"></p>
         | 
| 20 | 
            +
                        <p><var id="lang_input_introduction"></var></p>
         | 
| 21 | 
            +
                    </div>
         | 
| 22 | 
            +
                    <div id="shortcuts" class="panel">
         | 
| 23 | 
            +
                        <table>
         | 
| 24 | 
            +
                            <thead>
         | 
| 25 | 
            +
                            <tr>
         | 
| 26 | 
            +
                                <td><var id="lang_Txt_shortcuts"></var></td>
         | 
| 27 | 
            +
                                <td><var id="lang_Txt_func"></var></td>
         | 
| 28 | 
            +
                            </tr>
         | 
| 29 | 
            +
                            </thead>
         | 
| 30 | 
            +
                            <tbody>
         | 
| 31 | 
            +
                            <tr>
         | 
| 32 | 
            +
                                <td>ctrl+b</td>
         | 
| 33 | 
            +
                                <td><var id="lang_Txt_bold"></var></td>
         | 
| 34 | 
            +
                            </tr>
         | 
| 35 | 
            +
                            <tr>
         | 
| 36 | 
            +
                                <td>ctrl+c</td>
         | 
| 37 | 
            +
                                <td><var id="lang_Txt_copy"></var></td>
         | 
| 38 | 
            +
                            </tr>
         | 
| 39 | 
            +
                            <tr>
         | 
| 40 | 
            +
                                <td>ctrl+x</td>
         | 
| 41 | 
            +
                                <td><var id="lang_Txt_cut"></var></td>
         | 
| 42 | 
            +
                            </tr>
         | 
| 43 | 
            +
                            <tr>
         | 
| 44 | 
            +
                                <td>ctrl+v</td>
         | 
| 45 | 
            +
                                <td><var id="lang_Txt_Paste"></var></td>
         | 
| 46 | 
            +
                            </tr>
         | 
| 47 | 
            +
                            <tr>
         | 
| 48 | 
            +
                                <td>ctrl+y</td>
         | 
| 49 | 
            +
                                <td><var id="lang_Txt_undo"></var></td>
         | 
| 50 | 
            +
                            </tr>
         | 
| 51 | 
            +
                            <tr>
         | 
| 52 | 
            +
                                <td>ctrl+z</td>
         | 
| 53 | 
            +
                                <td><var id="lang_Txt_redo"></var></td>
         | 
| 54 | 
            +
                            </tr>
         | 
| 55 | 
            +
                            <tr>
         | 
| 56 | 
            +
                                <td>ctrl+i</td>
         | 
| 57 | 
            +
                                <td><var id="lang_Txt_italic"></var></td>
         | 
| 58 | 
            +
                            </tr>
         | 
| 59 | 
            +
                            <tr>
         | 
| 60 | 
            +
                                <td>ctrl+u</td>
         | 
| 61 | 
            +
                                <td><var id="lang_Txt_underline"></var></td>
         | 
| 62 | 
            +
                            </tr>
         | 
| 63 | 
            +
                            <tr>
         | 
| 64 | 
            +
                                <td>ctrl+a</td>
         | 
| 65 | 
            +
                                <td><var id="lang_Txt_selectAll"></var></td>
         | 
| 66 | 
            +
                            </tr>
         | 
| 67 | 
            +
                            <tr>
         | 
| 68 | 
            +
                                <td>shift+enter</td>
         | 
| 69 | 
            +
                                <td><var id="lang_Txt_visualEnter"></var></td>
         | 
| 70 | 
            +
                            </tr>
         | 
| 71 | 
            +
                            <tr>
         | 
| 72 | 
            +
                                <td>alt+z</td>
         | 
| 73 | 
            +
                                <td><var id="lang_Txt_fullscreen"></var></td>
         | 
| 74 | 
            +
                            </tr>
         | 
| 75 | 
            +
                            </tbody>
         | 
| 76 | 
            +
                        </table>
         | 
| 77 | 
            +
                    </div>
         | 
| 78 | 
            +
                </div>
         | 
| 79 | 
            +
            </div>
         | 
| 80 | 
            +
            <script type="text/javascript" src="help.js?0a6823d2"></script>
         | 
| 81 | 
            +
            </body>
         | 
| 82 | 
            +
            </html>
         | 
| @@ -1,57 +1,57 @@ | |
| 1 | 
            -
            /**
         | 
| 2 | 
            -
             * Created with JetBrains PhpStorm.
         | 
| 3 | 
            -
             * User: xuheng
         | 
| 4 | 
            -
             * Date: 12-9-26
         | 
| 5 | 
            -
             * Time: 下午1:06
         | 
| 6 | 
            -
             * To change this template use File | Settings | File Templates.
         | 
| 7 | 
            -
             */
         | 
| 8 | 
            -
            /**
         | 
| 9 | 
            -
             * tab点击处理事件
         | 
| 10 | 
            -
             * @param tabHeads
         | 
| 11 | 
            -
             * @param tabBodys
         | 
| 12 | 
            -
             * @param obj
         | 
| 13 | 
            -
             */
         | 
| 14 | 
            -
            function clickHandler(tabHeads, tabBodys, obj) {
         | 
| 15 | 
            -
                //head样式更改
         | 
| 16 | 
            -
                for (var k = 0, len = tabHeads.length; k < len; k++) {
         | 
| 17 | 
            -
                    tabHeads[k].className = "";
         | 
| 18 | 
            -
                }
         | 
| 19 | 
            -
                obj.className = "focus";
         | 
| 20 | 
            -
                //body显隐
         | 
| 21 | 
            -
                var tabSrc = obj.getAttribute("tabSrc");
         | 
| 22 | 
            -
                for (var j = 0, length = tabBodys.length; j < length; j++) {
         | 
| 23 | 
            -
                    var body = tabBodys[j],
         | 
| 24 | 
            -
                        id = body.getAttribute("id");
         | 
| 25 | 
            -
                    body.onclick = function () {
         | 
| 26 | 
            -
                        this.style.zoom = 1;
         | 
| 27 | 
            -
                    };
         | 
| 28 | 
            -
                    if (id != tabSrc) {
         | 
| 29 | 
            -
                        body.style.zIndex = 1;
         | 
| 30 | 
            -
                    } else {
         | 
| 31 | 
            -
                        body.style.zIndex = 200;
         | 
| 32 | 
            -
                    }
         | 
| 33 | 
            -
                }
         | 
| 34 | 
            -
             | 
| 35 | 
            -
            }
         | 
| 36 | 
            -
             | 
| 37 | 
            -
            /**
         | 
| 38 | 
            -
             * TAB切换
         | 
| 39 | 
            -
             * @param tabParentId  tab的父节点ID或者对象本身
         | 
| 40 | 
            -
             */
         | 
| 41 | 
            -
            function switchTab(tabParentId) {
         | 
| 42 | 
            -
                var tabElements = $G(tabParentId).children,
         | 
| 43 | 
            -
                    tabHeads = tabElements[0].children,
         | 
| 44 | 
            -
                    tabBodys = tabElements[1].children;
         | 
| 45 | 
            -
             | 
| 46 | 
            -
                for (var i = 0, length = tabHeads.length; i < length; i++) {
         | 
| 47 | 
            -
                    var head = tabHeads[i];
         | 
| 48 | 
            -
                    if (head.className === "focus") clickHandler(tabHeads, tabBodys, head);
         | 
| 49 | 
            -
                    head.onclick = function () {
         | 
| 50 | 
            -
                        clickHandler(tabHeads, tabBodys, this);
         | 
| 51 | 
            -
                    }
         | 
| 52 | 
            -
                }
         | 
| 53 | 
            -
            }
         | 
| 54 | 
            -
             | 
| 55 | 
            -
            switchTab("helptab");
         | 
| 56 | 
            -
             | 
| 57 | 
            -
            document.getElementById('version').innerHTML = parent.UE.version;
         | 
| 1 | 
            +
            /**
         | 
| 2 | 
            +
             * Created with JetBrains PhpStorm.
         | 
| 3 | 
            +
             * User: xuheng
         | 
| 4 | 
            +
             * Date: 12-9-26
         | 
| 5 | 
            +
             * Time: 下午1:06
         | 
| 6 | 
            +
             * To change this template use File | Settings | File Templates.
         | 
| 7 | 
            +
             */
         | 
| 8 | 
            +
            /**
         | 
| 9 | 
            +
             * tab点击处理事件
         | 
| 10 | 
            +
             * @param tabHeads
         | 
| 11 | 
            +
             * @param tabBodys
         | 
| 12 | 
            +
             * @param obj
         | 
| 13 | 
            +
             */
         | 
| 14 | 
            +
            function clickHandler(tabHeads, tabBodys, obj) {
         | 
| 15 | 
            +
                //head样式更改
         | 
| 16 | 
            +
                for (var k = 0, len = tabHeads.length; k < len; k++) {
         | 
| 17 | 
            +
                    tabHeads[k].className = "";
         | 
| 18 | 
            +
                }
         | 
| 19 | 
            +
                obj.className = "focus";
         | 
| 20 | 
            +
                //body显隐
         | 
| 21 | 
            +
                var tabSrc = obj.getAttribute("tabSrc");
         | 
| 22 | 
            +
                for (var j = 0, length = tabBodys.length; j < length; j++) {
         | 
| 23 | 
            +
                    var body = tabBodys[j],
         | 
| 24 | 
            +
                        id = body.getAttribute("id");
         | 
| 25 | 
            +
                    body.onclick = function () {
         | 
| 26 | 
            +
                        this.style.zoom = 1;
         | 
| 27 | 
            +
                    };
         | 
| 28 | 
            +
                    if (id != tabSrc) {
         | 
| 29 | 
            +
                        body.style.zIndex = 1;
         | 
| 30 | 
            +
                    } else {
         | 
| 31 | 
            +
                        body.style.zIndex = 200;
         | 
| 32 | 
            +
                    }
         | 
| 33 | 
            +
                }
         | 
| 34 | 
            +
             | 
| 35 | 
            +
            }
         | 
| 36 | 
            +
             | 
| 37 | 
            +
            /**
         | 
| 38 | 
            +
             * TAB切换
         | 
| 39 | 
            +
             * @param tabParentId  tab的父节点ID或者对象本身
         | 
| 40 | 
            +
             */
         | 
| 41 | 
            +
            function switchTab(tabParentId) {
         | 
| 42 | 
            +
                var tabElements = $G(tabParentId).children,
         | 
| 43 | 
            +
                    tabHeads = tabElements[0].children,
         | 
| 44 | 
            +
                    tabBodys = tabElements[1].children;
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                for (var i = 0, length = tabHeads.length; i < length; i++) {
         | 
| 47 | 
            +
                    var head = tabHeads[i];
         | 
| 48 | 
            +
                    if (head.className === "focus") clickHandler(tabHeads, tabBodys, head);
         | 
| 49 | 
            +
                    head.onclick = function () {
         | 
| 50 | 
            +
                        clickHandler(tabHeads, tabBodys, this);
         | 
| 51 | 
            +
                    }
         | 
| 52 | 
            +
                }
         | 
| 53 | 
            +
            }
         | 
| 54 | 
            +
             | 
| 55 | 
            +
            switchTab("helptab");
         | 
| 56 | 
            +
             | 
| 57 | 
            +
            document.getElementById('version').innerHTML = parent.UE.version;
         |