@lingxiteam/lcdp-ueditor-react 1.0.0-alpha.1 → 1.0.0-alpha.10
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 +6 -0
- package/es/LcdpUeditor.d.ts.map +1 -0
- package/es/LcdpUeditor.js +37 -13
- package/es/const.d.ts.map +1 -0
- package/es/index.d.ts.map +1 -0
- package/es/tools/UeditorResourceLoader.d.ts.map +1 -0
- package/es/tools/loadScript.d.ts.map +1 -0
- package/es/type.d.ts +1 -1
- package/es/type.d.ts.map +1 -0
- package/lib/LcdpUeditor.d.ts +80 -0
- package/lib/LcdpUeditor.js +260 -0
- package/lib/const.d.ts +12 -0
- package/lib/const.js +39 -0
- package/lib/defaultConfig.json +77 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +41 -0
- package/lib/tools/UeditorResourceLoader.d.ts +21 -0
- package/lib/tools/UeditorResourceLoader.js +90 -0
- package/lib/tools/loadScript.d.ts +5 -0
- package/lib/tools/loadScript.js +39 -0
- package/lib/type.d.ts +142 -0
- package/lib/type.js +17 -0
- package/package.json +5 -3
- package/ueditor-resource/dialogs/image/image.js +1 -1
- package/ueditor-resource/dialogs/preview/preview.html +1 -1
- package/ueditor-resource/dialogs/video/video.js +1 -1
- package/ueditor-resource/index.html +146 -146
- package/ueditor-resource/lang/zh-tw/images/copy.png +0 -0
- package/ueditor-resource/lang/zh-tw/images/localimage.png +0 -0
- package/ueditor-resource/lang/zh-tw/images/music.png +0 -0
- package/ueditor-resource/lang/zh-tw/images/upload.png +0 -0
- package/ueditor-resource/lang/zh-tw/zh-tw.js +748 -0
- package/ueditor-resource/{ueditor.all.js → lcdp-ueditor.all.js} +2 -2
- package/ueditor-resource/themes/default/css/ueditor.css +1 -1
- package/ueditor-resource/ueditor.config.js +0 -1
- /package/ueditor-resource/{ueditor.parse.js → lcdp-ueditor.parse.js} +0 -0
| @@ -1,146 +1,146 @@ | |
| 1 | 
            -
            <!doctype html>
         | 
| 2 | 
            -
            <html>
         | 
| 3 | 
            -
            <head>
         | 
| 4 | 
            -
                <title>UEditorPlus 完整演示</title>
         | 
| 5 | 
            -
                <meta name="viewport" content="width=device-width, minimum-scale=0.5, maximum-scale=5, user-scalable=no">
         | 
| 6 | 
            -
                <meta http-equiv="X-UA-Compatible" content="ie=edge">
         | 
| 7 | 
            -
                <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
         | 
| 8 | 
            -
                <script type="text/javascript" charset="utf-8" src="ueditor.config.js"></script>
         | 
| 9 | 
            -
                <script type="text/javascript" charset="utf-8" src="ueditor.all.js"></script>
         | 
| 10 | 
            -
                <script type="text/javascript" charset="utf-8" src="lang/zh-cn/zh-cn.js?8c5d8442"></script>
         | 
| 11 | 
            -
                <script src="./plugins/demo/demo.js"></script>
         | 
| 12 | 
            -
                <script>
         | 
| 13 | 
            -
                    // window.UEDITOR_CONFIG.toolbars[0].push('undo');
         | 
| 14 | 
            -
                </script>
         | 
| 15 | 
            -
                <script>var _hmt = _hmt || [];
         | 
| 16 | 
            -
                (function () {
         | 
| 17 | 
            -
                    var hm = document.createElement("script");
         | 
| 18 | 
            -
                    hm.src = "https://hm.baidu.com/hm.js?f84f35a44b5cc5c0b10c3fabdf0f322b";
         | 
| 19 | 
            -
                    var s = document.getElementsByTagName("script")[0];
         | 
| 20 | 
            -
                    s.parentNode.insertBefore(hm, s);
         | 
| 21 | 
            -
                })();</script>
         | 
| 22 | 
            -
                <style>
         | 
| 23 | 
            -
                    :root {
         | 
| 24 | 
            -
                        /*--ueditor-top-offset: 20px;*/
         | 
| 25 | 
            -
                    }
         | 
| 26 | 
            -
                </style>
         | 
| 27 | 
            -
                <link rel="stylesheet" href="./style.css"/>
         | 
| 28 | 
            -
            </head>
         | 
| 29 | 
            -
            <body class="demo-editor-page">
         | 
| 30 | 
            -
            <div>
         | 
| 31 | 
            -
                <h1>完整示例</h1>
         | 
| 32 | 
            -
                <div>
         | 
| 33 | 
            -
                    <script id="editor" type="text/plain" style="height:300px;">
         | 
| 34 | 
            -
            <h1>
         | 
| 35 | 
            -
                你好 UEditorPlus
         | 
| 36 | 
            -
            </h1>
         | 
| 37 | 
            -
            <p>
         | 
| 38 | 
            -
                UEditorPlus 是基于 UEditor 二次开发的富文本编辑器,让 UEditor <span style="color: #E36C09;">焕<span style="color: #0070C0;">然</span><span style="color: #31859B;"><span style="color: #00B050;">一</span><span style="color: #FF0000;">新</span></span></span>
         | 
| 39 | 
            -
            </p>
         | 
| 40 | 
            -
             | 
| 41 | 
            -
            <table data-sort="sortDisabled">
         | 
| 42 | 
            -
                <tbody>
         | 
| 43 | 
            -
                    <tr class="firstRow">
         | 
| 44 | 
            -
                        <td valign="top" style="word-break: break-all;" rowspan="1" colspan="3">
         | 
| 45 | 
            -
                            我是表格
         | 
| 46 | 
            -
                        </td>
         | 
| 47 | 
            -
                    </tr>
         | 
| 48 | 
            -
                    <tr>
         | 
| 49 | 
            -
                        <td width="273" valign="top" style="word-break: break-all;">
         | 
| 50 | 
            -
                            如果
         | 
| 51 | 
            -
                        </td>
         | 
| 52 | 
            -
                        <td width="273" valign="top" style="word-break: break-all;">
         | 
| 53 | 
            -
                            有一天
         | 
| 54 | 
            -
                        </td>
         | 
| 55 | 
            -
                        <td width="273" valign="top" style="word-break: break-all;">
         | 
| 56 | 
            -
                            我离开了
         | 
| 57 | 
            -
                        </td>
         | 
| 58 | 
            -
                    </tr>
         | 
| 59 | 
            -
                    <tr>
         | 
| 60 | 
            -
                        <td valign="top" colspan="1" rowspan="1" style="word-break: break-all;">
         | 
| 61 | 
            -
                            怎么才能
         | 
| 62 | 
            -
                        </td>
         | 
| 63 | 
            -
                        <td valign="top" colspan="1" rowspan="1" style="word-break: break-all;">
         | 
| 64 | 
            -
                            证明我
         | 
| 65 | 
            -
                        </td>
         | 
| 66 | 
            -
                        <td valign="top" colspan="1" rowspan="1" style="word-break: break-all;">
         | 
| 67 | 
            -
                            曾经来过
         | 
| 68 | 
            -
                        </td>
         | 
| 69 | 
            -
                    </tr>
         | 
| 70 | 
            -
                </tbody>
         | 
| 71 | 
            -
            </table>
         | 
| 72 | 
            -
            <pre class="brush:html;toolbar:false"><div>
         | 
| 73 | 
            -
              <span>这里是HTML标签</span>
         | 
| 74 | 
            -
            </div></pre>
         | 
| 75 | 
            -
            <h2>
         | 
| 76 | 
            -
            公式支持
         | 
| 77 | 
            -
            </h2>
         | 
| 78 | 
            -
            <p>
         | 
| 79 | 
            -
                <img src="https://r.latexeasy.com/image.svg?%5Cint%20%5Cfrac%7B1%7D%7Bx%7D%20dx%20%3D%20%5Cln%20%5Cleft%7C%20x%20%5Cright%7C%20%2B%20C"
         | 
| 80 | 
            -
                  data-formula-image="%5Cint%20%5Cfrac%7B1%7D%7Bx%7D%20dx%20%3D%20%5Cln%20%5Cleft%7C%20x%20%5Cright%7C%20%2B%20C"/>
         | 
| 81 | 
            -
            </p>
         | 
| 82 | 
            -
            <p>
         | 
| 83 | 
            -
                <br/>
         | 
| 84 | 
            -
            </p>
         | 
| 85 | 
            -
             | 
| 86 | 
            -
                    </script>
         | 
| 87 | 
            -
                </div>
         | 
| 88 | 
            -
                <div id="btns" style="margin-top:20px;">
         | 
| 89 | 
            -
                    <div>
         | 
| 90 | 
            -
             | 
| 91 | 
            -
                        <button onclick="alert(UE.getEditor('editor').getAllHtml())">获得整个html的内容</button>
         | 
| 92 | 
            -
                        <button onclick="alert(UE.getEditor('editor').getContent())">获得内容</button>
         | 
| 93 | 
            -
                        <button onclick="UE.getEditor('editor').setContent('<p>欢迎使用 UEditorPlus</p>', false)">写入内容</button>
         | 
| 94 | 
            -
                        <button onclick="UE.getEditor('editor').setContent('<p>欢迎使用 UEditorPlus</p>', true)">追加内容</button>
         | 
| 95 | 
            -
                        <button onclick="alert(UE.getEditor('editor').getContentTxt())">获得纯文本</button>
         | 
| 96 | 
            -
                        <button onclick="alert(UE.getEditor('editor').getPlainTxt())">获得带格式的纯文本</button>
         | 
| 97 | 
            -
                        <button onclick="alert(UE.getEditor('editor').hasContents())">判断是否有内容</button>
         | 
| 98 | 
            -
                        <button onclick="UE.getEditor('editor').focus()">使编辑器获得焦点</button>
         | 
| 99 | 
            -
                        <button onmousedown="isFocus()">编辑器是否获得焦点</button>
         | 
| 100 | 
            -
                        <button onmousedown="setBlur()">编辑器失去焦点</button>
         | 
| 101 | 
            -
                        <button onclick="getSelectText()">获得当前选中的文本</button>
         | 
| 102 | 
            -
                        <button onclick="UE.getEditor('editor').execCommand('insertHtml', '插入的内容')">插入内容</button>
         | 
| 103 | 
            -
                        <button onclick="UE.getEditor('editor').setEnabled()">设定可编辑</button>
         | 
| 104 | 
            -
                        <button onclick="UE.getEditor('editor').setDisabled('fullscreen')">设定不可编辑</button>
         | 
| 105 | 
            -
                        <button onclick="UE.getEditor('editor').setHide()">隐藏编辑器</button>
         | 
| 106 | 
            -
                        <button onclick="UE.getEditor('editor').setShow()">显示编辑器</button>
         | 
| 107 | 
            -
                        <button onclick="UE.getEditor('editor').setHeight(300)">设置固定高度</button>
         | 
| 108 | 
            -
                        <button onclick="UE.getEditor('editor')">创建编辑器</button>
         | 
| 109 | 
            -
                        <button onclick="UE.getEditor('editor').destroy()">销毁编辑器</button>
         | 
| 110 | 
            -
                        <button onclick="alert( UE.getEditor('editor').execCommand('get_auto_save_content') )">草稿箱-获取</button>
         | 
| 111 | 
            -
                        <button onclick="UE.getEditor('editor').execCommand('clear_auto_save_content'); alert('已清空草稿箱')">草稿箱-清空
         | 
| 112 | 
            -
                        </button>
         | 
| 113 | 
            -
                        <button onclick="UE.getEditor('editor').execCommand('set_auto_save_content'); alert('已保存')">草稿箱-立即保存
         | 
| 114 | 
            -
                        </button>
         | 
| 115 | 
            -
                        <button onclick="UE.getEditor('editor').execCommand('auto_save_restore')">草稿箱-恢复到编辑器</button>
         | 
| 116 | 
            -
                    </div>
         | 
| 117 | 
            -
                </div>
         | 
| 118 | 
            -
             | 
| 119 | 
            -
                <script type="text/javascript">
         | 
| 120 | 
            -
                    var ue = UE.getEditor('editor',{
         | 
| 121 | 
            -
                        // autoHeightEnabled: false,
         | 
| 122 | 
            -
                    });
         | 
| 123 | 
            -
                    ue.on('contentchange', function () {
         | 
| 124 | 
            -
                        // console.log('contentchange', ue.getContent());
         | 
| 125 | 
            -
                    });
         | 
| 126 | 
            -
             | 
| 127 | 
            -
                    function isFocus(e) {
         | 
| 128 | 
            -
                        alert(UE.getEditor('editor').isFocus());
         | 
| 129 | 
            -
                        UE.dom.domUtils.preventDefault(e)
         | 
| 130 | 
            -
                    }
         | 
| 131 | 
            -
             | 
| 132 | 
            -
                    function setBlur(e) {
         | 
| 133 | 
            -
                        UE.getEditor('editor').blur();
         | 
| 134 | 
            -
                        UE.dom.domUtils.preventDefault(e)
         | 
| 135 | 
            -
                    }
         | 
| 136 | 
            -
             | 
| 137 | 
            -
                    function getSelectText() {
         | 
| 138 | 
            -
                        var range = UE.getEditor('editor').selection.getRange();
         | 
| 139 | 
            -
                        range.select();
         | 
| 140 | 
            -
                        var txt = UE.getEditor('editor').selection.getText();
         | 
| 141 | 
            -
                        alert(txt)
         | 
| 142 | 
            -
                    }
         | 
| 143 | 
            -
                </script>
         | 
| 144 | 
            -
            </div>
         | 
| 145 | 
            -
            </body>
         | 
| 146 | 
            -
            </html>
         | 
| 1 | 
            +
            <!doctype html>
         | 
| 2 | 
            +
            <html>
         | 
| 3 | 
            +
            <head>
         | 
| 4 | 
            +
                <title>UEditorPlus 完整演示</title>
         | 
| 5 | 
            +
                <meta name="viewport" content="width=device-width, minimum-scale=0.5, maximum-scale=5, user-scalable=no">
         | 
| 6 | 
            +
                <meta http-equiv="X-UA-Compatible" content="ie=edge">
         | 
| 7 | 
            +
                <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
         | 
| 8 | 
            +
                <script type="text/javascript" charset="utf-8" src="ueditor.config.js"></script>
         | 
| 9 | 
            +
                <script type="text/javascript" charset="utf-8" src="lcdp-ueditor.all.js"></script>
         | 
| 10 | 
            +
                <script type="text/javascript" charset="utf-8" src="lang/zh-cn/zh-cn.js?8c5d8442"></script>
         | 
| 11 | 
            +
                <script src="./plugins/demo/demo.js"></script>
         | 
| 12 | 
            +
                <script>
         | 
| 13 | 
            +
                    // window.UEDITOR_CONFIG.toolbars[0].push('undo');
         | 
| 14 | 
            +
                </script>
         | 
| 15 | 
            +
                <script>var _hmt = _hmt || [];
         | 
| 16 | 
            +
                (function () {
         | 
| 17 | 
            +
                    var hm = document.createElement("script");
         | 
| 18 | 
            +
                    hm.src = "https://hm.baidu.com/hm.js?f84f35a44b5cc5c0b10c3fabdf0f322b";
         | 
| 19 | 
            +
                    var s = document.getElementsByTagName("script")[0];
         | 
| 20 | 
            +
                    s.parentNode.insertBefore(hm, s);
         | 
| 21 | 
            +
                })();</script>
         | 
| 22 | 
            +
                <style>
         | 
| 23 | 
            +
                    :root {
         | 
| 24 | 
            +
                        /*--ueditor-top-offset: 20px;*/
         | 
| 25 | 
            +
                    }
         | 
| 26 | 
            +
                </style>
         | 
| 27 | 
            +
                <link rel="stylesheet" href="./style.css"/>
         | 
| 28 | 
            +
            </head>
         | 
| 29 | 
            +
            <body class="demo-editor-page">
         | 
| 30 | 
            +
            <div>
         | 
| 31 | 
            +
                <h1>完整示例</h1>
         | 
| 32 | 
            +
                <div>
         | 
| 33 | 
            +
                    <script id="editor" type="text/plain" style="height:300px;">
         | 
| 34 | 
            +
            <h1>
         | 
| 35 | 
            +
                你好 UEditorPlus
         | 
| 36 | 
            +
            </h1>
         | 
| 37 | 
            +
            <p>
         | 
| 38 | 
            +
                UEditorPlus 是基于 UEditor 二次开发的富文本编辑器,让 UEditor <span style="color: #E36C09;">焕<span style="color: #0070C0;">然</span><span style="color: #31859B;"><span style="color: #00B050;">一</span><span style="color: #FF0000;">新</span></span></span>
         | 
| 39 | 
            +
            </p>
         | 
| 40 | 
            +
             | 
| 41 | 
            +
            <table data-sort="sortDisabled">
         | 
| 42 | 
            +
                <tbody>
         | 
| 43 | 
            +
                    <tr class="firstRow">
         | 
| 44 | 
            +
                        <td valign="top" style="word-break: break-all;" rowspan="1" colspan="3">
         | 
| 45 | 
            +
                            我是表格
         | 
| 46 | 
            +
                        </td>
         | 
| 47 | 
            +
                    </tr>
         | 
| 48 | 
            +
                    <tr>
         | 
| 49 | 
            +
                        <td width="273" valign="top" style="word-break: break-all;">
         | 
| 50 | 
            +
                            如果
         | 
| 51 | 
            +
                        </td>
         | 
| 52 | 
            +
                        <td width="273" valign="top" style="word-break: break-all;">
         | 
| 53 | 
            +
                            有一天
         | 
| 54 | 
            +
                        </td>
         | 
| 55 | 
            +
                        <td width="273" valign="top" style="word-break: break-all;">
         | 
| 56 | 
            +
                            我离开了
         | 
| 57 | 
            +
                        </td>
         | 
| 58 | 
            +
                    </tr>
         | 
| 59 | 
            +
                    <tr>
         | 
| 60 | 
            +
                        <td valign="top" colspan="1" rowspan="1" style="word-break: break-all;">
         | 
| 61 | 
            +
                            怎么才能
         | 
| 62 | 
            +
                        </td>
         | 
| 63 | 
            +
                        <td valign="top" colspan="1" rowspan="1" style="word-break: break-all;">
         | 
| 64 | 
            +
                            证明我
         | 
| 65 | 
            +
                        </td>
         | 
| 66 | 
            +
                        <td valign="top" colspan="1" rowspan="1" style="word-break: break-all;">
         | 
| 67 | 
            +
                            曾经来过
         | 
| 68 | 
            +
                        </td>
         | 
| 69 | 
            +
                    </tr>
         | 
| 70 | 
            +
                </tbody>
         | 
| 71 | 
            +
            </table>
         | 
| 72 | 
            +
            <pre class="brush:html;toolbar:false"><div>
         | 
| 73 | 
            +
              <span>这里是HTML标签</span>
         | 
| 74 | 
            +
            </div></pre>
         | 
| 75 | 
            +
            <h2>
         | 
| 76 | 
            +
            公式支持
         | 
| 77 | 
            +
            </h2>
         | 
| 78 | 
            +
            <p>
         | 
| 79 | 
            +
                <img src="https://r.latexeasy.com/image.svg?%5Cint%20%5Cfrac%7B1%7D%7Bx%7D%20dx%20%3D%20%5Cln%20%5Cleft%7C%20x%20%5Cright%7C%20%2B%20C"
         | 
| 80 | 
            +
                  data-formula-image="%5Cint%20%5Cfrac%7B1%7D%7Bx%7D%20dx%20%3D%20%5Cln%20%5Cleft%7C%20x%20%5Cright%7C%20%2B%20C"/>
         | 
| 81 | 
            +
            </p>
         | 
| 82 | 
            +
            <p>
         | 
| 83 | 
            +
                <br/>
         | 
| 84 | 
            +
            </p>
         | 
| 85 | 
            +
             | 
| 86 | 
            +
                    </script>
         | 
| 87 | 
            +
                </div>
         | 
| 88 | 
            +
                <div id="btns" style="margin-top:20px;">
         | 
| 89 | 
            +
                    <div>
         | 
| 90 | 
            +
             | 
| 91 | 
            +
                        <button onclick="alert(UE.getEditor('editor').getAllHtml())">获得整个html的内容</button>
         | 
| 92 | 
            +
                        <button onclick="alert(UE.getEditor('editor').getContent())">获得内容</button>
         | 
| 93 | 
            +
                        <button onclick="UE.getEditor('editor').setContent('<p>欢迎使用 UEditorPlus</p>', false)">写入内容</button>
         | 
| 94 | 
            +
                        <button onclick="UE.getEditor('editor').setContent('<p>欢迎使用 UEditorPlus</p>', true)">追加内容</button>
         | 
| 95 | 
            +
                        <button onclick="alert(UE.getEditor('editor').getContentTxt())">获得纯文本</button>
         | 
| 96 | 
            +
                        <button onclick="alert(UE.getEditor('editor').getPlainTxt())">获得带格式的纯文本</button>
         | 
| 97 | 
            +
                        <button onclick="alert(UE.getEditor('editor').hasContents())">判断是否有内容</button>
         | 
| 98 | 
            +
                        <button onclick="UE.getEditor('editor').focus()">使编辑器获得焦点</button>
         | 
| 99 | 
            +
                        <button onmousedown="isFocus()">编辑器是否获得焦点</button>
         | 
| 100 | 
            +
                        <button onmousedown="setBlur()">编辑器失去焦点</button>
         | 
| 101 | 
            +
                        <button onclick="getSelectText()">获得当前选中的文本</button>
         | 
| 102 | 
            +
                        <button onclick="UE.getEditor('editor').execCommand('insertHtml', '插入的内容')">插入内容</button>
         | 
| 103 | 
            +
                        <button onclick="UE.getEditor('editor').setEnabled()">设定可编辑</button>
         | 
| 104 | 
            +
                        <button onclick="UE.getEditor('editor').setDisabled('fullscreen')">设定不可编辑</button>
         | 
| 105 | 
            +
                        <button onclick="UE.getEditor('editor').setHide()">隐藏编辑器</button>
         | 
| 106 | 
            +
                        <button onclick="UE.getEditor('editor').setShow()">显示编辑器</button>
         | 
| 107 | 
            +
                        <button onclick="UE.getEditor('editor').setHeight(300)">设置固定高度</button>
         | 
| 108 | 
            +
                        <button onclick="UE.getEditor('editor')">创建编辑器</button>
         | 
| 109 | 
            +
                        <button onclick="UE.getEditor('editor').destroy()">销毁编辑器</button>
         | 
| 110 | 
            +
                        <button onclick="alert( UE.getEditor('editor').execCommand('get_auto_save_content') )">草稿箱-获取</button>
         | 
| 111 | 
            +
                        <button onclick="UE.getEditor('editor').execCommand('clear_auto_save_content'); alert('已清空草稿箱')">草稿箱-清空
         | 
| 112 | 
            +
                        </button>
         | 
| 113 | 
            +
                        <button onclick="UE.getEditor('editor').execCommand('set_auto_save_content'); alert('已保存')">草稿箱-立即保存
         | 
| 114 | 
            +
                        </button>
         | 
| 115 | 
            +
                        <button onclick="UE.getEditor('editor').execCommand('auto_save_restore')">草稿箱-恢复到编辑器</button>
         | 
| 116 | 
            +
                    </div>
         | 
| 117 | 
            +
                </div>
         | 
| 118 | 
            +
             | 
| 119 | 
            +
                <script type="text/javascript">
         | 
| 120 | 
            +
                    var ue = UE.getEditor('editor',{
         | 
| 121 | 
            +
                        // autoHeightEnabled: false,
         | 
| 122 | 
            +
                    });
         | 
| 123 | 
            +
                    ue.on('contentchange', function () {
         | 
| 124 | 
            +
                        // console.log('contentchange', ue.getContent());
         | 
| 125 | 
            +
                    });
         | 
| 126 | 
            +
             | 
| 127 | 
            +
                    function isFocus(e) {
         | 
| 128 | 
            +
                        alert(UE.getEditor('editor').isFocus());
         | 
| 129 | 
            +
                        UE.dom.domUtils.preventDefault(e)
         | 
| 130 | 
            +
                    }
         | 
| 131 | 
            +
             | 
| 132 | 
            +
                    function setBlur(e) {
         | 
| 133 | 
            +
                        UE.getEditor('editor').blur();
         | 
| 134 | 
            +
                        UE.dom.domUtils.preventDefault(e)
         | 
| 135 | 
            +
                    }
         | 
| 136 | 
            +
             | 
| 137 | 
            +
                    function getSelectText() {
         | 
| 138 | 
            +
                        var range = UE.getEditor('editor').selection.getRange();
         | 
| 139 | 
            +
                        range.select();
         | 
| 140 | 
            +
                        var txt = UE.getEditor('editor').selection.getText();
         | 
| 141 | 
            +
                        alert(txt)
         | 
| 142 | 
            +
                    }
         | 
| 143 | 
            +
                </script>
         | 
| 144 | 
            +
            </div>
         | 
| 145 | 
            +
            </body>
         | 
| 146 | 
            +
            </html>
         | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file |