/* 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/autosubmit.js']) {
  _$jscoverage['plugins/autosubmit.js'] = [];
  _$jscoverage['plugins/autosubmit.js'][17] = 0;
  _$jscoverage['plugins/autosubmit.js'][18] = 0;
  _$jscoverage['plugins/autosubmit.js'][19] = 0;
  _$jscoverage['plugins/autosubmit.js'][21] = 0;
  _$jscoverage['plugins/autosubmit.js'][23] = 0;
  _$jscoverage['plugins/autosubmit.js'][24] = 0;
  _$jscoverage['plugins/autosubmit.js'][25] = 0;
  _$jscoverage['plugins/autosubmit.js'][27] = 0;
  _$jscoverage['plugins/autosubmit.js'][28] = 0;
  _$jscoverage['plugins/autosubmit.js'][33] = 0;
}
_$jscoverage['plugins/autosubmit.js'].source = ["<span class=\"c\">/**</span>","<span class=\"c\"> * &#24555;&#25463;&#38190;&#25552;&#20132;</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\"> * &#23545;&#32534;&#36753;&#22120;&#21306;&#22495;&#25554;&#20837;html&#23383;&#31526;&#20018;</span>","<span class=\"c\"> * @command autosubmit</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( 'autosubmit' );</span>","<span class=\"c\"> * ```</span>","<span class=\"c\"> */</span>","UE<span class=\"k\">.</span>plugins<span class=\"k\">[</span><span class=\"s\">'autosubmit'</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\">'autosubmit'</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=\"k\">var</span> me<span class=\"k\">=</span><span class=\"k\">this</span><span class=\"k\">,</span>","                form <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>findParentByTagName<span class=\"k\">(</span>me<span class=\"k\">.</span>iframe<span class=\"k\">,</span><span class=\"s\">\"form\"</span><span class=\"k\">,</span> <span class=\"k\">false</span><span class=\"k\">);</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span>form<span class=\"k\">)</span>    <span class=\"k\">{</span>","                <span class=\"k\">if</span><span class=\"k\">(</span>me<span class=\"k\">.</span>fireEvent<span class=\"k\">(</span><span class=\"s\">\"beforesubmit\"</span><span class=\"k\">)===</span><span class=\"k\">false</span><span class=\"k\">)</span><span class=\"k\">{</span>","                    <span class=\"k\">return</span><span class=\"k\">;</span>","                <span class=\"k\">}</span>","                me<span class=\"k\">.</span>sync<span class=\"k\">();</span>","                form<span class=\"k\">.</span>submit<span class=\"k\">();</span>","            <span class=\"k\">}</span>","        <span class=\"k\">}</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\">\"autosubmit\"</span> <span class=\"k\">:</span> <span class=\"s\">\"ctrl+13\"</span> <span class=\"c\">//&#25163;&#21160;&#25552;&#20132;</span>","    <span class=\"k\">}</span><span class=\"k\">);</span>","<span class=\"k\">}</span><span class=\"k\">;</span>"];
_$jscoverage['plugins/autosubmit.js'][17]++;
UE.plugins.autosubmit = (function () {
  _$jscoverage['plugins/autosubmit.js'][18]++;
  var me = this;
  _$jscoverage['plugins/autosubmit.js'][19]++;
  me.commands.autosubmit = {execCommand: (function () {
  _$jscoverage['plugins/autosubmit.js'][21]++;
  var me = this, form = domUtils.findParentByTagName(me.iframe, "form", false);
  _$jscoverage['plugins/autosubmit.js'][23]++;
  if (form) {
    _$jscoverage['plugins/autosubmit.js'][24]++;
    if ((me.fireEvent("beforesubmit") === false)) {
      _$jscoverage['plugins/autosubmit.js'][25]++;
      return;
    }
    _$jscoverage['plugins/autosubmit.js'][27]++;
    me.sync();
    _$jscoverage['plugins/autosubmit.js'][28]++;
    form.submit();
  }
})};
  _$jscoverage['plugins/autosubmit.js'][33]++;
  me.addshortcutkey({"autosubmit": "ctrl+13"});
});
