/* automatically generated by JSCoverage - do not edit */
try {
  if (typeof top === 'object' && top !== null && typeof top.opener === 'object' && top.opener !== null) {
    // this is a browser window that was opened from another window

    if (! top.opener._$jscoverage) {
      top.opener._$jscoverage = {};
    }
  }
}
catch (e) {}

try {
  if (typeof top === 'object' && top !== null) {
    // this is a browser window

    try {
      if (typeof top.opener === 'object' && top.opener !== null && top.opener._$jscoverage) {
        top._$jscoverage = top.opener._$jscoverage;
      }
    }
    catch (e) {}

    if (! top._$jscoverage) {
      top._$jscoverage = {};
    }
  }
}
catch (e) {}

try {
  if (typeof top === 'object' && top !== null && top._$jscoverage) {
    _$jscoverage = top._$jscoverage;
  }
}
catch (e) {}
if (typeof _$jscoverage !== 'object') {
  _$jscoverage = {};
}
if (! _$jscoverage['plugins/contextmenu.js']) {
  _$jscoverage['plugins/contextmenu.js'] = [];
  _$jscoverage['plugins/contextmenu.js'][12] = 0;
  _$jscoverage['plugins/contextmenu.js'][13] = 0;
  _$jscoverage['plugins/contextmenu.js'][27] = 0;
  _$jscoverage['plugins/contextmenu.js'][28] = 0;
  _$jscoverage['plugins/contextmenu.js'][159] = 0;
  _$jscoverage['plugins/contextmenu.js'][160] = 0;
  _$jscoverage['plugins/contextmenu.js'][162] = 0;
  _$jscoverage['plugins/contextmenu.js'][169] = 0;
  _$jscoverage['plugins/contextmenu.js'][170] = 0;
  _$jscoverage['plugins/contextmenu.js'][172] = 0;
  _$jscoverage['plugins/contextmenu.js'][194] = 0;
  _$jscoverage['plugins/contextmenu.js'][195] = 0;
  _$jscoverage['plugins/contextmenu.js'][197] = 0;
  _$jscoverage['plugins/contextmenu.js'][205] = 0;
  _$jscoverage['plugins/contextmenu.js'][206] = 0;
  _$jscoverage['plugins/contextmenu.js'][208] = 0;
  _$jscoverage['plugins/contextmenu.js'][209] = 0;
  _$jscoverage['plugins/contextmenu.js'][210] = 0;
  _$jscoverage['plugins/contextmenu.js'][218] = 0;
  _$jscoverage['plugins/contextmenu.js'][219] = 0;
  _$jscoverage['plugins/contextmenu.js'][221] = 0;
  _$jscoverage['plugins/contextmenu.js'][222] = 0;
  _$jscoverage['plugins/contextmenu.js'][223] = 0;
  _$jscoverage['plugins/contextmenu.js'][237] = 0;
  _$jscoverage['plugins/contextmenu.js'][244] = 0;
  _$jscoverage['plugins/contextmenu.js'][251] = 0;
  _$jscoverage['plugins/contextmenu.js'][258] = 0;
  _$jscoverage['plugins/contextmenu.js'][265] = 0;
  _$jscoverage['plugins/contextmenu.js'][272] = 0;
  _$jscoverage['plugins/contextmenu.js'][357] = 0;
  _$jscoverage['plugins/contextmenu.js'][360] = 0;
  _$jscoverage['plugins/contextmenu.js'][367] = 0;
  _$jscoverage['plugins/contextmenu.js'][370] = 0;
  _$jscoverage['plugins/contextmenu.js'][376] = 0;
  _$jscoverage['plugins/contextmenu.js'][377] = 0;
  _$jscoverage['plugins/contextmenu.js'][379] = 0;
  _$jscoverage['plugins/contextmenu.js'][383] = 0;
  _$jscoverage['plugins/contextmenu.js'][384] = 0;
  _$jscoverage['plugins/contextmenu.js'][386] = 0;
  _$jscoverage['plugins/contextmenu.js'][388] = 0;
  _$jscoverage['plugins/contextmenu.js'][390] = 0;
  _$jscoverage['plugins/contextmenu.js'][391] = 0;
  _$jscoverage['plugins/contextmenu.js'][392] = 0;
  _$jscoverage['plugins/contextmenu.js'][393] = 0;
  _$jscoverage['plugins/contextmenu.js'][395] = 0;
  _$jscoverage['plugins/contextmenu.js'][396] = 0;
  _$jscoverage['plugins/contextmenu.js'][397] = 0;
  _$jscoverage['plugins/contextmenu.js'][398] = 0;
  _$jscoverage['plugins/contextmenu.js'][399] = 0;
  _$jscoverage['plugins/contextmenu.js'][400] = 0;
  _$jscoverage['plugins/contextmenu.js'][402] = 0;
  _$jscoverage['plugins/contextmenu.js'][403] = 0;
  _$jscoverage['plugins/contextmenu.js'][404] = 0;
  _$jscoverage['plugins/contextmenu.js'][405] = 0;
  _$jscoverage['plugins/contextmenu.js'][406] = 0;
  _$jscoverage['plugins/contextmenu.js'][407] = 0;
  _$jscoverage['plugins/contextmenu.js'][409] = 0;
  _$jscoverage['plugins/contextmenu.js'][412] = 0;
  _$jscoverage['plugins/contextmenu.js'][414] = 0;
  _$jscoverage['plugins/contextmenu.js'][418] = 0;
  _$jscoverage['plugins/contextmenu.js'][420] = 0;
  _$jscoverage['plugins/contextmenu.js'][427] = 0;
  _$jscoverage['plugins/contextmenu.js'][428] = 0;
  _$jscoverage['plugins/contextmenu.js'][429] = 0;
  _$jscoverage['plugins/contextmenu.js'][431] = 0;
  _$jscoverage['plugins/contextmenu.js'][433] = 0;
  _$jscoverage['plugins/contextmenu.js'][435] = 0;
  _$jscoverage['plugins/contextmenu.js'][437] = 0;
  _$jscoverage['plugins/contextmenu.js'][439] = 0;
  _$jscoverage['plugins/contextmenu.js'][441] = 0;
  _$jscoverage['plugins/contextmenu.js'][443] = 0;
  _$jscoverage['plugins/contextmenu.js'][446] = 0;
  _$jscoverage['plugins/contextmenu.js'][459] = 0;
  _$jscoverage['plugins/contextmenu.js'][462] = 0;
  _$jscoverage['plugins/contextmenu.js'][463] = 0;
  _$jscoverage['plugins/contextmenu.js'][464] = 0;
  _$jscoverage['plugins/contextmenu.js'][466] = 0;
  _$jscoverage['plugins/contextmenu.js'][467] = 0;
  _$jscoverage['plugins/contextmenu.js'][470] = 0;
  _$jscoverage['plugins/contextmenu.js'][474] = 0;
  _$jscoverage['plugins/contextmenu.js'][476] = 0;
  _$jscoverage['plugins/contextmenu.js'][485] = 0;
  _$jscoverage['plugins/contextmenu.js'][486] = 0;
  _$jscoverage['plugins/contextmenu.js'][489] = 0;
  _$jscoverage['plugins/contextmenu.js'][494] = 0;
  _$jscoverage['plugins/contextmenu.js'][495] = 0;
  _$jscoverage['plugins/contextmenu.js'][497] = 0;
  _$jscoverage['plugins/contextmenu.js'][499] = 0;
  _$jscoverage['plugins/contextmenu.js'][500] = 0;
  _$jscoverage['plugins/contextmenu.js'][501] = 0;
  _$jscoverage['plugins/contextmenu.js'][502] = 0;
  _$jscoverage['plugins/contextmenu.js'][503] = 0;
  _$jscoverage['plugins/contextmenu.js'][505] = 0;
  _$jscoverage['plugins/contextmenu.js'][507] = 0;
  _$jscoverage['plugins/contextmenu.js'][508] = 0;
  _$jscoverage['plugins/contextmenu.js'][509] = 0;
}
_$jscoverage['plugins/contextmenu.js'].source = ["<span class=\"c\">///import core</span>","<span class=\"c\">///commands &#21491;&#38190;&#33756;&#21333;</span>","<span class=\"c\">///commandsName  ContextMenu</span>","<span class=\"c\">///commandsTitle  &#21491;&#38190;&#33756;&#21333;</span>","<span class=\"c\">/*</span>","<span class=\"c\"> * &#21491;&#38190;&#33756;&#21333;</span>","<span class=\"c\"> * @function</span>","<span class=\"c\"> * @name baidu.editor.plugins.contextmenu</span>","<span class=\"c\"> * @author zhanyi</span>","<span class=\"c\"> */</span>","","UE<span class=\"k\">.</span>plugins<span class=\"k\">[</span><span class=\"s\">'contextmenu'</span><span class=\"k\">]</span> <span class=\"k\">=</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","    <span class=\"k\">var</span> me <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">,</span>","            lang <span class=\"k\">=</span> me<span class=\"k\">.</span>getLang<span class=\"k\">(</span> <span class=\"s\">\"contextMenu\"</span> <span class=\"k\">),</span>","            menu<span class=\"k\">,</span>","            items <span class=\"k\">=</span> me<span class=\"k\">.</span>options<span class=\"k\">.</span>contextMenu <span class=\"k\">||</span> <span class=\"k\">[</span>","                <span class=\"k\">{</span>label<span class=\"k\">:</span>lang<span class=\"k\">[</span><span class=\"s\">'selectall'</span><span class=\"k\">],</span> cmdName<span class=\"k\">:</span><span class=\"s\">'selectall'</span><span class=\"k\">}</span><span class=\"k\">,</span>","                <span class=\"k\">{</span>","                    label<span class=\"k\">:</span>lang<span class=\"k\">.</span>deletecode<span class=\"k\">,</span>","                    cmdName<span class=\"k\">:</span><span class=\"s\">'highlightcode'</span><span class=\"k\">,</span>","                    icon<span class=\"k\">:</span><span class=\"s\">'deletehighlightcode'</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                <span class=\"k\">{</span>","                    label<span class=\"k\">:</span>lang<span class=\"k\">.</span>cleardoc<span class=\"k\">,</span>","                    cmdName<span class=\"k\">:</span><span class=\"s\">'cleardoc'</span><span class=\"k\">,</span>","                    exec<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span> confirm<span class=\"k\">(</span> lang<span class=\"k\">.</span>confirmclear <span class=\"k\">)</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                            <span class=\"k\">this</span><span class=\"k\">.</span>execCommand<span class=\"k\">(</span> <span class=\"s\">'cleardoc'</span> <span class=\"k\">);</span>","                        <span class=\"k\">}</span>","                    <span class=\"k\">}</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                <span class=\"s\">'-'</span><span class=\"k\">,</span>","                <span class=\"k\">{</span>","                    label<span class=\"k\">:</span>lang<span class=\"k\">.</span>unlink<span class=\"k\">,</span>","                    cmdName<span class=\"k\">:</span><span class=\"s\">'unlink'</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                <span class=\"s\">'-'</span><span class=\"k\">,</span>","                <span class=\"k\">{</span>","                    group<span class=\"k\">:</span>lang<span class=\"k\">.</span>paragraph<span class=\"k\">,</span>","                    icon<span class=\"k\">:</span><span class=\"s\">'justifyjustify'</span><span class=\"k\">,</span>","                    subMenu<span class=\"k\">:[</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>justifyleft<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'justify'</span><span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"s\">'left'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>justifyright<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'justify'</span><span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"s\">'right'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>justifycenter<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'justify'</span><span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"s\">'center'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>justifyjustify<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'justify'</span><span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"s\">'justify'</span>","                        <span class=\"k\">}</span>","                    <span class=\"k\">]</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                <span class=\"s\">'-'</span><span class=\"k\">,</span>","                <span class=\"k\">{</span>","                    group<span class=\"k\">:</span>lang<span class=\"k\">.</span>table<span class=\"k\">,</span>","                    icon<span class=\"k\">:</span><span class=\"s\">'table'</span><span class=\"k\">,</span>","                    subMenu<span class=\"k\">:[</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>inserttable<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'inserttable'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>deletetable<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'deletetable'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"s\">'-'</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>deleterow<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'deleterow'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>deletecol<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'deletecol'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>insertcol<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'insertcol'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>insertcolnext<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'insertcolnext'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>insertrow<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'insertrow'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>insertrownext<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'insertrownext'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"s\">'-'</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>insertcaption<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'insertcaption'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>deletecaption<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'deletecaption'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>inserttitle<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'inserttitle'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>deletetitle<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'deletetitle'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"s\">'-'</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>mergecells<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'mergecells'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>mergeright<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'mergeright'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>mergedown<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'mergedown'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"s\">'-'</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>splittorows<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'splittorows'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>splittocols<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'splittocols'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>splittocells<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'splittocells'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"s\">'-'</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>averageDiseRow<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'averagedistributerow'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>averageDisCol<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'averagedistributecol'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"s\">'-'</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>edittd<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'edittd'</span><span class=\"k\">,</span>","                            exec<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                                <span class=\"k\">if</span> <span class=\"k\">(</span> UE<span class=\"k\">.</span>ui<span class=\"k\">[</span><span class=\"s\">'edittd'</span><span class=\"k\">]</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                                    <span class=\"k\">new</span> UE<span class=\"k\">.</span>ui<span class=\"k\">[</span><span class=\"s\">'edittd'</span><span class=\"k\">](</span> <span class=\"k\">this</span> <span class=\"k\">);</span>","                                <span class=\"k\">}</span>","                                <span class=\"k\">this</span><span class=\"k\">.</span>getDialog<span class=\"k\">(</span><span class=\"s\">'edittd'</span><span class=\"k\">).</span>open<span class=\"k\">();</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>edittable<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'edittable'</span><span class=\"k\">,</span>","                            exec<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                                <span class=\"k\">if</span> <span class=\"k\">(</span> UE<span class=\"k\">.</span>ui<span class=\"k\">[</span><span class=\"s\">'edittable'</span><span class=\"k\">]</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                                    <span class=\"k\">new</span> UE<span class=\"k\">.</span>ui<span class=\"k\">[</span><span class=\"s\">'edittable'</span><span class=\"k\">](</span> <span class=\"k\">this</span> <span class=\"k\">);</span>","                                <span class=\"k\">}</span>","                                <span class=\"k\">this</span><span class=\"k\">.</span>getDialog<span class=\"k\">(</span><span class=\"s\">'edittable'</span><span class=\"k\">).</span>open<span class=\"k\">();</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span>","                    <span class=\"k\">]</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                <span class=\"k\">{</span>","                    group<span class=\"k\">:</span>lang<span class=\"k\">.</span>tablesort<span class=\"k\">,</span>","                    icon<span class=\"k\">:</span><span class=\"s\">'tablesort'</span><span class=\"k\">,</span>","                    subMenu<span class=\"k\">:[</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>reversecurrent<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'sorttable'</span><span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"s\">1</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>orderbyasc<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'sorttable'</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>reversebyasc<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'sorttable'</span><span class=\"k\">,</span>","                            exec<span class=\"k\">:</span><span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","                                <span class=\"k\">this</span><span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">\"sorttable\"</span><span class=\"k\">,</span><span class=\"k\">function</span><span class=\"k\">(</span>td1<span class=\"k\">,</span>td2<span class=\"k\">)</span><span class=\"k\">{</span>","                                    <span class=\"k\">var</span> value1 <span class=\"k\">=</span> td1<span class=\"k\">.</span>innerHTML<span class=\"k\">,</span>","                                        value2 <span class=\"k\">=</span> td2<span class=\"k\">.</span>innerHTML<span class=\"k\">;</span>","                                    <span class=\"k\">return</span> value2<span class=\"k\">.</span>localeCompare<span class=\"k\">(</span>value1<span class=\"k\">);</span>","                                <span class=\"k\">}</span><span class=\"k\">);</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>orderbynum<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'sorttable'</span><span class=\"k\">,</span>","                            exec<span class=\"k\">:</span><span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","                                <span class=\"k\">this</span><span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">\"sorttable\"</span><span class=\"k\">,</span><span class=\"k\">function</span><span class=\"k\">(</span>td1<span class=\"k\">,</span>td2<span class=\"k\">)</span><span class=\"k\">{</span>","                                    <span class=\"k\">var</span> value1 <span class=\"k\">=</span> td1<span class=\"k\">[</span>browser<span class=\"k\">.</span>ie <span class=\"k\">?</span> <span class=\"s\">'innerText'</span><span class=\"k\">:</span><span class=\"s\">'textContent'</span><span class=\"k\">].</span>match<span class=\"k\">(</span><span class=\"s\">/\\d+/</span><span class=\"k\">),</span>","                                        value2 <span class=\"k\">=</span> td2<span class=\"k\">[</span>browser<span class=\"k\">.</span>ie <span class=\"k\">?</span> <span class=\"s\">'innerText'</span><span class=\"k\">:</span><span class=\"s\">'textContent'</span><span class=\"k\">].</span>match<span class=\"k\">(</span><span class=\"s\">/\\d+/</span><span class=\"k\">);</span>","                                    <span class=\"k\">if</span><span class=\"k\">(</span>value1<span class=\"k\">)</span> value1 <span class=\"k\">=</span> <span class=\"k\">+</span>value1<span class=\"k\">[</span><span class=\"s\">0</span><span class=\"k\">];</span>","                                    <span class=\"k\">if</span><span class=\"k\">(</span>value2<span class=\"k\">)</span> value2 <span class=\"k\">=</span> <span class=\"k\">+</span>value2<span class=\"k\">[</span><span class=\"s\">0</span><span class=\"k\">];</span>","                                    <span class=\"k\">return</span> <span class=\"k\">(</span>value1<span class=\"k\">||</span><span class=\"s\">0</span><span class=\"k\">)</span> <span class=\"k\">-</span> <span class=\"k\">(</span>value2<span class=\"k\">||</span><span class=\"s\">0</span><span class=\"k\">);</span>","                                <span class=\"k\">}</span><span class=\"k\">);</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>reversebynum<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'sorttable'</span><span class=\"k\">,</span>","                            exec<span class=\"k\">:</span><span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","                                <span class=\"k\">this</span><span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">\"sorttable\"</span><span class=\"k\">,</span><span class=\"k\">function</span><span class=\"k\">(</span>td1<span class=\"k\">,</span>td2<span class=\"k\">)</span><span class=\"k\">{</span>","                                    <span class=\"k\">var</span> value1 <span class=\"k\">=</span> td1<span class=\"k\">[</span>browser<span class=\"k\">.</span>ie <span class=\"k\">?</span> <span class=\"s\">'innerText'</span><span class=\"k\">:</span><span class=\"s\">'textContent'</span><span class=\"k\">].</span>match<span class=\"k\">(</span><span class=\"s\">/\\d+/</span><span class=\"k\">),</span>","                                        value2 <span class=\"k\">=</span> td2<span class=\"k\">[</span>browser<span class=\"k\">.</span>ie <span class=\"k\">?</span> <span class=\"s\">'innerText'</span><span class=\"k\">:</span><span class=\"s\">'textContent'</span><span class=\"k\">].</span>match<span class=\"k\">(</span><span class=\"s\">/\\d+/</span><span class=\"k\">);</span>","                                    <span class=\"k\">if</span><span class=\"k\">(</span>value1<span class=\"k\">)</span> value1 <span class=\"k\">=</span> <span class=\"k\">+</span>value1<span class=\"k\">[</span><span class=\"s\">0</span><span class=\"k\">];</span>","                                    <span class=\"k\">if</span><span class=\"k\">(</span>value2<span class=\"k\">)</span> value2 <span class=\"k\">=</span> <span class=\"k\">+</span>value2<span class=\"k\">[</span><span class=\"s\">0</span><span class=\"k\">];</span>","                                    <span class=\"k\">return</span> <span class=\"k\">(</span>value2<span class=\"k\">||</span><span class=\"s\">0</span><span class=\"k\">)</span> <span class=\"k\">-</span> <span class=\"k\">(</span>value1<span class=\"k\">||</span><span class=\"s\">0</span><span class=\"k\">);</span>","                                <span class=\"k\">}</span><span class=\"k\">);</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span>","                    <span class=\"k\">]</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                <span class=\"k\">{</span>","                    group<span class=\"k\">:</span>lang<span class=\"k\">.</span>borderbk<span class=\"k\">,</span>","                    icon<span class=\"k\">:</span><span class=\"s\">'borderBack'</span><span class=\"k\">,</span>","                    subMenu<span class=\"k\">:[</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>setcolor<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">\"interlacetable\"</span><span class=\"k\">,</span>","                            exec<span class=\"k\">:</span><span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","                                <span class=\"k\">this</span><span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">\"interlacetable\"</span><span class=\"k\">);</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>unsetcolor<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">\"uninterlacetable\"</span><span class=\"k\">,</span>","                            exec<span class=\"k\">:</span><span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","                                <span class=\"k\">this</span><span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">\"uninterlacetable\"</span><span class=\"k\">);</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>setbackground<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">\"settablebackground\"</span><span class=\"k\">,</span>","                            exec<span class=\"k\">:</span><span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","                                <span class=\"k\">this</span><span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">\"settablebackground\"</span><span class=\"k\">,</span><span class=\"k\">{</span>repeat<span class=\"k\">:</span><span class=\"k\">true</span><span class=\"k\">,</span>colorList<span class=\"k\">:[</span><span class=\"s\">\"#bbb\"</span><span class=\"k\">,</span><span class=\"s\">\"#ccc\"</span><span class=\"k\">]</span><span class=\"k\">}</span><span class=\"k\">);</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>unsetbackground<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">\"cleartablebackground\"</span><span class=\"k\">,</span>","                            exec<span class=\"k\">:</span><span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","                                <span class=\"k\">this</span><span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">\"cleartablebackground\"</span><span class=\"k\">);</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>redandblue<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">\"settablebackground\"</span><span class=\"k\">,</span>","                            exec<span class=\"k\">:</span><span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","                                <span class=\"k\">this</span><span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">\"settablebackground\"</span><span class=\"k\">,</span><span class=\"k\">{</span>repeat<span class=\"k\">:</span><span class=\"k\">true</span><span class=\"k\">,</span>colorList<span class=\"k\">:[</span><span class=\"s\">\"red\"</span><span class=\"k\">,</span><span class=\"s\">\"blue\"</span><span class=\"k\">]</span><span class=\"k\">}</span><span class=\"k\">);</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>threecolorgradient<span class=\"k\">,</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">\"settablebackground\"</span><span class=\"k\">,</span>","                            exec<span class=\"k\">:</span><span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","                                <span class=\"k\">this</span><span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">\"settablebackground\"</span><span class=\"k\">,</span><span class=\"k\">{</span>repeat<span class=\"k\">:</span><span class=\"k\">true</span><span class=\"k\">,</span>colorList<span class=\"k\">:[</span><span class=\"s\">\"#aaa\"</span><span class=\"k\">,</span><span class=\"s\">\"#bbb\"</span><span class=\"k\">,</span><span class=\"s\">\"#ccc\"</span><span class=\"k\">]</span><span class=\"k\">}</span><span class=\"k\">);</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span>","                    <span class=\"k\">]</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                <span class=\"k\">{</span>","                    group<span class=\"k\">:</span>lang<span class=\"k\">.</span>aligntd<span class=\"k\">,</span>","                    icon<span class=\"k\">:</span><span class=\"s\">'aligntd'</span><span class=\"k\">,</span>","                    subMenu<span class=\"k\">:[</span>","                        <span class=\"k\">{</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'cellalignment'</span><span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"k\">{</span>align<span class=\"k\">:</span><span class=\"s\">'left'</span><span class=\"k\">,</span>vAlign<span class=\"k\">:</span><span class=\"s\">'top'</span><span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'cellalignment'</span><span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"k\">{</span>align<span class=\"k\">:</span><span class=\"s\">'center'</span><span class=\"k\">,</span>vAlign<span class=\"k\">:</span><span class=\"s\">'top'</span><span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'cellalignment'</span><span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"k\">{</span>align<span class=\"k\">:</span><span class=\"s\">'right'</span><span class=\"k\">,</span>vAlign<span class=\"k\">:</span><span class=\"s\">'top'</span><span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'cellalignment'</span><span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"k\">{</span>align<span class=\"k\">:</span><span class=\"s\">'left'</span><span class=\"k\">,</span>vAlign<span class=\"k\">:</span><span class=\"s\">'middle'</span><span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'cellalignment'</span><span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"k\">{</span>align<span class=\"k\">:</span><span class=\"s\">'center'</span><span class=\"k\">,</span>vAlign<span class=\"k\">:</span><span class=\"s\">'middle'</span><span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'cellalignment'</span><span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"k\">{</span>align<span class=\"k\">:</span><span class=\"s\">'right'</span><span class=\"k\">,</span>vAlign<span class=\"k\">:</span><span class=\"s\">'middle'</span><span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'cellalignment'</span><span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"k\">{</span>align<span class=\"k\">:</span><span class=\"s\">'left'</span><span class=\"k\">,</span>vAlign<span class=\"k\">:</span><span class=\"s\">'bottom'</span><span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'cellalignment'</span><span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"k\">{</span>align<span class=\"k\">:</span><span class=\"s\">'center'</span><span class=\"k\">,</span>vAlign<span class=\"k\">:</span><span class=\"s\">'bottom'</span><span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'cellalignment'</span><span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"k\">{</span>align<span class=\"k\">:</span><span class=\"s\">'right'</span><span class=\"k\">,</span>vAlign<span class=\"k\">:</span><span class=\"s\">'bottom'</span><span class=\"k\">}</span>","                        <span class=\"k\">}</span>","                    <span class=\"k\">]</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                <span class=\"k\">{</span>","                    group<span class=\"k\">:</span>lang<span class=\"k\">.</span>aligntable<span class=\"k\">,</span>","                    icon<span class=\"k\">:</span><span class=\"s\">'aligntable'</span><span class=\"k\">,</span>","                    subMenu<span class=\"k\">:[</span>","                        <span class=\"k\">{</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'tablealignment'</span><span class=\"k\">,</span>","                            className<span class=\"k\">:</span> <span class=\"s\">'left'</span><span class=\"k\">,</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>tableleft<span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"s\">\"left\"</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'tablealignment'</span><span class=\"k\">,</span>","                            className<span class=\"k\">:</span> <span class=\"s\">'center'</span><span class=\"k\">,</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>tablecenter<span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"s\">\"center\"</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span>","                        <span class=\"k\">{</span>","                            cmdName<span class=\"k\">:</span><span class=\"s\">'tablealignment'</span><span class=\"k\">,</span>","                            className<span class=\"k\">:</span> <span class=\"s\">'right'</span><span class=\"k\">,</span>","                            label<span class=\"k\">:</span>lang<span class=\"k\">.</span>tableright<span class=\"k\">,</span>","                            value<span class=\"k\">:</span><span class=\"s\">\"right\"</span>","                        <span class=\"k\">}</span>","                    <span class=\"k\">]</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                <span class=\"s\">'-'</span><span class=\"k\">,</span>","                <span class=\"k\">{</span>","                    label<span class=\"k\">:</span>lang<span class=\"k\">.</span>insertparagraphbefore<span class=\"k\">,</span>","                    cmdName<span class=\"k\">:</span><span class=\"s\">'insertparagraph'</span><span class=\"k\">,</span>","                    value<span class=\"k\">:</span><span class=\"k\">true</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                <span class=\"k\">{</span>","                    label<span class=\"k\">:</span>lang<span class=\"k\">.</span>insertparagraphafter<span class=\"k\">,</span>","                    cmdName<span class=\"k\">:</span><span class=\"s\">'insertparagraph'</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                <span class=\"k\">{</span>","                    label<span class=\"k\">:</span>lang<span class=\"k\">[</span><span class=\"s\">'copy'</span><span class=\"k\">],</span>","                    cmdName<span class=\"k\">:</span><span class=\"s\">'copy'</span><span class=\"k\">,</span>","                    exec<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                        alert<span class=\"k\">(</span> lang<span class=\"k\">.</span>copymsg <span class=\"k\">);</span>","                    <span class=\"k\">}</span><span class=\"k\">,</span>","                    query<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                        <span class=\"k\">return</span> <span class=\"s\">0</span><span class=\"k\">;</span>","                    <span class=\"k\">}</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                <span class=\"k\">{</span>","                    label<span class=\"k\">:</span>lang<span class=\"k\">[</span><span class=\"s\">'paste'</span><span class=\"k\">],</span>","                    cmdName<span class=\"k\">:</span><span class=\"s\">'paste'</span><span class=\"k\">,</span>","                    exec<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                        alert<span class=\"k\">(</span> lang<span class=\"k\">.</span>pastemsg <span class=\"k\">);</span>","                    <span class=\"k\">}</span><span class=\"k\">,</span>","                    query<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                        <span class=\"k\">return</span> <span class=\"s\">0</span><span class=\"k\">;</span>","                    <span class=\"k\">}</span>","                <span class=\"k\">}</span><span class=\"k\">,</span><span class=\"k\">{</span>","                    label<span class=\"k\">:</span>lang<span class=\"k\">[</span><span class=\"s\">'highlightcode'</span><span class=\"k\">],</span>","                    cmdName<span class=\"k\">:</span><span class=\"s\">'highlightcode'</span><span class=\"k\">,</span>","                    exec<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span> UE<span class=\"k\">.</span>ui<span class=\"k\">[</span><span class=\"s\">'highlightcode'</span><span class=\"k\">]</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                            <span class=\"k\">new</span> UE<span class=\"k\">.</span>ui<span class=\"k\">[</span><span class=\"s\">'highlightcode'</span><span class=\"k\">](</span> <span class=\"k\">this</span> <span class=\"k\">);</span>","                        <span class=\"k\">}</span>","                        <span class=\"k\">this</span><span class=\"k\">.</span>ui<span class=\"k\">.</span>_dialogs<span class=\"k\">[</span><span class=\"s\">'highlightcodeDialog'</span><span class=\"k\">].</span>open<span class=\"k\">();</span>","                    <span class=\"k\">}</span>","                <span class=\"k\">}</span>","            <span class=\"k\">];</span>","    <span class=\"k\">if</span> <span class=\"k\">(</span> <span class=\"k\">!</span>items<span class=\"k\">.</span>length <span class=\"k\">)</span> <span class=\"k\">{</span>","        <span class=\"k\">return</span><span class=\"k\">;</span>","    <span class=\"k\">}</span>","    <span class=\"k\">var</span> uiUtils <span class=\"k\">=</span> UE<span class=\"k\">.</span>ui<span class=\"k\">.</span>uiUtils<span class=\"k\">;</span>","","    me<span class=\"k\">.</span>addListener<span class=\"k\">(</span> <span class=\"s\">'contextmenu'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span> type<span class=\"k\">,</span> evt <span class=\"k\">)</span> <span class=\"k\">{</span>","","        <span class=\"k\">var</span> offset <span class=\"k\">=</span> uiUtils<span class=\"k\">.</span>getViewportOffsetByEvent<span class=\"k\">(</span> evt <span class=\"k\">);</span>","        me<span class=\"k\">.</span>fireEvent<span class=\"k\">(</span> <span class=\"s\">'beforeselectionchange'</span> <span class=\"k\">);</span>","        <span class=\"k\">if</span> <span class=\"k\">(</span> menu <span class=\"k\">)</span> <span class=\"k\">{</span>","            menu<span class=\"k\">.</span>destroy<span class=\"k\">();</span>","        <span class=\"k\">}</span>","        <span class=\"k\">for</span> <span class=\"k\">(</span> <span class=\"k\">var</span> i <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">,</span> ti<span class=\"k\">,</span> contextItems <span class=\"k\">=</span> <span class=\"k\">[];</span> ti <span class=\"k\">=</span> items<span class=\"k\">[</span>i<span class=\"k\">];</span> i<span class=\"k\">++</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> last<span class=\"k\">;</span>","            <span class=\"k\">(</span><span class=\"k\">function</span> <span class=\"k\">(</span> item <span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span> item <span class=\"k\">==</span> <span class=\"s\">'-'</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span> <span class=\"k\">(</span>last <span class=\"k\">=</span> contextItems<span class=\"k\">[</span>contextItems<span class=\"k\">.</span>length <span class=\"k\">-</span> <span class=\"s\">1</span> <span class=\"k\">]</span> <span class=\"k\">)</span> <span class=\"k\">&amp;&amp;</span> last <span class=\"k\">!==</span> <span class=\"s\">'-'</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                        contextItems<span class=\"k\">.</span>push<span class=\"k\">(</span> <span class=\"s\">'-'</span> <span class=\"k\">);</span>","                    <span class=\"k\">}</span>","                <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">if</span> <span class=\"k\">(</span> item<span class=\"k\">.</span>hasOwnProperty<span class=\"k\">(</span> <span class=\"s\">\"group\"</span> <span class=\"k\">)</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">for</span> <span class=\"k\">(</span> <span class=\"k\">var</span> j <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">,</span> cj<span class=\"k\">,</span> subMenu <span class=\"k\">=</span> <span class=\"k\">[];</span> cj <span class=\"k\">=</span> item<span class=\"k\">.</span>subMenu<span class=\"k\">[</span>j<span class=\"k\">];</span> j<span class=\"k\">++</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                        <span class=\"k\">(</span><span class=\"k\">function</span> <span class=\"k\">(</span> subItem <span class=\"k\">)</span> <span class=\"k\">{</span>","                            <span class=\"k\">if</span> <span class=\"k\">(</span> subItem <span class=\"k\">==</span> <span class=\"s\">'-'</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                                <span class=\"k\">if</span> <span class=\"k\">(</span> <span class=\"k\">(</span>last <span class=\"k\">=</span> subMenu<span class=\"k\">[</span>subMenu<span class=\"k\">.</span>length <span class=\"k\">-</span> <span class=\"s\">1</span> <span class=\"k\">]</span> <span class=\"k\">)</span> <span class=\"k\">&amp;&amp;</span> last <span class=\"k\">!==</span> <span class=\"s\">'-'</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                                    subMenu<span class=\"k\">.</span>push<span class=\"k\">(</span> <span class=\"s\">'-'</span> <span class=\"k\">);</span>","                                <span class=\"k\">}</span><span class=\"k\">else</span><span class=\"k\">{</span>","                                    subMenu<span class=\"k\">.</span>splice<span class=\"k\">(</span>subMenu<span class=\"k\">.</span>length<span class=\"k\">-</span><span class=\"s\">1</span><span class=\"k\">);</span>","                                <span class=\"k\">}</span>","                            <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                                <span class=\"k\">if</span> <span class=\"k\">(</span> <span class=\"k\">(</span>me<span class=\"k\">.</span>commands<span class=\"k\">[</span>subItem<span class=\"k\">.</span>cmdName<span class=\"k\">]</span> <span class=\"k\">||</span> UE<span class=\"k\">.</span>commands<span class=\"k\">[</span>subItem<span class=\"k\">.</span>cmdName<span class=\"k\">]</span> <span class=\"k\">||</span> subItem<span class=\"k\">.</span>query<span class=\"k\">)</span> <span class=\"k\">&amp;&amp;</span>","                                        <span class=\"k\">(</span>subItem<span class=\"k\">.</span>query <span class=\"k\">?</span> subItem<span class=\"k\">.</span>query<span class=\"k\">()</span> <span class=\"k\">:</span> me<span class=\"k\">.</span>queryCommandState<span class=\"k\">(</span> subItem<span class=\"k\">.</span>cmdName <span class=\"k\">))</span> <span class=\"k\">&gt;</span> <span class=\"k\">-</span><span class=\"s\">1</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                                    subMenu<span class=\"k\">.</span>push<span class=\"k\">(</span> <span class=\"k\">{</span>","                                        <span class=\"s\">'label'</span><span class=\"k\">:</span>subItem<span class=\"k\">.</span>label <span class=\"k\">||</span> me<span class=\"k\">.</span>getLang<span class=\"k\">(</span> <span class=\"s\">\"contextMenu.\"</span> <span class=\"k\">+</span> subItem<span class=\"k\">.</span>cmdName <span class=\"k\">+</span> <span class=\"k\">(</span>subItem<span class=\"k\">.</span>value <span class=\"k\">||</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">)||</span><span class=\"s\">\"\"</span><span class=\"k\">,</span>","                                        <span class=\"s\">'className'</span><span class=\"k\">:</span><span class=\"s\">'edui-for-'</span> <span class=\"k\">+</span>subItem<span class=\"k\">.</span>cmdName <span class=\"k\">+</span> <span class=\"k\">(</span> subItem<span class=\"k\">.</span>className <span class=\"k\">?</span> <span class=\"k\">(</span> <span class=\"s\">' edui-for-'</span> <span class=\"k\">+</span> subItem<span class=\"k\">.</span>cmdName <span class=\"k\">+</span> <span class=\"s\">'-'</span> <span class=\"k\">+</span> subItem<span class=\"k\">.</span>className <span class=\"k\">)</span> <span class=\"k\">:</span> <span class=\"s\">''</span> <span class=\"k\">),</span>","                                        onclick<span class=\"k\">:</span>subItem<span class=\"k\">.</span>exec <span class=\"k\">?</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                                                subItem<span class=\"k\">.</span>exec<span class=\"k\">.</span>call<span class=\"k\">(</span> me <span class=\"k\">);</span>","                                        <span class=\"k\">}</span> <span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                                            me<span class=\"k\">.</span>execCommand<span class=\"k\">(</span> subItem<span class=\"k\">.</span>cmdName<span class=\"k\">,</span> subItem<span class=\"k\">.</span>value <span class=\"k\">);</span>","                                        <span class=\"k\">}</span>","                                    <span class=\"k\">}</span> <span class=\"k\">);</span>","                                <span class=\"k\">}</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span><span class=\"k\">)(</span> cj <span class=\"k\">);</span>","                    <span class=\"k\">}</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span> subMenu<span class=\"k\">.</span>length <span class=\"k\">)</span> <span class=\"k\">{</span>","                        <span class=\"k\">function</span> getLabel<span class=\"k\">()</span><span class=\"k\">{</span>","                            <span class=\"k\">switch</span> <span class=\"k\">(</span>item<span class=\"k\">.</span>icon<span class=\"k\">)</span><span class=\"k\">{</span>","                                <span class=\"k\">case</span> <span class=\"s\">\"table\"</span><span class=\"k\">:</span>","                                    <span class=\"k\">return</span> me<span class=\"k\">.</span>getLang<span class=\"k\">(</span> <span class=\"s\">\"contextMenu.table\"</span> <span class=\"k\">);</span>","                                <span class=\"k\">case</span> <span class=\"s\">\"justifyjustify\"</span><span class=\"k\">:</span>","                                    <span class=\"k\">return</span> me<span class=\"k\">.</span>getLang<span class=\"k\">(</span> <span class=\"s\">\"contextMenu.paragraph\"</span> <span class=\"k\">);</span>","                                <span class=\"k\">case</span> <span class=\"s\">\"aligntd\"</span><span class=\"k\">:</span>","                                    <span class=\"k\">return</span> me<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"contextMenu.aligntd\"</span><span class=\"k\">);</span>","                                <span class=\"k\">case</span> <span class=\"s\">\"aligntable\"</span><span class=\"k\">:</span>","                                    <span class=\"k\">return</span> me<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"contextMenu.aligntable\"</span><span class=\"k\">);</span>","                                <span class=\"k\">case</span> <span class=\"s\">\"tablesort\"</span><span class=\"k\">:</span>","                                    <span class=\"k\">return</span> lang<span class=\"k\">.</span>tablesort<span class=\"k\">;</span>","                                <span class=\"k\">case</span> <span class=\"s\">\"borderBack\"</span><span class=\"k\">:</span>","                                    <span class=\"k\">return</span> lang<span class=\"k\">.</span>borderbk<span class=\"k\">;</span>","                                <span class=\"k\">default</span> <span class=\"k\">:</span>","                                    <span class=\"k\">return</span> <span class=\"s\">''</span><span class=\"k\">;</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span>","                        contextItems<span class=\"k\">.</span>push<span class=\"k\">(</span> <span class=\"k\">{</span>","                            <span class=\"c\">//todo &#20462;&#27491;&#25104;&#33258;&#21160;&#33719;&#21462;&#26041;&#24335;</span>","                            <span class=\"s\">'label'</span><span class=\"k\">:</span>getLabel<span class=\"k\">(),</span>","                            className<span class=\"k\">:</span><span class=\"s\">'edui-for-'</span> <span class=\"k\">+</span> item<span class=\"k\">.</span>icon<span class=\"k\">,</span>","                            <span class=\"s\">'subMenu'</span><span class=\"k\">:</span><span class=\"k\">{</span>","                                items<span class=\"k\">:</span>subMenu<span class=\"k\">,</span>","                                editor<span class=\"k\">:</span>me","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span> <span class=\"k\">);</span>","                    <span class=\"k\">}</span>","","                <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                    <span class=\"c\">//&#26377;&#21487;&#33021;commmand&#27809;&#26377;&#21152;&#36733;&#21491;&#38190;&#19981;&#33021;&#20986;&#26469;&#65292;&#25110;&#32773;&#27809;&#26377;command&#20063;&#24819;&#33021;&#23637;&#31034;&#20986;&#26469;&#28155;&#21152;query&#26041;&#27861;</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span> <span class=\"k\">(</span>me<span class=\"k\">.</span>commands<span class=\"k\">[</span>item<span class=\"k\">.</span>cmdName<span class=\"k\">]</span> <span class=\"k\">||</span> UE<span class=\"k\">.</span>commands<span class=\"k\">[</span>item<span class=\"k\">.</span>cmdName<span class=\"k\">]</span> <span class=\"k\">||</span> item<span class=\"k\">.</span>query<span class=\"k\">)</span> <span class=\"k\">&amp;&amp;</span>","                            <span class=\"k\">(</span>item<span class=\"k\">.</span>query <span class=\"k\">?</span> item<span class=\"k\">.</span>query<span class=\"k\">.</span>call<span class=\"k\">(</span>me<span class=\"k\">)</span> <span class=\"k\">:</span> me<span class=\"k\">.</span>queryCommandState<span class=\"k\">(</span> item<span class=\"k\">.</span>cmdName <span class=\"k\">))</span> <span class=\"k\">&gt;</span> <span class=\"k\">-</span><span class=\"s\">1</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                        <span class=\"c\">//highlight todo</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span> item<span class=\"k\">.</span>cmdName <span class=\"k\">==</span> <span class=\"s\">'highlightcode'</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                            <span class=\"k\">if</span><span class=\"k\">(</span>me<span class=\"k\">.</span>queryCommandState<span class=\"k\">(</span> item<span class=\"k\">.</span>cmdName <span class=\"k\">)</span> <span class=\"k\">==</span> <span class=\"s\">1</span> <span class=\"k\">&amp;&amp;</span> item<span class=\"k\">.</span>icon <span class=\"k\">!=</span> <span class=\"s\">'deletehighlightcode'</span><span class=\"k\">)</span><span class=\"k\">{</span>","                                <span class=\"k\">return</span><span class=\"k\">;</span>","                            <span class=\"k\">}</span>","                            <span class=\"k\">if</span><span class=\"k\">(</span>me<span class=\"k\">.</span>queryCommandState<span class=\"k\">(</span> item<span class=\"k\">.</span>cmdName <span class=\"k\">)</span> <span class=\"k\">!=</span> <span class=\"s\">1</span> <span class=\"k\">&amp;&amp;</span> item<span class=\"k\">.</span>icon <span class=\"k\">==</span> <span class=\"s\">'deletehighlightcode'</span><span class=\"k\">)</span><span class=\"k\">{</span>","                                <span class=\"k\">return</span><span class=\"k\">;</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span>","                        contextItems<span class=\"k\">.</span>push<span class=\"k\">(</span> <span class=\"k\">{</span>","                            <span class=\"s\">'label'</span><span class=\"k\">:</span>item<span class=\"k\">.</span>label <span class=\"k\">||</span> me<span class=\"k\">.</span>getLang<span class=\"k\">(</span> <span class=\"s\">\"contextMenu.\"</span> <span class=\"k\">+</span> item<span class=\"k\">.</span>cmdName <span class=\"k\">),</span>","                            className<span class=\"k\">:</span><span class=\"s\">'edui-for-'</span> <span class=\"k\">+</span> <span class=\"k\">(</span>item<span class=\"k\">.</span>icon <span class=\"k\">?</span> item<span class=\"k\">.</span>icon <span class=\"k\">:</span> item<span class=\"k\">.</span>cmdName <span class=\"k\">+</span> <span class=\"k\">(</span>item<span class=\"k\">.</span>value <span class=\"k\">||</span> <span class=\"s\">''</span><span class=\"k\">)),</span>","                            onclick<span class=\"k\">:</span>item<span class=\"k\">.</span>exec <span class=\"k\">?</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                                item<span class=\"k\">.</span>exec<span class=\"k\">.</span>call<span class=\"k\">(</span> me <span class=\"k\">);</span>","                            <span class=\"k\">}</span> <span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                                me<span class=\"k\">.</span>execCommand<span class=\"k\">(</span> item<span class=\"k\">.</span>cmdName<span class=\"k\">,</span> item<span class=\"k\">.</span>value <span class=\"k\">);</span>","                            <span class=\"k\">}</span>","                        <span class=\"k\">}</span> <span class=\"k\">);</span>","                    <span class=\"k\">}</span>","","                <span class=\"k\">}</span>","","            <span class=\"k\">}</span><span class=\"k\">)(</span> ti <span class=\"k\">);</span>","        <span class=\"k\">}</span>","        <span class=\"k\">if</span> <span class=\"k\">(</span> contextItems<span class=\"k\">[</span>contextItems<span class=\"k\">.</span>length <span class=\"k\">-</span> <span class=\"s\">1</span><span class=\"k\">]</span> <span class=\"k\">==</span> <span class=\"s\">'-'</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","            contextItems<span class=\"k\">.</span>pop<span class=\"k\">();</span>","        <span class=\"k\">}</span>","","        menu <span class=\"k\">=</span> <span class=\"k\">new</span> UE<span class=\"k\">.</span>ui<span class=\"k\">.</span>Menu<span class=\"k\">(</span> <span class=\"k\">{</span>","            items<span class=\"k\">:</span>contextItems<span class=\"k\">,</span>","            className<span class=\"k\">:</span><span class=\"s\">\"edui-contextmenu\"</span><span class=\"k\">,</span>","            editor<span class=\"k\">:</span>me","        <span class=\"k\">}</span> <span class=\"k\">);</span>","        menu<span class=\"k\">.</span>render<span class=\"k\">();</span>","        menu<span class=\"k\">.</span>showAt<span class=\"k\">(</span> offset <span class=\"k\">);</span>","","        me<span class=\"k\">.</span>fireEvent<span class=\"k\">(</span><span class=\"s\">\"aftershowcontextmenu\"</span><span class=\"k\">,</span>menu<span class=\"k\">);</span>","","        domUtils<span class=\"k\">.</span>preventDefault<span class=\"k\">(</span> evt <span class=\"k\">);</span>","        <span class=\"k\">if</span> <span class=\"k\">(</span> browser<span class=\"k\">.</span>ie <span class=\"k\">)</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> ieRange<span class=\"k\">;</span>","            <span class=\"k\">try</span> <span class=\"k\">{</span>","                ieRange <span class=\"k\">=</span> me<span class=\"k\">.</span>selection<span class=\"k\">.</span>getNative<span class=\"k\">().</span>createRange<span class=\"k\">();</span>","            <span class=\"k\">}</span> <span class=\"k\">catch</span> <span class=\"k\">(</span> e <span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">return</span><span class=\"k\">;</span>","            <span class=\"k\">}</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span> ieRange<span class=\"k\">.</span>item <span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">var</span> range <span class=\"k\">=</span> <span class=\"k\">new</span> dom<span class=\"k\">.</span>Range<span class=\"k\">(</span> me<span class=\"k\">.</span>document <span class=\"k\">);</span>","                range<span class=\"k\">.</span>selectNode<span class=\"k\">(</span> ieRange<span class=\"k\">.</span>item<span class=\"k\">(</span> <span class=\"s\">0</span> <span class=\"k\">)</span> <span class=\"k\">).</span>select<span class=\"k\">(</span> <span class=\"k\">true</span><span class=\"k\">,</span> <span class=\"k\">true</span> <span class=\"k\">);</span>","","            <span class=\"k\">}</span>","        <span class=\"k\">}</span>","    <span class=\"k\">}</span> <span class=\"k\">);</span>","<span class=\"k\">}</span><span class=\"k\">;</span>","",""];
_$jscoverage['plugins/contextmenu.js'][12]++;
UE.plugins.contextmenu = (function () {
  _$jscoverage['plugins/contextmenu.js'][13]++;
  var me = this, lang = me.getLang("contextMenu"), menu, items = (me.options.contextMenu || [{label: lang.selectall, cmdName: "selectall"}, {label: lang.deletecode, cmdName: "highlightcode", icon: "deletehighlightcode"}, {label: lang.cleardoc, cmdName: "cleardoc", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][27]++;
  if (confirm(lang.confirmclear)) {
    _$jscoverage['plugins/contextmenu.js'][28]++;
    this.execCommand("cleardoc");
  }
})}, "-", {label: lang.unlink, cmdName: "unlink"}, "-", {group: lang.paragraph, icon: "justifyjustify", subMenu: [{label: lang.justifyleft, cmdName: "justify", value: "left"}, {label: lang.justifyright, cmdName: "justify", value: "right"}, {label: lang.justifycenter, cmdName: "justify", value: "center"}, {label: lang.justifyjustify, cmdName: "justify", value: "justify"}]}, "-", {group: lang.table, icon: "table", subMenu: [{label: lang.inserttable, cmdName: "inserttable"}, {label: lang.deletetable, cmdName: "deletetable"}, "-", {label: lang.deleterow, cmdName: "deleterow"}, {label: lang.deletecol, cmdName: "deletecol"}, {label: lang.insertcol, cmdName: "insertcol"}, {label: lang.insertcolnext, cmdName: "insertcolnext"}, {label: lang.insertrow, cmdName: "insertrow"}, {label: lang.insertrownext, cmdName: "insertrownext"}, "-", {label: lang.insertcaption, cmdName: "insertcaption"}, {label: lang.deletecaption, cmdName: "deletecaption"}, {label: lang.inserttitle, cmdName: "inserttitle"}, {label: lang.deletetitle, cmdName: "deletetitle"}, "-", {label: lang.mergecells, cmdName: "mergecells"}, {label: lang.mergeright, cmdName: "mergeright"}, {label: lang.mergedown, cmdName: "mergedown"}, "-", {label: lang.splittorows, cmdName: "splittorows"}, {label: lang.splittocols, cmdName: "splittocols"}, {label: lang.splittocells, cmdName: "splittocells"}, "-", {label: lang.averageDiseRow, cmdName: "averagedistributerow"}, {label: lang.averageDisCol, cmdName: "averagedistributecol"}, "-", {label: lang.edittd, cmdName: "edittd", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][159]++;
  if (UE.ui.edittd) {
    _$jscoverage['plugins/contextmenu.js'][160]++;
    new (UE.ui.edittd)(this);
  }
  _$jscoverage['plugins/contextmenu.js'][162]++;
  this.getDialog("edittd").open();
})}, {label: lang.edittable, cmdName: "edittable", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][169]++;
  if (UE.ui.edittable) {
    _$jscoverage['plugins/contextmenu.js'][170]++;
    new (UE.ui.edittable)(this);
  }
  _$jscoverage['plugins/contextmenu.js'][172]++;
  this.getDialog("edittable").open();
})}]}, {group: lang.tablesort, icon: "tablesort", subMenu: [{label: lang.reversecurrent, cmdName: "sorttable", value: 1}, {label: lang.orderbyasc, cmdName: "sorttable"}, {label: lang.reversebyasc, cmdName: "sorttable", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][194]++;
  this.execCommand("sorttable", (function (td1, td2) {
  _$jscoverage['plugins/contextmenu.js'][195]++;
  var value1 = td1.innerHTML, value2 = td2.innerHTML;
  _$jscoverage['plugins/contextmenu.js'][197]++;
  return value2.localeCompare(value1);
}));
})}, {label: lang.orderbynum, cmdName: "sorttable", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][205]++;
  this.execCommand("sorttable", (function (td1, td2) {
  _$jscoverage['plugins/contextmenu.js'][206]++;
  var value1 = td1[(browser.ie? "innerText": "textContent")].match(/\d+/), value2 = td2[(browser.ie? "innerText": "textContent")].match(/\d+/);
  _$jscoverage['plugins/contextmenu.js'][208]++;
  if (value1) {
    _$jscoverage['plugins/contextmenu.js'][208]++;
    value1 = (+ value1[0]);
  }
  _$jscoverage['plugins/contextmenu.js'][209]++;
  if (value2) {
    _$jscoverage['plugins/contextmenu.js'][209]++;
    value2 = (+ value2[0]);
  }
  _$jscoverage['plugins/contextmenu.js'][210]++;
  return ((value1 || 0) - (value2 || 0));
}));
})}, {label: lang.reversebynum, cmdName: "sorttable", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][218]++;
  this.execCommand("sorttable", (function (td1, td2) {
  _$jscoverage['plugins/contextmenu.js'][219]++;
  var value1 = td1[(browser.ie? "innerText": "textContent")].match(/\d+/), value2 = td2[(browser.ie? "innerText": "textContent")].match(/\d+/);
  _$jscoverage['plugins/contextmenu.js'][221]++;
  if (value1) {
    _$jscoverage['plugins/contextmenu.js'][221]++;
    value1 = (+ value1[0]);
  }
  _$jscoverage['plugins/contextmenu.js'][222]++;
  if (value2) {
    _$jscoverage['plugins/contextmenu.js'][222]++;
    value2 = (+ value2[0]);
  }
  _$jscoverage['plugins/contextmenu.js'][223]++;
  return ((value2 || 0) - (value1 || 0));
}));
})}]}, {group: lang.borderbk, icon: "borderBack", subMenu: [{label: lang.setcolor, cmdName: "interlacetable", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][237]++;
  this.execCommand("interlacetable");
})}, {label: lang.unsetcolor, cmdName: "uninterlacetable", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][244]++;
  this.execCommand("uninterlacetable");
})}, {label: lang.setbackground, cmdName: "settablebackground", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][251]++;
  this.execCommand("settablebackground", {repeat: true, colorList: ["#bbb", "#ccc"]});
})}, {label: lang.unsetbackground, cmdName: "cleartablebackground", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][258]++;
  this.execCommand("cleartablebackground");
})}, {label: lang.redandblue, cmdName: "settablebackground", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][265]++;
  this.execCommand("settablebackground", {repeat: true, colorList: ["red", "blue"]});
})}, {label: lang.threecolorgradient, cmdName: "settablebackground", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][272]++;
  this.execCommand("settablebackground", {repeat: true, colorList: ["#aaa", "#bbb", "#ccc"]});
})}]}, {group: lang.aligntd, icon: "aligntd", subMenu: [{cmdName: "cellalignment", value: {align: "left", vAlign: "top"}}, {cmdName: "cellalignment", value: {align: "center", vAlign: "top"}}, {cmdName: "cellalignment", value: {align: "right", vAlign: "top"}}, {cmdName: "cellalignment", value: {align: "left", vAlign: "middle"}}, {cmdName: "cellalignment", value: {align: "center", vAlign: "middle"}}, {cmdName: "cellalignment", value: {align: "right", vAlign: "middle"}}, {cmdName: "cellalignment", value: {align: "left", vAlign: "bottom"}}, {cmdName: "cellalignment", value: {align: "center", vAlign: "bottom"}}, {cmdName: "cellalignment", value: {align: "right", vAlign: "bottom"}}]}, {group: lang.aligntable, icon: "aligntable", subMenu: [{cmdName: "tablealignment", className: "left", label: lang.tableleft, value: "left"}, {cmdName: "tablealignment", className: "center", label: lang.tablecenter, value: "center"}, {cmdName: "tablealignment", className: "right", label: lang.tableright, value: "right"}]}, "-", {label: lang.insertparagraphbefore, cmdName: "insertparagraph", value: true}, {label: lang.insertparagraphafter, cmdName: "insertparagraph"}, {label: lang.copy, cmdName: "copy", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][357]++;
  alert(lang.copymsg);
}), query: (function () {
  _$jscoverage['plugins/contextmenu.js'][360]++;
  return 0;
})}, {label: lang.paste, cmdName: "paste", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][367]++;
  alert(lang.pastemsg);
}), query: (function () {
  _$jscoverage['plugins/contextmenu.js'][370]++;
  return 0;
})}, {label: lang.highlightcode, cmdName: "highlightcode", exec: (function () {
  _$jscoverage['plugins/contextmenu.js'][376]++;
  if (UE.ui.highlightcode) {
    _$jscoverage['plugins/contextmenu.js'][377]++;
    new (UE.ui.highlightcode)(this);
  }
  _$jscoverage['plugins/contextmenu.js'][379]++;
  this.ui._dialogs.highlightcodeDialog.open();
})}]);
  _$jscoverage['plugins/contextmenu.js'][383]++;
  if ((! items.length)) {
    _$jscoverage['plugins/contextmenu.js'][384]++;
    return;
  }
  _$jscoverage['plugins/contextmenu.js'][386]++;
  var uiUtils = UE.ui.uiUtils;
  _$jscoverage['plugins/contextmenu.js'][388]++;
  me.addListener("contextmenu", (function (type, evt) {
  _$jscoverage['plugins/contextmenu.js'][390]++;
  var offset = uiUtils.getViewportOffsetByEvent(evt);
  _$jscoverage['plugins/contextmenu.js'][391]++;
  me.fireEvent("beforeselectionchange");
  _$jscoverage['plugins/contextmenu.js'][392]++;
  if (menu) {
    _$jscoverage['plugins/contextmenu.js'][393]++;
    menu.destroy();
  }
  _$jscoverage['plugins/contextmenu.js'][395]++;
  for (var i = 0, ti, contextItems = []; (ti = items[i]); (i++)) {
    _$jscoverage['plugins/contextmenu.js'][396]++;
    var last;
    _$jscoverage['plugins/contextmenu.js'][397]++;
    (function (item) {
  _$jscoverage['plugins/contextmenu.js'][398]++;
  if ((item == "-")) {
    _$jscoverage['plugins/contextmenu.js'][399]++;
    if (((last = contextItems[(contextItems.length - 1)]) && (last !== "-"))) {
      _$jscoverage['plugins/contextmenu.js'][400]++;
      contextItems.push("-");
    }
  }
  else {
    _$jscoverage['plugins/contextmenu.js'][402]++;
    if (item.hasOwnProperty("group")) {
      _$jscoverage['plugins/contextmenu.js'][403]++;
      for (var j = 0, cj, subMenu = []; (cj = item.subMenu[j]); (j++)) {
        _$jscoverage['plugins/contextmenu.js'][404]++;
        (function (subItem) {
  _$jscoverage['plugins/contextmenu.js'][405]++;
  if ((subItem == "-")) {
    _$jscoverage['plugins/contextmenu.js'][406]++;
    if (((last = subMenu[(subMenu.length - 1)]) && (last !== "-"))) {
      _$jscoverage['plugins/contextmenu.js'][407]++;
      subMenu.push("-");
    }
    else {
      _$jscoverage['plugins/contextmenu.js'][409]++;
      subMenu.splice((subMenu.length - 1));
    }
  }
  else {
    _$jscoverage['plugins/contextmenu.js'][412]++;
    if (((me.commands[subItem.cmdName] || UE.commands[subItem.cmdName] || subItem.query) && ((subItem.query? subItem.query(): me.queryCommandState(subItem.cmdName)) > -1))) {
      _$jscoverage['plugins/contextmenu.js'][414]++;
      subMenu.push({"label": (subItem.label || me.getLang(("contextMenu." + subItem.cmdName + (subItem.value || ""))) || ""), "className": ("edui-for-" + subItem.cmdName + (subItem.className? (" edui-for-" + subItem.cmdName + "-" + subItem.className): "")), onclick: (subItem.exec? (function () {
  _$jscoverage['plugins/contextmenu.js'][418]++;
  subItem.exec.call(me);
}): (function () {
  _$jscoverage['plugins/contextmenu.js'][420]++;
  me.execCommand(subItem.cmdName, subItem.value);
}))});
    }
  }
})(cj);
}
      _$jscoverage['plugins/contextmenu.js'][427]++;
      if (subMenu.length) {
        _$jscoverage['plugins/contextmenu.js'][428]++;
        function getLabel() {
          _$jscoverage['plugins/contextmenu.js'][429]++;
          switch (item.icon) {
          case "table":
            _$jscoverage['plugins/contextmenu.js'][431]++;
            return me.getLang("contextMenu.table");
          case "justifyjustify":
            _$jscoverage['plugins/contextmenu.js'][433]++;
            return me.getLang("contextMenu.paragraph");
          case "aligntd":
            _$jscoverage['plugins/contextmenu.js'][435]++;
            return me.getLang("contextMenu.aligntd");
          case "aligntable":
            _$jscoverage['plugins/contextmenu.js'][437]++;
            return me.getLang("contextMenu.aligntable");
          case "tablesort":
            _$jscoverage['plugins/contextmenu.js'][439]++;
            return lang.tablesort;
          case "borderBack":
            _$jscoverage['plugins/contextmenu.js'][441]++;
            return lang.borderbk;
          default:
            _$jscoverage['plugins/contextmenu.js'][443]++;
            return "";
          }
}
        _$jscoverage['plugins/contextmenu.js'][446]++;
        contextItems.push({"label": getLabel(), className: ("edui-for-" + item.icon), "subMenu": {items: subMenu, editor: me}});
      }
    }
    else {
      _$jscoverage['plugins/contextmenu.js'][459]++;
      if (((me.commands[item.cmdName] || UE.commands[item.cmdName] || item.query) && ((item.query? item.query.call(me): me.queryCommandState(item.cmdName)) > -1))) {
        _$jscoverage['plugins/contextmenu.js'][462]++;
        if ((item.cmdName == "highlightcode")) {
          _$jscoverage['plugins/contextmenu.js'][463]++;
          if (((me.queryCommandState(item.cmdName) == 1) && (item.icon != "deletehighlightcode"))) {
            _$jscoverage['plugins/contextmenu.js'][464]++;
            return;
          }
          _$jscoverage['plugins/contextmenu.js'][466]++;
          if (((me.queryCommandState(item.cmdName) != 1) && (item.icon == "deletehighlightcode"))) {
            _$jscoverage['plugins/contextmenu.js'][467]++;
            return;
          }
        }
        _$jscoverage['plugins/contextmenu.js'][470]++;
        contextItems.push({"label": (item.label || me.getLang(("contextMenu." + item.cmdName))), className: ("edui-for-" + (item.icon? item.icon: (item.cmdName + (item.value || "")))), onclick: (item.exec? (function () {
  _$jscoverage['plugins/contextmenu.js'][474]++;
  item.exec.call(me);
}): (function () {
  _$jscoverage['plugins/contextmenu.js'][476]++;
  me.execCommand(item.cmdName, item.value);
}))});
      }
    }
  }
})(ti);
}
  _$jscoverage['plugins/contextmenu.js'][485]++;
  if ((contextItems[(contextItems.length - 1)] == "-")) {
    _$jscoverage['plugins/contextmenu.js'][486]++;
    contextItems.pop();
  }
  _$jscoverage['plugins/contextmenu.js'][489]++;
  menu = new (UE.ui.Menu)({items: contextItems, className: "edui-contextmenu", editor: me});
  _$jscoverage['plugins/contextmenu.js'][494]++;
  menu.render();
  _$jscoverage['plugins/contextmenu.js'][495]++;
  menu.showAt(offset);
  _$jscoverage['plugins/contextmenu.js'][497]++;
  me.fireEvent("aftershowcontextmenu", menu);
  _$jscoverage['plugins/contextmenu.js'][499]++;
  domUtils.preventDefault(evt);
  _$jscoverage['plugins/contextmenu.js'][500]++;
  if (browser.ie) {
    _$jscoverage['plugins/contextmenu.js'][501]++;
    var ieRange;
    _$jscoverage['plugins/contextmenu.js'][502]++;
    try {
      _$jscoverage['plugins/contextmenu.js'][503]++;
      ieRange = me.selection.getNative().createRange();
    }
    catch (e) {
      _$jscoverage['plugins/contextmenu.js'][505]++;
      return;
    }
    _$jscoverage['plugins/contextmenu.js'][507]++;
    if (ieRange.item) {
      _$jscoverage['plugins/contextmenu.js'][508]++;
      var range = new (dom.Range)(me.document);
      _$jscoverage['plugins/contextmenu.js'][509]++;
      range.selectNode(ieRange.item(0)).select(true, true);
    }
  }
}));
});
