/* 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/paragraph.js']) {
  _$jscoverage['plugins/paragraph.js'] = [];
  _$jscoverage['plugins/paragraph.js'][47] = 0;
  _$jscoverage['plugins/paragraph.js'][48] = 0;
  _$jscoverage['plugins/paragraph.js'][53] = 0;
  _$jscoverage['plugins/paragraph.js'][55] = 0;
  _$jscoverage['plugins/paragraph.js'][59] = 0;
  _$jscoverage['plugins/paragraph.js'][60] = 0;
  _$jscoverage['plugins/paragraph.js'][64] = 0;
  _$jscoverage['plugins/paragraph.js'][65] = 0;
  _$jscoverage['plugins/paragraph.js'][66] = 0;
  _$jscoverage['plugins/paragraph.js'][67] = 0;
  _$jscoverage['plugins/paragraph.js'][68] = 0;
  _$jscoverage['plugins/paragraph.js'][69] = 0;
  _$jscoverage['plugins/paragraph.js'][70] = 0;
  _$jscoverage['plugins/paragraph.js'][73] = 0;
  _$jscoverage['plugins/paragraph.js'][75] = 0;
  _$jscoverage['plugins/paragraph.js'][76] = 0;
  _$jscoverage['plugins/paragraph.js'][77] = 0;
  _$jscoverage['plugins/paragraph.js'][78] = 0;
  _$jscoverage['plugins/paragraph.js'][79] = 0;
  _$jscoverage['plugins/paragraph.js'][82] = 0;
  _$jscoverage['plugins/paragraph.js'][84] = 0;
  _$jscoverage['plugins/paragraph.js'][85] = 0;
  _$jscoverage['plugins/paragraph.js'][89] = 0;
  _$jscoverage['plugins/paragraph.js'][91] = 0;
  _$jscoverage['plugins/paragraph.js'][93] = 0;
  _$jscoverage['plugins/paragraph.js'][95] = 0;
  _$jscoverage['plugins/paragraph.js'][96] = 0;
  _$jscoverage['plugins/paragraph.js'][98] = 0;
  _$jscoverage['plugins/paragraph.js'][100] = 0;
  _$jscoverage['plugins/paragraph.js'][101] = 0;
  _$jscoverage['plugins/paragraph.js'][102] = 0;
  _$jscoverage['plugins/paragraph.js'][106] = 0;
  _$jscoverage['plugins/paragraph.js'][107] = 0;
  _$jscoverage['plugins/paragraph.js'][108] = 0;
  _$jscoverage['plugins/paragraph.js'][109] = 0;
  _$jscoverage['plugins/paragraph.js'][111] = 0;
  _$jscoverage['plugins/paragraph.js'][112] = 0;
  _$jscoverage['plugins/paragraph.js'][114] = 0;
  _$jscoverage['plugins/paragraph.js'][118] = 0;
  _$jscoverage['plugins/paragraph.js'][119] = 0;
  _$jscoverage['plugins/paragraph.js'][121] = 0;
  _$jscoverage['plugins/paragraph.js'][125] = 0;
  _$jscoverage['plugins/paragraph.js'][127] = 0;
  _$jscoverage['plugins/paragraph.js'][130] = 0;
  _$jscoverage['plugins/paragraph.js'][132] = 0;
  _$jscoverage['plugins/paragraph.js'][133] = 0;
  _$jscoverage['plugins/paragraph.js'][135] = 0;
  _$jscoverage['plugins/paragraph.js'][137] = 0;
  _$jscoverage['plugins/paragraph.js'][138] = 0;
  _$jscoverage['plugins/paragraph.js'][139] = 0;
  _$jscoverage['plugins/paragraph.js'][141] = 0;
  _$jscoverage['plugins/paragraph.js'][142] = 0;
  _$jscoverage['plugins/paragraph.js'][143] = 0;
  _$jscoverage['plugins/paragraph.js'][144] = 0;
  _$jscoverage['plugins/paragraph.js'][146] = 0;
  _$jscoverage['plugins/paragraph.js'][147] = 0;
  _$jscoverage['plugins/paragraph.js'][148] = 0;
  _$jscoverage['plugins/paragraph.js'][153] = 0;
  _$jscoverage['plugins/paragraph.js'][154] = 0;
  _$jscoverage['plugins/paragraph.js'][155] = 0;
  _$jscoverage['plugins/paragraph.js'][156] = 0;
  _$jscoverage['plugins/paragraph.js'][158] = 0;
  _$jscoverage['plugins/paragraph.js'][160] = 0;
  _$jscoverage['plugins/paragraph.js'][161] = 0;
  _$jscoverage['plugins/paragraph.js'][166] = 0;
  _$jscoverage['plugins/paragraph.js'][167] = 0;
  _$jscoverage['plugins/paragraph.js'][168] = 0;
  _$jscoverage['plugins/paragraph.js'][169] = 0;
  _$jscoverage['plugins/paragraph.js'][173] = 0;
  _$jscoverage['plugins/paragraph.js'][176] = 0;
  _$jscoverage['plugins/paragraph.js'][179] = 0;
  _$jscoverage['plugins/paragraph.js'][180] = 0;
}
_$jscoverage['plugins/paragraph.js'].source = ["<span class=\"c\">/**</span>","<span class=\"c\"> * &#27573;&#33853;&#26679;&#24335;</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;&#36873;&#21306;&#20869;&#25991;&#26412;&#28155;&#21152;&#30456;&#24212;&#26631;&#31614;&#23884;&#22871;</span>","<span class=\"c\"> * @command Paragraph</span>","<span class=\"c\"> * @method execCommand</span>","<span class=\"c\"> * @param { String } cmd &#21629;&#20196;&#23383;&#31526;&#20018;</span>","<span class=\"c\"> * @param {String}   style               &#26631;&#31614;&#20540;&#20026;&#65306;'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'</span>","<span class=\"c\"> * @param {Object}   attrs               &#26631;&#31614;&#30340;&#23646;&#24615;</span>","<span class=\"c\"> * @example</span>","<span class=\"c\"> * ```javascript</span>","<span class=\"c\"> * editor.execCommand( 'Paragraph','h1','{</span>","<span class=\"c\"> *     color:'#000'</span>","<span class=\"c\"> * }' );</span>","<span class=\"c\"> * ```</span>","<span class=\"c\"> */</span>","<span class=\"c\">/**</span>","<span class=\"c\"> * &#23545;&#36873;&#21306;&#20869;&#25991;&#26412;&#28155;&#21152;&#30456;&#24212;&#26631;&#31614;&#23884;&#22871;</span>","<span class=\"c\"> * @command Paragraph</span>","<span class=\"c\"> * @method execCommand</span>","<span class=\"c\"> * @param { String } cmd &#21629;&#20196;&#23383;&#31526;&#20018;</span>","<span class=\"c\"> * @param {String}   style               &#26631;&#31614;&#20540;&#20026;&#65306;'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'</span>","<span class=\"c\"> * @param {Object}   attrs               &#26631;&#31614;&#30340;&#23646;&#24615;</span>","<span class=\"c\"> * @param {String}   sourceCmdName       &#23545;&#19982;customstyle&#29305;&#27530;&#22788;&#29702;</span>","<span class=\"c\"> * @example</span>","<span class=\"c\"> * ```javascript</span>","<span class=\"c\"> * editor.execCommand( 'Paragraph','h1','{</span>","<span class=\"c\"> *     color:'#000'</span>","<span class=\"c\"> * }' );</span>","<span class=\"c\"> * ```</span>","<span class=\"c\"> */</span>","<span class=\"c\">/**</span>","<span class=\"c\"> * &#36820;&#22238;&#36873;&#21306;&#20869;&#33410;&#28857;&#26631;&#31614;&#21517;</span>","<span class=\"c\"> * @command Paragraph</span>","<span class=\"c\"> * @method queryCommandValue</span>","<span class=\"c\"> * @param { String } cmd &#21629;&#20196;&#23383;&#31526;&#20018;</span>","<span class=\"c\"> * @return { String } &#33410;&#28857;&#26631;&#31614;&#21517;</span>","<span class=\"c\"> * @example</span>","<span class=\"c\"> * ```javascript</span>","<span class=\"c\"> * editor.queryCommandValue( 'Paragraph' );</span>","<span class=\"c\"> * ```</span>","<span class=\"c\"> */</span>","","UE<span class=\"k\">.</span>plugins<span class=\"k\">[</span><span class=\"s\">'paragraph'</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>","        block <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>isBlockElm<span class=\"k\">,</span>","        notExchange <span class=\"k\">=</span> <span class=\"k\">[</span><span class=\"s\">'TD'</span><span class=\"k\">,</span><span class=\"s\">'LI'</span><span class=\"k\">,</span><span class=\"s\">'PRE'</span><span class=\"k\">],</span>","","        doParagraph <span class=\"k\">=</span> <span class=\"k\">function</span><span class=\"k\">(</span>range<span class=\"k\">,</span>style<span class=\"k\">,</span>attrs<span class=\"k\">,</span>sourceCmdName<span class=\"k\">)</span><span class=\"k\">{</span>","            <span class=\"k\">var</span> bookmark <span class=\"k\">=</span> range<span class=\"k\">.</span>createBookmark<span class=\"k\">(),</span>","                filterFn <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>   node<span class=\"k\">.</span>nodeType <span class=\"k\">==</span> <span class=\"s\">1</span> <span class=\"k\">?</span> node<span class=\"k\">.</span>tagName<span class=\"k\">.</span>toLowerCase<span class=\"k\">()</span> <span class=\"k\">!=</span> <span class=\"s\">'br'</span> <span class=\"k\">&amp;&amp;</span>  <span class=\"k\">!</span>domUtils<span class=\"k\">.</span>isBookmarkNode<span class=\"k\">(</span>node<span class=\"k\">)</span> <span class=\"k\">:</span> <span class=\"k\">!</span>domUtils<span class=\"k\">.</span>isWhitespace<span class=\"k\">(</span> node <span class=\"k\">);</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                para<span class=\"k\">;</span>","","            range<span class=\"k\">.</span>enlarge<span class=\"k\">(</span> <span class=\"k\">true</span> <span class=\"k\">);</span>","            <span class=\"k\">var</span> bookmark2 <span class=\"k\">=</span> range<span class=\"k\">.</span>createBookmark<span class=\"k\">(),</span>","                current <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>getNextDomNode<span class=\"k\">(</span> bookmark2<span class=\"k\">.</span>start<span class=\"k\">,</span> <span class=\"k\">false</span><span class=\"k\">,</span> filterFn <span class=\"k\">),</span>","                tmpRange <span class=\"k\">=</span> range<span class=\"k\">.</span>cloneRange<span class=\"k\">(),</span>","                tmpNode<span class=\"k\">;</span>","            <span class=\"k\">while</span> <span class=\"k\">(</span> current <span class=\"k\">&amp;&amp;</span> <span class=\"k\">!(</span>domUtils<span class=\"k\">.</span>getPosition<span class=\"k\">(</span> current<span class=\"k\">,</span> bookmark2<span class=\"k\">.</span>end <span class=\"k\">)</span> <span class=\"k\">&amp;</span> domUtils<span class=\"k\">.</span>POSITION_FOLLOWING<span class=\"k\">)</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span> current<span class=\"k\">.</span>nodeType <span class=\"k\">==</span> <span class=\"s\">3</span> <span class=\"k\">||</span> <span class=\"k\">!</span>block<span class=\"k\">(</span> current <span class=\"k\">)</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                    tmpRange<span class=\"k\">.</span>setStartBefore<span class=\"k\">(</span> current <span class=\"k\">);</span>","                    <span class=\"k\">while</span> <span class=\"k\">(</span> current <span class=\"k\">&amp;&amp;</span> current <span class=\"k\">!==</span> bookmark2<span class=\"k\">.</span>end <span class=\"k\">&amp;&amp;</span> <span class=\"k\">!</span>block<span class=\"k\">(</span> current <span class=\"k\">)</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                        tmpNode <span class=\"k\">=</span> current<span class=\"k\">;</span>","                        current <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>getNextDomNode<span class=\"k\">(</span> current<span class=\"k\">,</span> <span class=\"k\">false</span><span class=\"k\">,</span> <span class=\"k\">null</span><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> <span class=\"k\">!</span>block<span class=\"k\">(</span> node <span class=\"k\">);</span>","                        <span class=\"k\">}</span> <span class=\"k\">);</span>","                    <span class=\"k\">}</span>","                    tmpRange<span class=\"k\">.</span>setEndAfter<span class=\"k\">(</span> tmpNode <span class=\"k\">);</span>","                    ","                    para <span class=\"k\">=</span> range<span class=\"k\">.</span>document<span class=\"k\">.</span>createElement<span class=\"k\">(</span> style <span class=\"k\">);</span>","                    <span class=\"k\">if</span><span class=\"k\">(</span>attrs<span class=\"k\">)</span><span class=\"k\">{</span>","                        domUtils<span class=\"k\">.</span>setAttributes<span class=\"k\">(</span>para<span class=\"k\">,</span>attrs<span class=\"k\">);</span>","                        <span class=\"k\">if</span><span class=\"k\">(</span>sourceCmdName <span class=\"k\">&amp;&amp;</span> sourceCmdName <span class=\"k\">==</span> <span class=\"s\">'customstyle'</span> <span class=\"k\">&amp;&amp;</span> attrs<span class=\"k\">.</span>style<span class=\"k\">)</span><span class=\"k\">{</span>","                            para<span class=\"k\">.</span>style<span class=\"k\">.</span>cssText <span class=\"k\">=</span> attrs<span class=\"k\">.</span>style<span class=\"k\">;</span>","                        <span class=\"k\">}</span>","                    <span class=\"k\">}</span>","                    para<span class=\"k\">.</span>appendChild<span class=\"k\">(</span> tmpRange<span class=\"k\">.</span>extractContents<span class=\"k\">()</span> <span class=\"k\">);</span>","                    <span class=\"c\">//&#38656;&#35201;&#20869;&#23481;&#21344;&#20301;</span>","                    <span class=\"k\">if</span><span class=\"k\">(</span>domUtils<span class=\"k\">.</span>isEmptyNode<span class=\"k\">(</span>para<span class=\"k\">))</span><span class=\"k\">{</span>","                        domUtils<span class=\"k\">.</span>fillChar<span class=\"k\">(</span>range<span class=\"k\">.</span>document<span class=\"k\">,</span>para<span class=\"k\">);</span>","                        ","                    <span class=\"k\">}</span>","","                    tmpRange<span class=\"k\">.</span>insertNode<span class=\"k\">(</span> para <span class=\"k\">);</span>","","                    <span class=\"k\">var</span> parent <span class=\"k\">=</span> para<span class=\"k\">.</span>parentNode<span class=\"k\">;</span>","                    <span class=\"c\">//&#22914;&#26524;para&#19978;&#19968;&#32423;&#26159;&#19968;&#20010;block&#20803;&#32032;&#19988;&#19981;&#26159;body,td&#23601;&#21024;&#38500;&#23427;</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span> block<span class=\"k\">(</span> parent <span class=\"k\">)</span> <span class=\"k\">&amp;&amp;</span> <span class=\"k\">!</span>domUtils<span class=\"k\">.</span>isBody<span class=\"k\">(</span> para<span class=\"k\">.</span>parentNode <span class=\"k\">)</span> <span class=\"k\">&amp;&amp;</span> utils<span class=\"k\">.</span>indexOf<span class=\"k\">(</span>notExchange<span class=\"k\">,</span>parent<span class=\"k\">.</span>tagName<span class=\"k\">)==-</span><span class=\"s\">1</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                        <span class=\"c\">//&#23384;&#20648;dir,style</span>","                        <span class=\"k\">if</span><span class=\"k\">(!(</span>sourceCmdName <span class=\"k\">&amp;&amp;</span> sourceCmdName <span class=\"k\">==</span> <span class=\"s\">'customstyle'</span><span class=\"k\">))</span><span class=\"k\">{</span>","                            parent<span class=\"k\">.</span>getAttribute<span class=\"k\">(</span><span class=\"s\">'dir'</span><span class=\"k\">)</span> <span class=\"k\">&amp;&amp;</span> para<span class=\"k\">.</span>setAttribute<span class=\"k\">(</span><span class=\"s\">'dir'</span><span class=\"k\">,</span>parent<span class=\"k\">.</span>getAttribute<span class=\"k\">(</span><span class=\"s\">'dir'</span><span class=\"k\">));</span>","                            <span class=\"c\">//trace:1070</span>","                            parent<span class=\"k\">.</span>style<span class=\"k\">.</span>cssText <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>para<span class=\"k\">.</span>style<span class=\"k\">.</span>cssText <span class=\"k\">=</span> parent<span class=\"k\">.</span>style<span class=\"k\">.</span>cssText <span class=\"k\">+</span> <span class=\"s\">';'</span> <span class=\"k\">+</span> para<span class=\"k\">.</span>style<span class=\"k\">.</span>cssText<span class=\"k\">);</span>","                            <span class=\"c\">//trace:1030</span>","                            parent<span class=\"k\">.</span>style<span class=\"k\">.</span>textAlign <span class=\"k\">&amp;&amp;</span> <span class=\"k\">!</span>para<span class=\"k\">.</span>style<span class=\"k\">.</span>textAlign <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>para<span class=\"k\">.</span>style<span class=\"k\">.</span>textAlign <span class=\"k\">=</span> parent<span class=\"k\">.</span>style<span class=\"k\">.</span>textAlign<span class=\"k\">);</span>","                            parent<span class=\"k\">.</span>style<span class=\"k\">.</span>textIndent <span class=\"k\">&amp;&amp;</span> <span class=\"k\">!</span>para<span class=\"k\">.</span>style<span class=\"k\">.</span>textIndent <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>para<span class=\"k\">.</span>style<span class=\"k\">.</span>textIndent <span class=\"k\">=</span> parent<span class=\"k\">.</span>style<span class=\"k\">.</span>textIndent<span class=\"k\">);</span>","                            parent<span class=\"k\">.</span>style<span class=\"k\">.</span>padding <span class=\"k\">&amp;&amp;</span> <span class=\"k\">!</span>para<span class=\"k\">.</span>style<span class=\"k\">.</span>padding <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>para<span class=\"k\">.</span>style<span class=\"k\">.</span>padding <span class=\"k\">=</span> parent<span class=\"k\">.</span>style<span class=\"k\">.</span>padding<span class=\"k\">);</span>","                        <span class=\"k\">}</span>","","                        <span class=\"c\">//trace:1706 &#36873;&#25321;&#30340;&#23601;&#26159;h1-6&#35201;&#21024;&#38500;</span>","                        <span class=\"k\">if</span><span class=\"k\">(</span>attrs <span class=\"k\">&amp;&amp;</span> <span class=\"s\">/h\\d/i</span><span class=\"k\">.</span>test<span class=\"k\">(</span>parent<span class=\"k\">.</span>tagName<span class=\"k\">)</span> <span class=\"k\">&amp;&amp;</span> <span class=\"k\">!</span><span class=\"s\">/h\\d/i</span><span class=\"k\">.</span>test<span class=\"k\">(</span>para<span class=\"k\">.</span>tagName<span class=\"k\">)</span> <span class=\"k\">)</span><span class=\"k\">{</span>","                            domUtils<span class=\"k\">.</span>setAttributes<span class=\"k\">(</span>parent<span class=\"k\">,</span>attrs<span class=\"k\">);</span>","                            <span class=\"k\">if</span><span class=\"k\">(</span>sourceCmdName <span class=\"k\">&amp;&amp;</span> sourceCmdName <span class=\"k\">==</span> <span class=\"s\">'customstyle'</span> <span class=\"k\">&amp;&amp;</span> attrs<span class=\"k\">.</span>style<span class=\"k\">)</span><span class=\"k\">{</span>","                                parent<span class=\"k\">.</span>style<span class=\"k\">.</span>cssText <span class=\"k\">=</span> attrs<span class=\"k\">.</span>style<span class=\"k\">;</span>","                            <span class=\"k\">}</span>","                            domUtils<span class=\"k\">.</span>remove<span class=\"k\">(</span>para<span class=\"k\">,</span><span class=\"k\">true</span><span class=\"k\">);</span>","                            para <span class=\"k\">=</span> parent<span class=\"k\">;</span>","                        <span class=\"k\">}</span><span class=\"k\">else</span><span class=\"k\">{</span>","                            domUtils<span class=\"k\">.</span>remove<span class=\"k\">(</span> para<span class=\"k\">.</span>parentNode<span class=\"k\">,</span> <span class=\"k\">true</span> <span class=\"k\">);</span>","                        <span class=\"k\">}</span>","","                    <span class=\"k\">}</span>","                    <span class=\"k\">if</span><span class=\"k\">(</span>  utils<span class=\"k\">.</span>indexOf<span class=\"k\">(</span>notExchange<span class=\"k\">,</span>parent<span class=\"k\">.</span>tagName<span class=\"k\">)!=-</span><span class=\"s\">1</span><span class=\"k\">)</span><span class=\"k\">{</span>","                        current <span class=\"k\">=</span> parent<span class=\"k\">;</span>","                    <span class=\"k\">}</span><span class=\"k\">else</span><span class=\"k\">{</span>","                       current <span class=\"k\">=</span> para<span class=\"k\">;</span>","                    <span class=\"k\">}</span>","","","                    current <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>getNextDomNode<span class=\"k\">(</span> current<span class=\"k\">,</span> <span class=\"k\">false</span><span class=\"k\">,</span> filterFn <span class=\"k\">);</span>","                <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                    current <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>getNextDomNode<span class=\"k\">(</span> current<span class=\"k\">,</span> <span class=\"k\">true</span><span class=\"k\">,</span> filterFn <span class=\"k\">);</span>","                <span class=\"k\">}</span>","            <span class=\"k\">}</span>","            <span class=\"k\">return</span> range<span class=\"k\">.</span>moveToBookmark<span class=\"k\">(</span> bookmark2 <span class=\"k\">).</span>moveToBookmark<span class=\"k\">(</span> bookmark <span class=\"k\">);</span>","        <span class=\"k\">}</span><span class=\"k\">;</span>","    me<span class=\"k\">.</span>setOpt<span class=\"k\">(</span><span class=\"s\">'paragraph'</span><span class=\"k\">,</span><span class=\"k\">{</span><span class=\"s\">'p'</span><span class=\"k\">:</span><span class=\"s\">''</span><span class=\"k\">,</span> <span class=\"s\">'h1'</span><span class=\"k\">:</span><span class=\"s\">''</span><span class=\"k\">,</span> <span class=\"s\">'h2'</span><span class=\"k\">:</span><span class=\"s\">''</span><span class=\"k\">,</span> <span class=\"s\">'h3'</span><span class=\"k\">:</span><span class=\"s\">''</span><span class=\"k\">,</span> <span class=\"s\">'h4'</span><span class=\"k\">:</span><span class=\"s\">''</span><span class=\"k\">,</span> <span class=\"s\">'h5'</span><span class=\"k\">:</span><span class=\"s\">''</span><span class=\"k\">,</span> <span class=\"s\">'h6'</span><span class=\"k\">:</span><span class=\"s\">''</span><span class=\"k\">}</span><span class=\"k\">);</span>","    me<span class=\"k\">.</span>commands<span class=\"k\">[</span><span class=\"s\">'paragraph'</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> style<span class=\"k\">,</span>attrs<span class=\"k\">,</span>sourceCmdName <span class=\"k\">)</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> range <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>selection<span class=\"k\">.</span>getRange<span class=\"k\">();</span>","             <span class=\"c\">//&#38381;&#21512;&#26102;&#21333;&#29420;&#22788;&#29702;</span>","            <span class=\"k\">if</span><span class=\"k\">(</span>range<span class=\"k\">.</span>collapsed<span class=\"k\">)</span><span class=\"k\">{</span>","                <span class=\"k\">var</span> txt <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>document<span class=\"k\">.</span>createTextNode<span class=\"k\">(</span><span class=\"s\">'p'</span><span class=\"k\">);</span>","                range<span class=\"k\">.</span>insertNode<span class=\"k\">(</span>txt<span class=\"k\">);</span>","                <span class=\"c\">//&#21435;&#25481;&#20887;&#20313;&#30340;fillchar</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> node <span class=\"k\">=</span> txt<span class=\"k\">.</span>previousSibling<span class=\"k\">;</span>","                    <span class=\"k\">if</span><span class=\"k\">(</span>node <span class=\"k\">&amp;&amp;</span> domUtils<span class=\"k\">.</span>isWhitespace<span class=\"k\">(</span>node<span class=\"k\">))</span><span class=\"k\">{</span>","                        domUtils<span class=\"k\">.</span>remove<span class=\"k\">(</span>node<span class=\"k\">);</span>","                    <span class=\"k\">}</span>","                    node <span class=\"k\">=</span> txt<span class=\"k\">.</span>nextSibling<span class=\"k\">;</span>","                    <span class=\"k\">if</span><span class=\"k\">(</span>node <span class=\"k\">&amp;&amp;</span> domUtils<span class=\"k\">.</span>isWhitespace<span class=\"k\">(</span>node<span class=\"k\">))</span><span class=\"k\">{</span>","                        domUtils<span class=\"k\">.</span>remove<span class=\"k\">(</span>node<span class=\"k\">);</span>","                    <span class=\"k\">}</span>","                <span class=\"k\">}</span>","","            <span class=\"k\">}</span>","            range <span class=\"k\">=</span> doParagraph<span class=\"k\">(</span>range<span class=\"k\">,</span>style<span class=\"k\">,</span>attrs<span class=\"k\">,</span>sourceCmdName<span class=\"k\">);</span>","            <span class=\"k\">if</span><span class=\"k\">(</span>txt<span class=\"k\">)</span><span class=\"k\">{</span>","                range<span class=\"k\">.</span>setStartBefore<span class=\"k\">(</span>txt<span class=\"k\">).</span>collapse<span class=\"k\">(</span><span class=\"k\">true</span><span class=\"k\">);</span>","                pN <span class=\"k\">=</span> txt<span class=\"k\">.</span>parentNode<span class=\"k\">;</span>","","                domUtils<span class=\"k\">.</span>remove<span class=\"k\">(</span>txt<span class=\"k\">);</span>","","                <span class=\"k\">if</span><span class=\"k\">(</span>domUtils<span class=\"k\">.</span>isBlockElm<span class=\"k\">(</span>pN<span class=\"k\">)&amp;&amp;</span>domUtils<span class=\"k\">.</span>isEmptyNode<span class=\"k\">(</span>pN<span class=\"k\">))</span><span class=\"k\">{</span>","                    domUtils<span class=\"k\">.</span>fillNode<span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>document<span class=\"k\">,</span>pN<span class=\"k\">);</span>","                <span class=\"k\">}</span>","","            <span class=\"k\">}</span>","","            <span class=\"k\">if</span><span class=\"k\">(</span>browser<span class=\"k\">.</span>gecko <span class=\"k\">&amp;&amp;</span> range<span class=\"k\">.</span>collapsed <span class=\"k\">&amp;&amp;</span> range<span class=\"k\">.</span>startContainer<span class=\"k\">.</span>nodeType <span class=\"k\">==</span> <span class=\"s\">1</span><span class=\"k\">)</span><span class=\"k\">{</span>","                <span class=\"k\">var</span> child <span class=\"k\">=</span> range<span class=\"k\">.</span>startContainer<span class=\"k\">.</span>childNodes<span class=\"k\">[</span>range<span class=\"k\">.</span>startOffset<span class=\"k\">];</span>","                <span class=\"k\">if</span><span class=\"k\">(</span>child <span class=\"k\">&amp;&amp;</span> child<span class=\"k\">.</span>nodeType <span class=\"k\">==</span> <span class=\"s\">1</span> <span class=\"k\">&amp;&amp;</span> child<span class=\"k\">.</span>tagName<span class=\"k\">.</span>toLowerCase<span class=\"k\">()</span> <span class=\"k\">==</span> style<span class=\"k\">)</span><span class=\"k\">{</span>","                    range<span class=\"k\">.</span>setStart<span class=\"k\">(</span>child<span class=\"k\">,</span><span class=\"s\">0</span><span class=\"k\">).</span>collapse<span class=\"k\">(</span><span class=\"k\">true</span><span class=\"k\">);</span>","                <span class=\"k\">}</span>","            <span class=\"k\">}</span>","            <span class=\"c\">//trace:1097 &#21407;&#26469;&#26377;true&#65292;&#21407;&#22240;&#24536;&#20102;&#65292;&#20294;&#21435;&#20102;&#23601;&#19981;&#33021;&#28165;&#38500;&#22810;&#20313;&#30340;&#21344;&#20301;&#31526;&#20102;</span>","            range<span class=\"k\">.</span>select<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> <span class=\"k\">{</span>","            <span class=\"k\">var</span> node <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=\"s\">'p h1 h2 h3 h4 h5 h6'</span><span class=\"k\">);</span>","            <span class=\"k\">return</span> node <span class=\"k\">?</span> node<span class=\"k\">.</span>tagName<span class=\"k\">.</span>toLowerCase<span class=\"k\">()</span> <span class=\"k\">:</span> <span class=\"s\">''</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/paragraph.js'][47]++;
UE.plugins.paragraph = (function () {
  _$jscoverage['plugins/paragraph.js'][48]++;
  var me = this, block = domUtils.isBlockElm, notExchange = ["TD", "LI", "PRE"], doParagraph = (function (range, style, attrs, sourceCmdName) {
  _$jscoverage['plugins/paragraph.js'][53]++;
  var bookmark = range.createBookmark(), filterFn = (function (node) {
  _$jscoverage['plugins/paragraph.js'][55]++;
  return ((node.nodeType == 1)? ((node.tagName.toLowerCase() != "br") && (! domUtils.isBookmarkNode(node))): (! domUtils.isWhitespace(node)));
}), para;
  _$jscoverage['plugins/paragraph.js'][59]++;
  range.enlarge(true);
  _$jscoverage['plugins/paragraph.js'][60]++;
  var bookmark2 = range.createBookmark(), current = domUtils.getNextDomNode(bookmark2.start, false, filterFn), tmpRange = range.cloneRange(), tmpNode;
  _$jscoverage['plugins/paragraph.js'][64]++;
  while ((current && (! (domUtils.getPosition(current, bookmark2.end) & domUtils.POSITION_FOLLOWING)))) {
    _$jscoverage['plugins/paragraph.js'][65]++;
    if (((current.nodeType == 3) || (! block(current)))) {
      _$jscoverage['plugins/paragraph.js'][66]++;
      tmpRange.setStartBefore(current);
      _$jscoverage['plugins/paragraph.js'][67]++;
      while ((current && (current !== bookmark2.end) && (! block(current)))) {
        _$jscoverage['plugins/paragraph.js'][68]++;
        tmpNode = current;
        _$jscoverage['plugins/paragraph.js'][69]++;
        current = domUtils.getNextDomNode(current, false, null, (function (node) {
  _$jscoverage['plugins/paragraph.js'][70]++;
  return (! block(node));
}));
}
      _$jscoverage['plugins/paragraph.js'][73]++;
      tmpRange.setEndAfter(tmpNode);
      _$jscoverage['plugins/paragraph.js'][75]++;
      para = range.document.createElement(style);
      _$jscoverage['plugins/paragraph.js'][76]++;
      if (attrs) {
        _$jscoverage['plugins/paragraph.js'][77]++;
        domUtils.setAttributes(para, attrs);
        _$jscoverage['plugins/paragraph.js'][78]++;
        if ((sourceCmdName && (sourceCmdName == "customstyle") && attrs.style)) {
          _$jscoverage['plugins/paragraph.js'][79]++;
          para.style.cssText = attrs.style;
        }
      }
      _$jscoverage['plugins/paragraph.js'][82]++;
      para.appendChild(tmpRange.extractContents());
      _$jscoverage['plugins/paragraph.js'][84]++;
      if (domUtils.isEmptyNode(para)) {
        _$jscoverage['plugins/paragraph.js'][85]++;
        domUtils.fillChar(range.document, para);
      }
      _$jscoverage['plugins/paragraph.js'][89]++;
      tmpRange.insertNode(para);
      _$jscoverage['plugins/paragraph.js'][91]++;
      var parent = para.parentNode;
      _$jscoverage['plugins/paragraph.js'][93]++;
      if ((block(parent) && (! domUtils.isBody(para.parentNode)) && (utils.indexOf(notExchange, parent.tagName) == -1))) {
        _$jscoverage['plugins/paragraph.js'][95]++;
        if ((! (sourceCmdName && (sourceCmdName == "customstyle")))) {
          _$jscoverage['plugins/paragraph.js'][96]++;
          (parent.getAttribute("dir") && para.setAttribute("dir", parent.getAttribute("dir")));
          _$jscoverage['plugins/paragraph.js'][98]++;
          (parent.style.cssText && (para.style.cssText = (parent.style.cssText + ";" + para.style.cssText)));
          _$jscoverage['plugins/paragraph.js'][100]++;
          (parent.style.textAlign && (! para.style.textAlign) && (para.style.textAlign = parent.style.textAlign));
          _$jscoverage['plugins/paragraph.js'][101]++;
          (parent.style.textIndent && (! para.style.textIndent) && (para.style.textIndent = parent.style.textIndent));
          _$jscoverage['plugins/paragraph.js'][102]++;
          (parent.style.padding && (! para.style.padding) && (para.style.padding = parent.style.padding));
        }
        _$jscoverage['plugins/paragraph.js'][106]++;
        if ((attrs && /h\d/i.test(parent.tagName) && (! /h\d/i.test(para.tagName)))) {
          _$jscoverage['plugins/paragraph.js'][107]++;
          domUtils.setAttributes(parent, attrs);
          _$jscoverage['plugins/paragraph.js'][108]++;
          if ((sourceCmdName && (sourceCmdName == "customstyle") && attrs.style)) {
            _$jscoverage['plugins/paragraph.js'][109]++;
            parent.style.cssText = attrs.style;
          }
          _$jscoverage['plugins/paragraph.js'][111]++;
          domUtils.remove(para, true);
          _$jscoverage['plugins/paragraph.js'][112]++;
          para = parent;
        }
        else {
          _$jscoverage['plugins/paragraph.js'][114]++;
          domUtils.remove(para.parentNode, true);
        }
      }
      _$jscoverage['plugins/paragraph.js'][118]++;
      if ((utils.indexOf(notExchange, parent.tagName) != -1)) {
        _$jscoverage['plugins/paragraph.js'][119]++;
        current = parent;
      }
      else {
        _$jscoverage['plugins/paragraph.js'][121]++;
        current = para;
      }
      _$jscoverage['plugins/paragraph.js'][125]++;
      current = domUtils.getNextDomNode(current, false, filterFn);
    }
    else {
      _$jscoverage['plugins/paragraph.js'][127]++;
      current = domUtils.getNextDomNode(current, true, filterFn);
    }
}
  _$jscoverage['plugins/paragraph.js'][130]++;
  return range.moveToBookmark(bookmark2).moveToBookmark(bookmark);
});
  _$jscoverage['plugins/paragraph.js'][132]++;
  me.setOpt("paragraph", {"p": "", "h1": "", "h2": "", "h3": "", "h4": "", "h5": "", "h6": ""});
  _$jscoverage['plugins/paragraph.js'][133]++;
  me.commands.paragraph = {execCommand: (function (cmdName, style, attrs, sourceCmdName) {
  _$jscoverage['plugins/paragraph.js'][135]++;
  var range = this.selection.getRange();
  _$jscoverage['plugins/paragraph.js'][137]++;
  if (range.collapsed) {
    _$jscoverage['plugins/paragraph.js'][138]++;
    var txt = this.document.createTextNode("p");
    _$jscoverage['plugins/paragraph.js'][139]++;
    range.insertNode(txt);
    _$jscoverage['plugins/paragraph.js'][141]++;
    if (browser.ie) {
      _$jscoverage['plugins/paragraph.js'][142]++;
      var node = txt.previousSibling;
      _$jscoverage['plugins/paragraph.js'][143]++;
      if ((node && domUtils.isWhitespace(node))) {
        _$jscoverage['plugins/paragraph.js'][144]++;
        domUtils.remove(node);
      }
      _$jscoverage['plugins/paragraph.js'][146]++;
      node = txt.nextSibling;
      _$jscoverage['plugins/paragraph.js'][147]++;
      if ((node && domUtils.isWhitespace(node))) {
        _$jscoverage['plugins/paragraph.js'][148]++;
        domUtils.remove(node);
      }
    }
  }
  _$jscoverage['plugins/paragraph.js'][153]++;
  range = doParagraph(range, style, attrs, sourceCmdName);
  _$jscoverage['plugins/paragraph.js'][154]++;
  if (txt) {
    _$jscoverage['plugins/paragraph.js'][155]++;
    range.setStartBefore(txt).collapse(true);
    _$jscoverage['plugins/paragraph.js'][156]++;
    pN = txt.parentNode;
    _$jscoverage['plugins/paragraph.js'][158]++;
    domUtils.remove(txt);
    _$jscoverage['plugins/paragraph.js'][160]++;
    if ((domUtils.isBlockElm(pN) && domUtils.isEmptyNode(pN))) {
      _$jscoverage['plugins/paragraph.js'][161]++;
      domUtils.fillNode(this.document, pN);
    }
  }
  _$jscoverage['plugins/paragraph.js'][166]++;
  if ((browser.gecko && range.collapsed && (range.startContainer.nodeType == 1))) {
    _$jscoverage['plugins/paragraph.js'][167]++;
    var child = range.startContainer.childNodes[range.startOffset];
    _$jscoverage['plugins/paragraph.js'][168]++;
    if ((child && (child.nodeType == 1) && (child.tagName.toLowerCase() == style))) {
      _$jscoverage['plugins/paragraph.js'][169]++;
      range.setStart(child, 0).collapse(true);
    }
  }
  _$jscoverage['plugins/paragraph.js'][173]++;
  range.select();
  _$jscoverage['plugins/paragraph.js'][176]++;
  return true;
}), queryCommandValue: (function () {
  _$jscoverage['plugins/paragraph.js'][179]++;
  var node = domUtils.filterNodeList(this.selection.getStartElementPath(), "p h1 h2 h3 h4 h5 h6");
  _$jscoverage['plugins/paragraph.js'][180]++;
  return (node? node.tagName.toLowerCase(): "");
})};
});
