/* 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/rowspacing.js']) {
  _$jscoverage['plugins/rowspacing.js'] = [];
  _$jscoverage['plugins/rowspacing.js'][19] = 0;
  _$jscoverage['plugins/rowspacing.js'][20] = 0;
  _$jscoverage['plugins/rowspacing.js'][21] = 0;
  _$jscoverage['plugins/rowspacing.js'][26] = 0;
  _$jscoverage['plugins/rowspacing.js'][28] = 0;
  _$jscoverage['plugins/rowspacing.js'][29] = 0;
  _$jscoverage['plugins/rowspacing.js'][32] = 0;
  _$jscoverage['plugins/rowspacing.js'][35] = 0;
  _$jscoverage['plugins/rowspacing.js'][36] = 0;
  _$jscoverage['plugins/rowspacing.js'][37] = 0;
  _$jscoverage['plugins/rowspacing.js'][39] = 0;
}
_$jscoverage['plugins/rowspacing.js'].source = ["<span class=\"c\">/**</span>","<span class=\"c\"> * &#27573;&#21069;&#27573;&#21518;&#38388;&#36317;&#25554;&#20214;</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\"> * &#35774;&#32622;&#27573;&#21069;&#36317;,&#27573;&#21518;&#36317;</span>","<span class=\"c\"> * @command rowspacing</span>","<span class=\"c\"> * @method execCommand</span>","<span class=\"c\"> * @param { String } cmd &#21629;&#20196;&#23383;&#31526;&#20018;</span>","<span class=\"c\"> * @param { String } value &#20256;&#20837;&#27573;&#38388;&#36317;&#30340;&#20540;&#65292;&#20197;px&#20026;&#21333;&#20301;</span>","<span class=\"c\"> * @param { String } dir &#20256;&#20837;&#38388;&#36317;&#20301;&#32622;&#65292;top&#25110;bottom&#65292;&#20998;&#21035;&#34920;&#31034;&#27573;&#21069;&#21644;&#27573;&#21518;</span>","<span class=\"c\"> * @example</span>","<span class=\"c\"> * ```javascript</span>","<span class=\"c\"> * editor.execCommand( 'rowspacing', '10', 'top' );</span>","<span class=\"c\"> * ```</span>","<span class=\"c\"> */</span>","UE<span class=\"k\">.</span>plugins<span class=\"k\">[</span><span class=\"s\">'rowspacing'</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>setOpt<span class=\"k\">(</span><span class=\"k\">{</span>","        <span class=\"s\">'rowspacingtop'</span><span class=\"k\">:[</span><span class=\"s\">'5'</span><span class=\"k\">,</span> <span class=\"s\">'10'</span><span class=\"k\">,</span> <span class=\"s\">'15'</span><span class=\"k\">,</span> <span class=\"s\">'20'</span><span class=\"k\">,</span> <span class=\"s\">'25'</span><span class=\"k\">],</span>","        <span class=\"s\">'rowspacingbottom'</span><span class=\"k\">:[</span><span class=\"s\">'5'</span><span class=\"k\">,</span> <span class=\"s\">'10'</span><span class=\"k\">,</span> <span class=\"s\">'15'</span><span class=\"k\">,</span> <span class=\"s\">'20'</span><span class=\"k\">,</span> <span class=\"s\">'25'</span><span class=\"k\">]</span>","","    <span class=\"k\">}</span><span class=\"k\">);</span>","    me<span class=\"k\">.</span>commands<span class=\"k\">[</span><span class=\"s\">'rowspacing'</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> cmdName<span class=\"k\">,</span>value<span class=\"k\">,</span>dir <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\">'paragraph'</span><span class=\"k\">,</span><span class=\"s\">'p'</span><span class=\"k\">,</span><span class=\"k\">{</span>style<span class=\"k\">:</span><span class=\"s\">'margin-'</span><span class=\"k\">+</span>dir<span class=\"k\">+</span><span class=\"s\">':'</span><span class=\"k\">+</span>value <span class=\"k\">+</span> <span class=\"s\">'px'</span><span class=\"k\">}</span><span class=\"k\">);</span>","            <span class=\"k\">return</span> <span class=\"k\">true</span><span class=\"k\">;</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        queryCommandValue <span class=\"k\">:</span> <span class=\"k\">function</span><span class=\"k\">(</span>cmdName<span class=\"k\">,</span>dir<span class=\"k\">)</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> pN <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>filterNodeList<span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>selection<span class=\"k\">.</span>getStartElementPath<span class=\"k\">(),</span><span class=\"k\">function</span><span class=\"k\">(</span>node<span class=\"k\">)</span><span class=\"k\">{</span><span class=\"k\">return</span> domUtils<span class=\"k\">.</span>isBlockElm<span class=\"k\">(</span>node<span class=\"k\">)</span> <span class=\"k\">}</span><span class=\"k\">),</span>","                value<span class=\"k\">;</span>","            <span class=\"c\">//trace:1026</span>","            <span class=\"k\">if</span><span class=\"k\">(</span>pN<span class=\"k\">)</span><span class=\"k\">{</span>","                value <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>getComputedStyle<span class=\"k\">(</span>pN<span class=\"k\">,</span><span class=\"s\">'margin-'</span><span class=\"k\">+</span>dir<span class=\"k\">).</span>replace<span class=\"k\">(</span><span class=\"s\">/[^\\d]/g</span><span class=\"k\">,</span><span class=\"s\">''</span><span class=\"k\">);</span>","                <span class=\"k\">return</span> <span class=\"k\">!</span>value <span class=\"k\">?</span> <span class=\"s\">0</span> <span class=\"k\">:</span> value<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><span class=\"k\">;</span>","",""];
_$jscoverage['plugins/rowspacing.js'][19]++;
UE.plugins.rowspacing = (function () {
  _$jscoverage['plugins/rowspacing.js'][20]++;
  var me = this;
  _$jscoverage['plugins/rowspacing.js'][21]++;
  me.setOpt({"rowspacingtop": ["5", "10", "15", "20", "25"], "rowspacingbottom": ["5", "10", "15", "20", "25"]});
  _$jscoverage['plugins/rowspacing.js'][26]++;
  me.commands.rowspacing = {execCommand: (function (cmdName, value, dir) {
  _$jscoverage['plugins/rowspacing.js'][28]++;
  this.execCommand("paragraph", "p", {style: ("margin-" + dir + ":" + value + "px")});
  _$jscoverage['plugins/rowspacing.js'][29]++;
  return true;
}), queryCommandValue: (function (cmdName, dir) {
  _$jscoverage['plugins/rowspacing.js'][32]++;
  var pN = domUtils.filterNodeList(this.selection.getStartElementPath(), (function (node) {
  _$jscoverage['plugins/rowspacing.js'][32]++;
  return domUtils.isBlockElm(node);
})), value;
  _$jscoverage['plugins/rowspacing.js'][35]++;
  if (pN) {
    _$jscoverage['plugins/rowspacing.js'][36]++;
    value = domUtils.getComputedStyle(pN, ("margin-" + dir)).replace(/[^\d]/g, "");
    _$jscoverage['plugins/rowspacing.js'][37]++;
    return ((! value)? 0: value);
  }
  _$jscoverage['plugins/rowspacing.js'][39]++;
  return 0;
})};
});
