/* 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/selectall.js']) {
  _$jscoverage['plugins/selectall.js'] = [];
  _$jscoverage['plugins/selectall.js'][17] = 0;
  _$jscoverage['plugins/selectall.js'][18] = 0;
  _$jscoverage['plugins/selectall.js'][19] = 0;
  _$jscoverage['plugins/selectall.js'][22] = 0;
  _$jscoverage['plugins/selectall.js'][24] = 0;
  _$jscoverage['plugins/selectall.js'][25] = 0;
  _$jscoverage['plugins/selectall.js'][27] = 0;
  _$jscoverage['plugins/selectall.js'][28] = 0;
  _$jscoverage['plugins/selectall.js'][30] = 0;
  _$jscoverage['plugins/selectall.js'][32] = 0;
  _$jscoverage['plugins/selectall.js'][39] = 0;
}
_$jscoverage['plugins/selectall.js'].source = ["<span class=\"c\">/**</span>","<span class=\"c\"> * &#20840;&#36873;</span>","<span class=\"c\"> * @file</span>","<span class=\"c\"> * @since 1.2.6.1</span>","<span class=\"c\"> */</span>","","<span class=\"c\">/**</span>","<span class=\"c\"> * &#36873;&#20013;&#32534;&#36753;&#22120;&#37324;&#30340;&#25152;&#26377;&#20869;&#23481;</span>","<span class=\"c\"> * @command selectall</span>","<span class=\"c\"> * @method execCommand</span>","<span class=\"c\"> * @param { String } cmd &#21629;&#20196;&#23383;&#31526;&#20018;</span>","<span class=\"c\"> * @example</span>","<span class=\"c\"> * ```javascript</span>","<span class=\"c\"> * editor.execCommand( 'selectall' );</span>","<span class=\"c\"> * ```</span>","<span class=\"c\"> */</span>","UE<span class=\"k\">.</span>plugins<span class=\"k\">[</span><span class=\"s\">'selectall'</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>","    me<span class=\"k\">.</span>commands<span class=\"k\">[</span><span class=\"s\">'selectall'</span><span class=\"k\">]</span> <span class=\"k\">=</span> <span class=\"k\">{</span>","        execCommand <span class=\"k\">:</span> <span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"c\">//&#21435;&#25481;&#20102;&#21407;&#29983;&#30340;selectAll,&#22240;&#20026;&#20250;&#20986;&#29616;&#25253;&#38169;&#21644;&#24403;&#20869;&#23481;&#20026;&#31354;&#26102;&#65292;&#19981;&#33021;&#20986;&#29616;&#38381;&#21512;&#29366;&#24577;&#30340;&#20809;&#26631;</span>","            <span class=\"k\">var</span> me <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">,</span>body <span class=\"k\">=</span> me<span class=\"k\">.</span>body<span class=\"k\">,</span>","                range <span class=\"k\">=</span> me<span class=\"k\">.</span>selection<span class=\"k\">.</span>getRange<span class=\"k\">();</span>","            range<span class=\"k\">.</span>selectNodeContents<span class=\"k\">(</span>body<span class=\"k\">);</span>","            <span class=\"k\">if</span><span class=\"k\">(</span>domUtils<span class=\"k\">.</span>isEmptyBlock<span class=\"k\">(</span>body<span class=\"k\">))</span><span class=\"k\">{</span>","                <span class=\"c\">//opera&#19981;&#33021;&#33258;&#21160;&#21512;&#24182;&#21040;&#20803;&#32032;&#30340;&#37324;&#36793;&#65292;&#35201;&#25163;&#21160;&#22788;&#29702;&#19968;&#19979;</span>","                <span class=\"k\">if</span><span class=\"k\">(</span>browser<span class=\"k\">.</span>opera <span class=\"k\">&amp;&amp;</span> body<span class=\"k\">.</span>firstChild <span class=\"k\">&amp;&amp;</span> body<span class=\"k\">.</span>firstChild<span class=\"k\">.</span>nodeType <span class=\"k\">==</span> <span class=\"s\">1</span><span class=\"k\">)</span><span class=\"k\">{</span>","                    range<span class=\"k\">.</span>setStartAtFirst<span class=\"k\">(</span>body<span class=\"k\">.</span>firstChild<span class=\"k\">);</span>","                <span class=\"k\">}</span>","                range<span class=\"k\">.</span>collapse<span class=\"k\">(</span><span class=\"k\">true</span><span class=\"k\">);</span>","            <span class=\"k\">}</span>","            range<span class=\"k\">.</span>select<span class=\"k\">(</span><span class=\"k\">true</span><span class=\"k\">);</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        notNeedUndo <span class=\"k\">:</span> <span class=\"s\">1</span>","    <span class=\"k\">}</span><span class=\"k\">;</span>","","","    <span class=\"c\">//&#24555;&#25463;&#38190;</span>","    me<span class=\"k\">.</span>addshortcutkey<span class=\"k\">(</span><span class=\"k\">{</span>","         <span class=\"s\">\"selectAll\"</span> <span class=\"k\">:</span> <span class=\"s\">\"ctrl+65\"</span>","    <span class=\"k\">}</span><span class=\"k\">);</span>","<span class=\"k\">}</span><span class=\"k\">;</span>"];
_$jscoverage['plugins/selectall.js'][17]++;
UE.plugins.selectall = (function () {
  _$jscoverage['plugins/selectall.js'][18]++;
  var me = this;
  _$jscoverage['plugins/selectall.js'][19]++;
  me.commands.selectall = {execCommand: (function () {
  _$jscoverage['plugins/selectall.js'][22]++;
  var me = this, body = me.body, range = me.selection.getRange();
  _$jscoverage['plugins/selectall.js'][24]++;
  range.selectNodeContents(body);
  _$jscoverage['plugins/selectall.js'][25]++;
  if (domUtils.isEmptyBlock(body)) {
    _$jscoverage['plugins/selectall.js'][27]++;
    if ((browser.opera && body.firstChild && (body.firstChild.nodeType == 1))) {
      _$jscoverage['plugins/selectall.js'][28]++;
      range.setStartAtFirst(body.firstChild);
    }
    _$jscoverage['plugins/selectall.js'][30]++;
    range.collapse(true);
  }
  _$jscoverage['plugins/selectall.js'][32]++;
  range.select(true);
}), notNeedUndo: 1};
  _$jscoverage['plugins/selectall.js'][39]++;
  me.addshortcutkey({"selectAll": "ctrl+65"});
});
