/* 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/image.js']) {
  _$jscoverage['plugins/image.js'] = [];
  _$jscoverage['plugins/image.js'][41] = 0;
  _$jscoverage['plugins/image.js'][43] = 0;
  _$jscoverage['plugins/image.js'][45] = 0;
  _$jscoverage['plugins/image.js'][46] = 0;
  _$jscoverage['plugins/image.js'][47] = 0;
  _$jscoverage['plugins/image.js'][48] = 0;
  _$jscoverage['plugins/image.js'][52] = 0;
  _$jscoverage['plugins/image.js'][53] = 0;
  _$jscoverage['plugins/image.js'][54] = 0;
  _$jscoverage['plugins/image.js'][56] = 0;
  _$jscoverage['plugins/image.js'][57] = 0;
  _$jscoverage['plugins/image.js'][58] = 0;
  _$jscoverage['plugins/image.js'][59] = 0;
  _$jscoverage['plugins/image.js'][61] = 0;
  _$jscoverage['plugins/image.js'][62] = 0;
  _$jscoverage['plugins/image.js'][63] = 0;
  _$jscoverage['plugins/image.js'][64] = 0;
  _$jscoverage['plugins/image.js'][65] = 0;
  _$jscoverage['plugins/image.js'][66] = 0;
  _$jscoverage['plugins/image.js'][68] = 0;
  _$jscoverage['plugins/image.js'][69] = 0;
  _$jscoverage['plugins/image.js'][71] = 0;
  _$jscoverage['plugins/image.js'][77] = 0;
  _$jscoverage['plugins/image.js'][79] = 0;
  _$jscoverage['plugins/image.js'][80] = 0;
  _$jscoverage['plugins/image.js'][81] = 0;
  _$jscoverage['plugins/image.js'][84] = 0;
  _$jscoverage['plugins/image.js'][86] = 0;
  _$jscoverage['plugins/image.js'][87] = 0;
  _$jscoverage['plugins/image.js'][88] = 0;
  _$jscoverage['plugins/image.js'][89] = 0;
  _$jscoverage['plugins/image.js'][90] = 0;
  _$jscoverage['plugins/image.js'][91] = 0;
  _$jscoverage['plugins/image.js'][92] = 0;
  _$jscoverage['plugins/image.js'][95] = 0;
  _$jscoverage['plugins/image.js'][96] = 0;
  _$jscoverage['plugins/image.js'][98] = 0;
  _$jscoverage['plugins/image.js'][99] = 0;
  _$jscoverage['plugins/image.js'][100] = 0;
  _$jscoverage['plugins/image.js'][101] = 0;
  _$jscoverage['plugins/image.js'][103] = 0;
  _$jscoverage['plugins/image.js'][105] = 0;
  _$jscoverage['plugins/image.js'][106] = 0;
  _$jscoverage['plugins/image.js'][107] = 0;
  _$jscoverage['plugins/image.js'][108] = 0;
  _$jscoverage['plugins/image.js'][110] = 0;
  _$jscoverage['plugins/image.js'][111] = 0;
  _$jscoverage['plugins/image.js'][112] = 0;
  _$jscoverage['plugins/image.js'][117] = 0;
  _$jscoverage['plugins/image.js'][124] = 0;
  _$jscoverage['plugins/image.js'][126] = 0;
  _$jscoverage['plugins/image.js'][127] = 0;
  _$jscoverage['plugins/image.js'][129] = 0;
  _$jscoverage['plugins/image.js'][130] = 0;
  _$jscoverage['plugins/image.js'][131] = 0;
  _$jscoverage['plugins/image.js'][132] = 0;
  _$jscoverage['plugins/image.js'][133] = 0;
  _$jscoverage['plugins/image.js'][135] = 0;
  _$jscoverage['plugins/image.js'][141] = 0;
  _$jscoverage['plugins/image.js'][146] = 0;
  _$jscoverage['plugins/image.js'][149] = 0;
  _$jscoverage['plugins/image.js'][151] = 0;
  _$jscoverage['plugins/image.js'][152] = 0;
  _$jscoverage['plugins/image.js'][153] = 0;
  _$jscoverage['plugins/image.js'][155] = 0;
  _$jscoverage['plugins/image.js'][173] = 0;
  _$jscoverage['plugins/image.js'][176] = 0;
  _$jscoverage['plugins/image.js'][177] = 0;
  _$jscoverage['plugins/image.js'][178] = 0;
  _$jscoverage['plugins/image.js'][180] = 0;
  _$jscoverage['plugins/image.js'][183] = 0;
  _$jscoverage['plugins/image.js'][184] = 0;
  _$jscoverage['plugins/image.js'][185] = 0;
  _$jscoverage['plugins/image.js'][186] = 0;
  _$jscoverage['plugins/image.js'][190] = 0;
  _$jscoverage['plugins/image.js'][191] = 0;
  _$jscoverage['plugins/image.js'][192] = 0;
  _$jscoverage['plugins/image.js'][193] = 0;
  _$jscoverage['plugins/image.js'][194] = 0;
  _$jscoverage['plugins/image.js'][198] = 0;
  _$jscoverage['plugins/image.js'][199] = 0;
  _$jscoverage['plugins/image.js'][200] = 0;
  _$jscoverage['plugins/image.js'][201] = 0;
  _$jscoverage['plugins/image.js'][210] = 0;
  _$jscoverage['plugins/image.js'][211] = 0;
  _$jscoverage['plugins/image.js'][213] = 0;
  _$jscoverage['plugins/image.js'][216] = 0;
  _$jscoverage['plugins/image.js'][217] = 0;
  _$jscoverage['plugins/image.js'][223] = 0;
  _$jscoverage['plugins/image.js'][227] = 0;
}
_$jscoverage['plugins/image.js'].source = ["<span class=\"c\">/**</span>","<span class=\"c\"> * &#22270;&#29255;&#25554;&#20837;&#12289;&#25490;&#29256;&#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\"> * &#23545;&#22270;&#29255;&#23621;&#24038;&#23621;&#20013;&#23621;&#21491;&#25490;&#29256;</span>","<span class=\"c\"> * @command imagefloat</span>","<span class=\"c\"> * @method execCommand</span>","<span class=\"c\"> * @param { String } cmd &#21629;&#20196;&#23383;&#31526;&#20018;</span>","<span class=\"c\"> * @param { String } align &#23545;&#40784;&#26041;&#24335;&#65292;&#21487;&#20256;left&#12289;right&#12289;none&#12289;center</span>","<span class=\"c\"> * @example</span>","<span class=\"c\"> * ```javascript</span>","<span class=\"c\"> * editor.execCommand( 'imagefloat', 'center' );</span>","<span class=\"c\"> * ```</span>","<span class=\"c\"> */</span>","","<span class=\"c\">/**</span>","<span class=\"c\"> * &#22914;&#26524;&#36873;&#21306;&#25152;&#22312;&#20301;&#32622;&#26159;&#22270;&#29255;&#21306;&#22495;</span>","<span class=\"c\"> * @command imagefloat</span>","<span class=\"c\"> * @method queryCommandValue</span>","<span class=\"c\"> * @param { String } cmd &#21629;&#20196;&#23383;&#31526;&#20018;</span>","<span class=\"c\"> * @return { String } &#36820;&#22238;&#22270;&#29255;&#23545;&#40784;&#26041;&#24335;</span>","<span class=\"c\"> * @example</span>","<span class=\"c\"> * ```javascript</span>","<span class=\"c\"> * editor.queryCommandValue( 'imagefloat' );</span>","<span class=\"c\"> * ```</span>","<span class=\"c\"> */</span>","<span class=\"c\">/**</span>","<span class=\"c\"> * &#36820;&#22238;&#24403;&#21069;&#36873;&#21306;&#20301;&#32622;&#26159;&#21542;&#26159;&#22270;&#29255;</span>","<span class=\"c\"> * @command imagefloat</span>","<span class=\"c\"> * @method queryCommandState</span>","<span class=\"c\"> * @param { String } cmd &#21629;&#20196;&#23383;&#31526;&#20018;</span>","<span class=\"c\"> * @return { int } 0&#20026;&#26159;&#65292;-1&#20026;&#19981;&#26159;</span>","<span class=\"c\"> * @example</span>","<span class=\"c\"> * ```javascript</span>","<span class=\"c\"> * editor.queryCommandState( 'imagefloat' );</span>","<span class=\"c\"> * ```</span>","<span class=\"c\"> */</span>","UE<span class=\"k\">.</span>commands<span class=\"k\">[</span><span class=\"s\">'imagefloat'</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>cmd<span class=\"k\">,</span> align<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>","            range <span class=\"k\">=</span> me<span class=\"k\">.</span>selection<span class=\"k\">.</span>getRange<span class=\"k\">();</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> img <span class=\"k\">=</span> range<span class=\"k\">.</span>getClosedNode<span class=\"k\">();</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span>img <span class=\"k\">&amp;&amp;</span> img<span class=\"k\">.</span>tagName <span class=\"k\">==</span> <span class=\"s\">'IMG'</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">switch</span> <span class=\"k\">(</span>align<span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">case</span> <span class=\"s\">'left'</span><span class=\"k\">:</span>","                    <span class=\"k\">case</span> <span class=\"s\">'right'</span><span class=\"k\">:</span>","                    <span class=\"k\">case</span> <span class=\"s\">'none'</span><span class=\"k\">:</span>","                        <span class=\"k\">var</span> pN <span class=\"k\">=</span> img<span class=\"k\">.</span>parentNode<span class=\"k\">,</span> tmpNode<span class=\"k\">,</span> pre<span class=\"k\">,</span> next<span class=\"k\">;</span>","                        <span class=\"k\">while</span> <span class=\"k\">(</span>dtd<span class=\"k\">.</span>$inline<span class=\"k\">[</span>pN<span class=\"k\">.</span>tagName<span class=\"k\">]</span> <span class=\"k\">||</span> pN<span class=\"k\">.</span>tagName <span class=\"k\">==</span> <span class=\"s\">'A'</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                            pN <span class=\"k\">=</span> pN<span class=\"k\">.</span>parentNode<span class=\"k\">;</span>","                        <span class=\"k\">}</span>","                        tmpNode <span class=\"k\">=</span> pN<span class=\"k\">;</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>tmpNode<span class=\"k\">.</span>tagName <span class=\"k\">==</span> <span class=\"s\">'P'</span> <span class=\"k\">&amp;&amp;</span> domUtils<span class=\"k\">.</span>getStyle<span class=\"k\">(</span>tmpNode<span class=\"k\">,</span> <span class=\"s\">'text-align'</span><span class=\"k\">)</span> <span class=\"k\">==</span> <span class=\"s\">'center'</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                            <span class=\"k\">if</span> <span class=\"k\">(!</span>domUtils<span class=\"k\">.</span>isBody<span class=\"k\">(</span>tmpNode<span class=\"k\">)</span> <span class=\"k\">&amp;&amp;</span> domUtils<span class=\"k\">.</span>getChildCount<span class=\"k\">(</span>tmpNode<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>domUtils<span class=\"k\">.</span>isBr<span class=\"k\">(</span>node<span class=\"k\">)</span> <span class=\"k\">&amp;&amp;</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> <span class=\"k\">==</span> <span class=\"s\">1</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                                pre <span class=\"k\">=</span> tmpNode<span class=\"k\">.</span>previousSibling<span class=\"k\">;</span>","                                next <span class=\"k\">=</span> tmpNode<span class=\"k\">.</span>nextSibling<span class=\"k\">;</span>","                                <span class=\"k\">if</span> <span class=\"k\">(</span>pre <span class=\"k\">&amp;&amp;</span> next <span class=\"k\">&amp;&amp;</span> pre<span class=\"k\">.</span>nodeType <span class=\"k\">==</span> <span class=\"s\">1</span> <span class=\"k\">&amp;&amp;</span> next<span class=\"k\">.</span>nodeType <span class=\"k\">==</span> <span class=\"s\">1</span> <span class=\"k\">&amp;&amp;</span> pre<span class=\"k\">.</span>tagName <span class=\"k\">==</span> next<span class=\"k\">.</span>tagName <span class=\"k\">&amp;&amp;</span> domUtils<span class=\"k\">.</span>isBlockElm<span class=\"k\">(</span>pre<span class=\"k\">))</span> <span class=\"k\">{</span>","                                    pre<span class=\"k\">.</span>appendChild<span class=\"k\">(</span>tmpNode<span class=\"k\">.</span>firstChild<span class=\"k\">);</span>","                                    <span class=\"k\">while</span> <span class=\"k\">(</span>next<span class=\"k\">.</span>firstChild<span class=\"k\">)</span> <span class=\"k\">{</span>","                                        pre<span class=\"k\">.</span>appendChild<span class=\"k\">(</span>next<span class=\"k\">.</span>firstChild<span class=\"k\">);</span>","                                    <span class=\"k\">}</span>","                                    domUtils<span class=\"k\">.</span>remove<span class=\"k\">(</span>tmpNode<span class=\"k\">);</span>","                                    domUtils<span class=\"k\">.</span>remove<span class=\"k\">(</span>next<span class=\"k\">);</span>","                                <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                                    domUtils<span class=\"k\">.</span>setStyle<span class=\"k\">(</span>tmpNode<span class=\"k\">,</span> <span class=\"s\">'text-align'</span><span class=\"k\">,</span> <span class=\"s\">''</span><span class=\"k\">);</span>","                                <span class=\"k\">}</span>","","","                            <span class=\"k\">}</span>","","                            range<span class=\"k\">.</span>selectNode<span class=\"k\">(</span>img<span class=\"k\">).</span>select<span class=\"k\">();</span>","                        <span class=\"k\">}</span>","                        domUtils<span class=\"k\">.</span>setStyle<span class=\"k\">(</span>img<span class=\"k\">,</span> <span class=\"s\">'float'</span><span class=\"k\">,</span> align <span class=\"k\">==</span> <span class=\"s\">'none'</span> <span class=\"k\">?</span> <span class=\"s\">''</span> <span class=\"k\">:</span> align<span class=\"k\">);</span>","                        <span class=\"k\">if</span><span class=\"k\">(</span>align <span class=\"k\">==</span> <span class=\"s\">'none'</span><span class=\"k\">)</span><span class=\"k\">{</span>","                            domUtils<span class=\"k\">.</span>removeAttributes<span class=\"k\">(</span>img<span class=\"k\">,</span><span class=\"s\">'align'</span><span class=\"k\">);</span>","                        <span class=\"k\">}</span>","","                        <span class=\"k\">break</span><span class=\"k\">;</span>","                    <span class=\"k\">case</span> <span class=\"s\">'center'</span><span class=\"k\">:</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>me<span class=\"k\">.</span>queryCommandValue<span class=\"k\">(</span><span class=\"s\">'imagefloat'</span><span class=\"k\">)</span> <span class=\"k\">!=</span> <span class=\"s\">'center'</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                            pN <span class=\"k\">=</span> img<span class=\"k\">.</span>parentNode<span class=\"k\">;</span>","                            domUtils<span class=\"k\">.</span>setStyle<span class=\"k\">(</span>img<span class=\"k\">,</span> <span class=\"s\">'float'</span><span class=\"k\">,</span> <span class=\"s\">''</span><span class=\"k\">);</span>","                            domUtils<span class=\"k\">.</span>removeAttributes<span class=\"k\">(</span>img<span class=\"k\">,</span><span class=\"s\">'align'</span><span class=\"k\">);</span>","                            tmpNode <span class=\"k\">=</span> img<span class=\"k\">;</span>","                            <span class=\"k\">while</span> <span class=\"k\">(</span>pN <span class=\"k\">&amp;&amp;</span> domUtils<span class=\"k\">.</span>getChildCount<span class=\"k\">(</span>pN<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>domUtils<span class=\"k\">.</span>isBr<span class=\"k\">(</span>node<span class=\"k\">)</span> <span class=\"k\">&amp;&amp;</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> <span class=\"k\">==</span> <span class=\"s\">1</span>","                                <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>dtd<span class=\"k\">.</span>$inline<span class=\"k\">[</span>pN<span class=\"k\">.</span>tagName<span class=\"k\">]</span> <span class=\"k\">||</span> pN<span class=\"k\">.</span>tagName <span class=\"k\">==</span> <span class=\"s\">'A'</span><span class=\"k\">))</span> <span class=\"k\">{</span>","                                tmpNode <span class=\"k\">=</span> pN<span class=\"k\">;</span>","                                pN <span class=\"k\">=</span> pN<span class=\"k\">.</span>parentNode<span class=\"k\">;</span>","                            <span class=\"k\">}</span>","                            range<span class=\"k\">.</span>setStartBefore<span class=\"k\">(</span>tmpNode<span class=\"k\">).</span>setCursor<span class=\"k\">(</span><span class=\"k\">false</span><span class=\"k\">);</span>","                            pN <span class=\"k\">=</span> me<span class=\"k\">.</span>document<span class=\"k\">.</span>createElement<span class=\"k\">(</span><span class=\"s\">'div'</span><span class=\"k\">);</span>","                            pN<span class=\"k\">.</span>appendChild<span class=\"k\">(</span>tmpNode<span class=\"k\">);</span>","                            domUtils<span class=\"k\">.</span>setStyle<span class=\"k\">(</span>tmpNode<span class=\"k\">,</span> <span class=\"s\">'float'</span><span class=\"k\">,</span> <span class=\"s\">''</span><span class=\"k\">);</span>","","                            me<span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">'insertHtml'</span><span class=\"k\">,</span> <span class=\"s\">'&lt;p id=\"_img_parent_tmp\" style=\"text-align:center\"&gt;'</span> <span class=\"k\">+</span> pN<span class=\"k\">.</span>innerHTML <span class=\"k\">+</span> <span class=\"s\">'&lt;/p&gt;'</span><span class=\"k\">);</span>","","                            tmpNode <span class=\"k\">=</span> me<span class=\"k\">.</span>document<span class=\"k\">.</span>getElementById<span class=\"k\">(</span><span class=\"s\">'_img_parent_tmp'</span><span class=\"k\">);</span>","                            tmpNode<span class=\"k\">.</span>removeAttribute<span class=\"k\">(</span><span class=\"s\">'id'</span><span class=\"k\">);</span>","                            tmpNode <span class=\"k\">=</span> tmpNode<span class=\"k\">.</span>firstChild<span class=\"k\">;</span>","                            range<span class=\"k\">.</span>selectNode<span class=\"k\">(</span>tmpNode<span class=\"k\">).</span>select<span class=\"k\">();</span>","                            <span class=\"c\">//&#21435;&#25481;&#21518;&#36793;&#22810;&#20313;&#30340;&#20803;&#32032;</span>","                            next <span class=\"k\">=</span> tmpNode<span class=\"k\">.</span>parentNode<span class=\"k\">.</span>nextSibling<span class=\"k\">;</span>","                            <span class=\"k\">if</span> <span class=\"k\">(</span>next <span class=\"k\">&amp;&amp;</span> domUtils<span class=\"k\">.</span>isEmptyNode<span class=\"k\">(</span>next<span class=\"k\">))</span> <span class=\"k\">{</span>","                                domUtils<span class=\"k\">.</span>remove<span class=\"k\">(</span>next<span class=\"k\">);</span>","                            <span class=\"k\">}</span>","","                        <span class=\"k\">}</span>","","                        <span class=\"k\">break</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>","    queryCommandValue<span class=\"k\">:</span><span class=\"k\">function</span> <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>","            startNode<span class=\"k\">,</span> floatStyle<span class=\"k\">;</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\">return</span> <span class=\"s\">'none'</span><span class=\"k\">;</span>","        <span class=\"k\">}</span>","        startNode <span class=\"k\">=</span> range<span class=\"k\">.</span>getClosedNode<span class=\"k\">();</span>","        <span class=\"k\">if</span> <span class=\"k\">(</span>startNode <span class=\"k\">&amp;&amp;</span> startNode<span class=\"k\">.</span>nodeType <span class=\"k\">==</span> <span class=\"s\">1</span> <span class=\"k\">&amp;&amp;</span> startNode<span class=\"k\">.</span>tagName <span class=\"k\">==</span> <span class=\"s\">'IMG'</span><span class=\"k\">)</span> <span class=\"k\">{</span>","            floatStyle <span class=\"k\">=</span> startNode<span class=\"k\">.</span>getAttribute<span class=\"k\">(</span><span class=\"s\">'align'</span><span class=\"k\">)||</span>domUtils<span class=\"k\">.</span>getComputedStyle<span class=\"k\">(</span>startNode<span class=\"k\">,</span> <span class=\"s\">'float'</span><span class=\"k\">);</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span>floatStyle <span class=\"k\">==</span> <span class=\"s\">'none'</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                floatStyle <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>getComputedStyle<span class=\"k\">(</span>startNode<span class=\"k\">.</span>parentNode<span class=\"k\">,</span> <span class=\"s\">'text-align'</span><span class=\"k\">)</span> <span class=\"k\">==</span> <span class=\"s\">'center'</span> <span class=\"k\">?</span> <span class=\"s\">'center'</span> <span class=\"k\">:</span> floatStyle<span class=\"k\">;</span>","            <span class=\"k\">}</span>","            <span class=\"k\">return</span> <span class=\"k\">{</span>","                left<span class=\"k\">:</span><span class=\"s\">1</span><span class=\"k\">,</span>","                right<span class=\"k\">:</span><span class=\"s\">1</span><span class=\"k\">,</span>","                center<span class=\"k\">:</span><span class=\"s\">1</span>","            <span class=\"k\">}</span><span class=\"k\">[</span>floatStyle<span class=\"k\">]</span> <span class=\"k\">?</span> floatStyle <span class=\"k\">:</span> <span class=\"s\">'none'</span><span class=\"k\">;</span>","        <span class=\"k\">}</span>","        <span class=\"k\">return</span> <span class=\"s\">'none'</span><span class=\"k\">;</span>","","","    <span class=\"k\">}</span><span class=\"k\">,</span>","    queryCommandState<span class=\"k\">:</span><span class=\"k\">function</span> <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>","            startNode<span class=\"k\">;</span>","","        <span class=\"k\">if</span> <span class=\"k\">(</span>range<span class=\"k\">.</span>collapsed<span class=\"k\">)</span>  <span class=\"k\">return</span> <span class=\"k\">-</span><span class=\"s\">1</span><span class=\"k\">;</span>","","        startNode <span class=\"k\">=</span> range<span class=\"k\">.</span>getClosedNode<span class=\"k\">();</span>","        <span class=\"k\">if</span> <span class=\"k\">(</span>startNode <span class=\"k\">&amp;&amp;</span> startNode<span class=\"k\">.</span>nodeType <span class=\"k\">==</span> <span class=\"s\">1</span> <span class=\"k\">&amp;&amp;</span> startNode<span class=\"k\">.</span>tagName <span class=\"k\">==</span> <span class=\"s\">'IMG'</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\">return</span> <span class=\"k\">-</span><span class=\"s\">1</span><span class=\"k\">;</span>","    <span class=\"k\">}</span>","<span class=\"k\">}</span><span class=\"k\">;</span>","<span class=\"c\">/**</span>","<span class=\"c\"> * &#21521;&#32534;&#36753;&#22120;&#25554;&#20837;&#22270;&#29255;</span>","<span class=\"c\"> * @command insertimage</span>","<span class=\"c\"> * @method execCommand</span>","<span class=\"c\"> * @param { String } cmd &#21629;&#20196;&#23383;&#31526;&#20018;</span>","<span class=\"c\"> * @param { Object } opt &#23646;&#24615;&#38190;&#20540;&#23545;&#65292;&#36825;&#20123;&#23646;&#24615;&#37117;&#23558;&#34987;&#22797;&#21046;&#21040;&#24403;&#21069;&#25554;&#20837;&#22270;&#29255;</span>","<span class=\"c\"> * @example</span>","<span class=\"c\"> * ```javascript</span>","<span class=\"c\"> * editor.execCommand( 'insertimage', {</span>","<span class=\"c\"> *     src:'a/b/c.jpg',</span>","<span class=\"c\"> *     width:'100',</span>","<span class=\"c\"> *     height:'100'</span>","<span class=\"c\"> * } );</span>","<span class=\"c\"> * ```</span>","<span class=\"c\"> */</span>","UE<span class=\"k\">.</span>commands<span class=\"k\">[</span><span class=\"s\">'insertimage'</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>cmd<span class=\"k\">,</span> opt<span class=\"k\">)</span> <span class=\"k\">{</span>","","        opt <span class=\"k\">=</span> utils<span class=\"k\">.</span>isArray<span class=\"k\">(</span>opt<span class=\"k\">)</span> <span class=\"k\">?</span> opt <span class=\"k\">:</span> <span class=\"k\">[</span>opt<span class=\"k\">];</span>","        <span class=\"k\">if</span> <span class=\"k\">(!</span>opt<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> me <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">,</span>","            range <span class=\"k\">=</span> me<span class=\"k\">.</span>selection<span class=\"k\">.</span>getRange<span class=\"k\">(),</span>","            img <span class=\"k\">=</span> range<span class=\"k\">.</span>getClosedNode<span class=\"k\">();</span>","        <span class=\"k\">if</span> <span class=\"k\">(</span>img <span class=\"k\">&amp;&amp;</span> <span class=\"s\">/img/i</span><span class=\"k\">.</span>test<span class=\"k\">(</span>img<span class=\"k\">.</span>tagName<span class=\"k\">)</span> <span class=\"k\">&amp;&amp;</span> img<span class=\"k\">.</span>className <span class=\"k\">!=</span> <span class=\"s\">\"edui-faked-video\"</span> <span class=\"k\">&amp;&amp;</span> <span class=\"k\">!</span>img<span class=\"k\">.</span>getAttribute<span class=\"k\">(</span><span class=\"s\">\"word_img\"</span><span class=\"k\">))</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> first <span class=\"k\">=</span> opt<span class=\"k\">.</span>shift<span class=\"k\">();</span>","            <span class=\"k\">var</span> floatStyle <span class=\"k\">=</span> first<span class=\"k\">[</span><span class=\"s\">'floatStyle'</span><span class=\"k\">];</span>","            <span class=\"k\">delete</span> first<span class=\"k\">[</span><span class=\"s\">'floatStyle'</span><span class=\"k\">];</span>","<span class=\"c\">////                img.style.border = (first.border||0) +\"px solid #000\";</span>","<span class=\"c\">////                img.style.margin = (first.margin||0) +\"px\";</span>","<span class=\"c\">//                img.style.cssText += ';margin:' + (first.margin||0) +\"px;\" + 'border:' + (first.border||0) +\"px solid #000\";</span>","            domUtils<span class=\"k\">.</span>setAttributes<span class=\"k\">(</span>img<span class=\"k\">,</span> first<span class=\"k\">);</span>","            me<span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">'imagefloat'</span><span class=\"k\">,</span> floatStyle<span class=\"k\">);</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span>opt<span class=\"k\">.</span>length <span class=\"k\">&gt;</span> <span class=\"s\">0</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                range<span class=\"k\">.</span>setStartAfter<span class=\"k\">(</span>img<span class=\"k\">).</span>setCursor<span class=\"k\">(</span><span class=\"k\">false</span><span class=\"k\">,</span> <span class=\"k\">true</span><span class=\"k\">);</span>","                me<span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">'insertimage'</span><span class=\"k\">,</span> opt<span class=\"k\">);</span>","            <span class=\"k\">}</span>","","        <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> html <span class=\"k\">=</span> <span class=\"k\">[],</span> str <span class=\"k\">=</span> <span class=\"s\">''</span><span class=\"k\">,</span> ci<span class=\"k\">;</span>","            ci <span class=\"k\">=</span> opt<span class=\"k\">[</span><span class=\"s\">0</span><span class=\"k\">];</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span>opt<span class=\"k\">.</span>length <span class=\"k\">==</span> <span class=\"s\">1</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                str <span class=\"k\">=</span> <span class=\"s\">'&lt;img src=\"'</span> <span class=\"k\">+</span> ci<span class=\"k\">.</span>src <span class=\"k\">+</span> <span class=\"s\">'\" '</span> <span class=\"k\">+</span> <span class=\"k\">(</span>ci<span class=\"k\">.</span>_src <span class=\"k\">?</span> <span class=\"s\">' _src=\"'</span> <span class=\"k\">+</span> ci<span class=\"k\">.</span>_src <span class=\"k\">+</span> <span class=\"s\">'\" '</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span>","                    <span class=\"k\">(</span>ci<span class=\"k\">.</span>width <span class=\"k\">?</span> <span class=\"s\">'width=\"'</span> <span class=\"k\">+</span> ci<span class=\"k\">.</span>width <span class=\"k\">+</span> <span class=\"s\">'\" '</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span>","                    <span class=\"k\">(</span>ci<span class=\"k\">.</span>height <span class=\"k\">?</span> <span class=\"s\">' height=\"'</span> <span class=\"k\">+</span> ci<span class=\"k\">.</span>height <span class=\"k\">+</span> <span class=\"s\">'\" '</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span>","                    <span class=\"k\">(</span>ci<span class=\"k\">[</span><span class=\"s\">'floatStyle'</span><span class=\"k\">]</span> <span class=\"k\">==</span> <span class=\"s\">'left'</span> <span class=\"k\">||</span> ci<span class=\"k\">[</span><span class=\"s\">'floatStyle'</span><span class=\"k\">]</span> <span class=\"k\">==</span> <span class=\"s\">'right'</span> <span class=\"k\">?</span> <span class=\"s\">' style=\"float:'</span> <span class=\"k\">+</span> ci<span class=\"k\">[</span><span class=\"s\">'floatStyle'</span><span class=\"k\">]</span> <span class=\"k\">+</span> <span class=\"s\">';\"'</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span>","                    <span class=\"k\">(</span>ci<span class=\"k\">.</span>title <span class=\"k\">&amp;&amp;</span> ci<span class=\"k\">.</span>title <span class=\"k\">!=</span> <span class=\"s\">\"\"</span> <span class=\"k\">?</span> <span class=\"s\">' title=\"'</span> <span class=\"k\">+</span> ci<span class=\"k\">.</span>title <span class=\"k\">+</span> <span class=\"s\">'\"'</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span>","                    <span class=\"k\">(</span>ci<span class=\"k\">.</span>border <span class=\"k\">&amp;&amp;</span> ci<span class=\"k\">.</span>border <span class=\"k\">!=</span> <span class=\"s\">\"0\"</span> <span class=\"k\">?</span> <span class=\"s\">' border=\"'</span> <span class=\"k\">+</span> ci<span class=\"k\">.</span>border <span class=\"k\">+</span> <span class=\"s\">'\"'</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span>","                    <span class=\"k\">(</span>ci<span class=\"k\">.</span>alt <span class=\"k\">&amp;&amp;</span> ci<span class=\"k\">.</span>alt <span class=\"k\">!=</span> <span class=\"s\">\"\"</span> <span class=\"k\">?</span> <span class=\"s\">' alt=\"'</span> <span class=\"k\">+</span> ci<span class=\"k\">.</span>alt <span class=\"k\">+</span> <span class=\"s\">'\"'</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span>","                    <span class=\"k\">(</span>ci<span class=\"k\">.</span>hspace <span class=\"k\">&amp;&amp;</span> ci<span class=\"k\">.</span>hspace <span class=\"k\">!=</span> <span class=\"s\">\"0\"</span> <span class=\"k\">?</span> <span class=\"s\">' hspace = \"'</span> <span class=\"k\">+</span> ci<span class=\"k\">.</span>hspace <span class=\"k\">+</span> <span class=\"s\">'\"'</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span>","                    <span class=\"k\">(</span>ci<span class=\"k\">.</span>vspace <span class=\"k\">&amp;&amp;</span> ci<span class=\"k\">.</span>vspace <span class=\"k\">!=</span> <span class=\"s\">\"0\"</span> <span class=\"k\">?</span> <span class=\"s\">' vspace = \"'</span> <span class=\"k\">+</span> ci<span class=\"k\">.</span>vspace <span class=\"k\">+</span> <span class=\"s\">'\"'</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'/&gt;'</span><span class=\"k\">;</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>ci<span class=\"k\">[</span><span class=\"s\">'floatStyle'</span><span class=\"k\">]</span> <span class=\"k\">==</span> <span class=\"s\">'center'</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                    str <span class=\"k\">=</span> <span class=\"s\">'&lt;p style=\"text-align: center\"&gt;'</span> <span class=\"k\">+</span> str <span class=\"k\">+</span> <span class=\"s\">'&lt;/p&gt;'</span><span class=\"k\">;</span>","                <span class=\"k\">}</span>","                html<span class=\"k\">.</span>push<span class=\"k\">(</span>str<span class=\"k\">);</span>","","            <span class=\"k\">}</span> <span class=\"k\">else</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> ci <span class=\"k\">=</span> opt<span class=\"k\">[</span>i<span class=\"k\">++];)</span> <span class=\"k\">{</span>","                    str <span class=\"k\">=</span> <span class=\"s\">'&lt;p '</span> <span class=\"k\">+</span> <span class=\"k\">(</span>ci<span class=\"k\">[</span><span class=\"s\">'floatStyle'</span><span class=\"k\">]</span> <span class=\"k\">==</span> <span class=\"s\">'center'</span> <span class=\"k\">?</span> <span class=\"s\">'style=\"text-align: center\" '</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&gt;&lt;img src=\"'</span> <span class=\"k\">+</span> ci<span class=\"k\">.</span>src <span class=\"k\">+</span> <span class=\"s\">'\" '</span> <span class=\"k\">+</span>","                        <span class=\"k\">(</span>ci<span class=\"k\">.</span>width <span class=\"k\">?</span> <span class=\"s\">'width=\"'</span> <span class=\"k\">+</span> ci<span class=\"k\">.</span>width <span class=\"k\">+</span> <span class=\"s\">'\" '</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"k\">(</span>ci<span class=\"k\">.</span>_src <span class=\"k\">?</span> <span class=\"s\">' _src=\"'</span> <span class=\"k\">+</span> ci<span class=\"k\">.</span>_src <span class=\"k\">+</span> <span class=\"s\">'\" '</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span>","                        <span class=\"k\">(</span>ci<span class=\"k\">.</span>height <span class=\"k\">?</span> <span class=\"s\">' height=\"'</span> <span class=\"k\">+</span> ci<span class=\"k\">.</span>height <span class=\"k\">+</span> <span class=\"s\">'\" '</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span>","                        <span class=\"s\">' style=\"'</span> <span class=\"k\">+</span> <span class=\"k\">(</span>ci<span class=\"k\">[</span><span class=\"s\">'floatStyle'</span><span class=\"k\">]</span> <span class=\"k\">&amp;&amp;</span> ci<span class=\"k\">[</span><span class=\"s\">'floatStyle'</span><span class=\"k\">]</span> <span class=\"k\">!=</span> <span class=\"s\">'center'</span> <span class=\"k\">?</span> <span class=\"s\">'float:'</span> <span class=\"k\">+</span> ci<span class=\"k\">[</span><span class=\"s\">'floatStyle'</span><span class=\"k\">]</span> <span class=\"k\">+</span> <span class=\"s\">';'</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span>","                        <span class=\"k\">(</span>ci<span class=\"k\">.</span>border <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=\"k\">(</span>ci<span class=\"k\">.</span>title <span class=\"k\">?</span> <span class=\"s\">' title=\"'</span> <span class=\"k\">+</span> ci<span class=\"k\">.</span>title <span class=\"k\">+</span> <span class=\"s\">'\"'</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">' /&gt;&lt;/p&gt;'</span><span class=\"k\">;</span>","                    html<span class=\"k\">.</span>push<span class=\"k\">(</span>str<span class=\"k\">);</span>","                <span class=\"k\">}</span>","            <span class=\"k\">}</span>","","            me<span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">'insertHtml'</span><span class=\"k\">,</span> html<span class=\"k\">.</span>join<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>"];
_$jscoverage['plugins/image.js'][41]++;
UE.commands.imagefloat = {execCommand: (function (cmd, align) {
  _$jscoverage['plugins/image.js'][43]++;
  var me = this, range = me.selection.getRange();
  _$jscoverage['plugins/image.js'][45]++;
  if ((! range.collapsed)) {
    _$jscoverage['plugins/image.js'][46]++;
    var img = range.getClosedNode();
    _$jscoverage['plugins/image.js'][47]++;
    if ((img && (img.tagName == "IMG"))) {
      _$jscoverage['plugins/image.js'][48]++;
      switch (align) {
      case "left":
      case "right":
      case "none":
        _$jscoverage['plugins/image.js'][52]++;
        var pN = img.parentNode, tmpNode, pre, next;
        _$jscoverage['plugins/image.js'][53]++;
        while ((dtd.$inline[pN.tagName] || (pN.tagName == "A"))) {
          _$jscoverage['plugins/image.js'][54]++;
          pN = pN.parentNode;
}
        _$jscoverage['plugins/image.js'][56]++;
        tmpNode = pN;
        _$jscoverage['plugins/image.js'][57]++;
        if (((tmpNode.tagName == "P") && (domUtils.getStyle(tmpNode, "text-align") == "center"))) {
          _$jscoverage['plugins/image.js'][58]++;
          if (((! domUtils.isBody(tmpNode)) && (domUtils.getChildCount(tmpNode, (function (node) {
  _$jscoverage['plugins/image.js'][59]++;
  return ((! domUtils.isBr(node)) && (! domUtils.isWhitespace(node)));
})) == 1))) {
            _$jscoverage['plugins/image.js'][61]++;
            pre = tmpNode.previousSibling;
            _$jscoverage['plugins/image.js'][62]++;
            next = tmpNode.nextSibling;
            _$jscoverage['plugins/image.js'][63]++;
            if ((pre && next && (pre.nodeType == 1) && (next.nodeType == 1) && (pre.tagName == next.tagName) && domUtils.isBlockElm(pre))) {
              _$jscoverage['plugins/image.js'][64]++;
              pre.appendChild(tmpNode.firstChild);
              _$jscoverage['plugins/image.js'][65]++;
              while (next.firstChild) {
                _$jscoverage['plugins/image.js'][66]++;
                pre.appendChild(next.firstChild);
}
              _$jscoverage['plugins/image.js'][68]++;
              domUtils.remove(tmpNode);
              _$jscoverage['plugins/image.js'][69]++;
              domUtils.remove(next);
            }
            else {
              _$jscoverage['plugins/image.js'][71]++;
              domUtils.setStyle(tmpNode, "text-align", "");
            }
          }
          _$jscoverage['plugins/image.js'][77]++;
          range.selectNode(img).select();
        }
        _$jscoverage['plugins/image.js'][79]++;
        domUtils.setStyle(img, "float", ((align == "none")? "": align));
        _$jscoverage['plugins/image.js'][80]++;
        if ((align == "none")) {
          _$jscoverage['plugins/image.js'][81]++;
          domUtils.removeAttributes(img, "align");
        }
        _$jscoverage['plugins/image.js'][84]++;
        break;
      case "center":
        _$jscoverage['plugins/image.js'][86]++;
        if ((me.queryCommandValue("imagefloat") != "center")) {
          _$jscoverage['plugins/image.js'][87]++;
          pN = img.parentNode;
          _$jscoverage['plugins/image.js'][88]++;
          domUtils.setStyle(img, "float", "");
          _$jscoverage['plugins/image.js'][89]++;
          domUtils.removeAttributes(img, "align");
          _$jscoverage['plugins/image.js'][90]++;
          tmpNode = img;
          _$jscoverage['plugins/image.js'][91]++;
          while ((pN && (domUtils.getChildCount(pN, (function (node) {
  _$jscoverage['plugins/image.js'][92]++;
  return ((! domUtils.isBr(node)) && (! domUtils.isWhitespace(node)));
})) == 1) && (dtd.$inline[pN.tagName] || (pN.tagName == "A")))) {
            _$jscoverage['plugins/image.js'][95]++;
            tmpNode = pN;
            _$jscoverage['plugins/image.js'][96]++;
            pN = pN.parentNode;
}
          _$jscoverage['plugins/image.js'][98]++;
          range.setStartBefore(tmpNode).setCursor(false);
          _$jscoverage['plugins/image.js'][99]++;
          pN = me.document.createElement("div");
          _$jscoverage['plugins/image.js'][100]++;
          pN.appendChild(tmpNode);
          _$jscoverage['plugins/image.js'][101]++;
          domUtils.setStyle(tmpNode, "float", "");
          _$jscoverage['plugins/image.js'][103]++;
          me.execCommand("insertHtml", ("<p id=\"_img_parent_tmp\" style=\"text-align:center\">" + pN.innerHTML + "</p>"));
          _$jscoverage['plugins/image.js'][105]++;
          tmpNode = me.document.getElementById("_img_parent_tmp");
          _$jscoverage['plugins/image.js'][106]++;
          tmpNode.removeAttribute("id");
          _$jscoverage['plugins/image.js'][107]++;
          tmpNode = tmpNode.firstChild;
          _$jscoverage['plugins/image.js'][108]++;
          range.selectNode(tmpNode).select();
          _$jscoverage['plugins/image.js'][110]++;
          next = tmpNode.parentNode.nextSibling;
          _$jscoverage['plugins/image.js'][111]++;
          if ((next && domUtils.isEmptyNode(next))) {
            _$jscoverage['plugins/image.js'][112]++;
            domUtils.remove(next);
          }
        }
        _$jscoverage['plugins/image.js'][117]++;
        break;
      }
    }
  }
}), queryCommandValue: (function () {
  _$jscoverage['plugins/image.js'][124]++;
  var range = this.selection.getRange(), startNode, floatStyle;
  _$jscoverage['plugins/image.js'][126]++;
  if (range.collapsed) {
    _$jscoverage['plugins/image.js'][127]++;
    return "none";
  }
  _$jscoverage['plugins/image.js'][129]++;
  startNode = range.getClosedNode();
  _$jscoverage['plugins/image.js'][130]++;
  if ((startNode && (startNode.nodeType == 1) && (startNode.tagName == "IMG"))) {
    _$jscoverage['plugins/image.js'][131]++;
    floatStyle = (startNode.getAttribute("align") || domUtils.getComputedStyle(startNode, "float"));
    _$jscoverage['plugins/image.js'][132]++;
    if ((floatStyle == "none")) {
      _$jscoverage['plugins/image.js'][133]++;
      floatStyle = ((domUtils.getComputedStyle(startNode.parentNode, "text-align") == "center")? "center": floatStyle);
    }
    _$jscoverage['plugins/image.js'][135]++;
    return ({left: 1, right: 1, center: 1}[floatStyle]? floatStyle: "none");
  }
  _$jscoverage['plugins/image.js'][141]++;
  return "none";
}), queryCommandState: (function () {
  _$jscoverage['plugins/image.js'][146]++;
  var range = this.selection.getRange(), startNode;
  _$jscoverage['plugins/image.js'][149]++;
  if (range.collapsed) {
    _$jscoverage['plugins/image.js'][149]++;
    return -1;
  }
  _$jscoverage['plugins/image.js'][151]++;
  startNode = range.getClosedNode();
  _$jscoverage['plugins/image.js'][152]++;
  if ((startNode && (startNode.nodeType == 1) && (startNode.tagName == "IMG"))) {
    _$jscoverage['plugins/image.js'][153]++;
    return 0;
  }
  _$jscoverage['plugins/image.js'][155]++;
  return -1;
})};
_$jscoverage['plugins/image.js'][173]++;
UE.commands.insertimage = {execCommand: (function (cmd, opt) {
  _$jscoverage['plugins/image.js'][176]++;
  opt = (utils.isArray(opt)? opt: [opt]);
  _$jscoverage['plugins/image.js'][177]++;
  if ((! opt.length)) {
    _$jscoverage['plugins/image.js'][178]++;
    return;
  }
  _$jscoverage['plugins/image.js'][180]++;
  var me = this, range = me.selection.getRange(), img = range.getClosedNode();
  _$jscoverage['plugins/image.js'][183]++;
  if ((img && /img/i.test(img.tagName) && (img.className != "edui-faked-video") && (! img.getAttribute("word_img")))) {
    _$jscoverage['plugins/image.js'][184]++;
    var first = opt.shift();
    _$jscoverage['plugins/image.js'][185]++;
    var floatStyle = first.floatStyle;
    _$jscoverage['plugins/image.js'][186]++;
    (delete first.floatStyle);
    _$jscoverage['plugins/image.js'][190]++;
    domUtils.setAttributes(img, first);
    _$jscoverage['plugins/image.js'][191]++;
    me.execCommand("imagefloat", floatStyle);
    _$jscoverage['plugins/image.js'][192]++;
    if ((opt.length > 0)) {
      _$jscoverage['plugins/image.js'][193]++;
      range.setStartAfter(img).setCursor(false, true);
      _$jscoverage['plugins/image.js'][194]++;
      me.execCommand("insertimage", opt);
    }
  }
  else {
    _$jscoverage['plugins/image.js'][198]++;
    var html = [], str = "", ci;
    _$jscoverage['plugins/image.js'][199]++;
    ci = opt[0];
    _$jscoverage['plugins/image.js'][200]++;
    if ((opt.length == 1)) {
      _$jscoverage['plugins/image.js'][201]++;
      str = ("<img src=\"" + ci.src + "\" " + (ci._src? (" _src=\"" + ci._src + "\" "): "") + (ci.width? ("width=\"" + ci.width + "\" "): "") + (ci.height? (" height=\"" + ci.height + "\" "): "") + (((ci.floatStyle == "left") || (ci.floatStyle == "right"))? (" style=\"float:" + ci.floatStyle + ";\""): "") + ((ci.title && (ci.title != ""))? (" title=\"" + ci.title + "\""): "") + ((ci.border && (ci.border != "0"))? (" border=\"" + ci.border + "\""): "") + ((ci.alt && (ci.alt != ""))? (" alt=\"" + ci.alt + "\""): "") + ((ci.hspace && (ci.hspace != "0"))? (" hspace = \"" + ci.hspace + "\""): "") + ((ci.vspace && (ci.vspace != "0"))? (" vspace = \"" + ci.vspace + "\""): "") + "/>");
      _$jscoverage['plugins/image.js'][210]++;
      if ((ci.floatStyle == "center")) {
        _$jscoverage['plugins/image.js'][211]++;
        str = ("<p style=\"text-align: center\">" + str + "</p>");
      }
      _$jscoverage['plugins/image.js'][213]++;
      html.push(str);
    }
    else {
      _$jscoverage['plugins/image.js'][216]++;
      for (var i = 0; (ci = opt[(i++)]);) {
        _$jscoverage['plugins/image.js'][217]++;
        str = ("<p " + ((ci.floatStyle == "center")? "style=\"text-align: center\" ": "") + "><img src=\"" + ci.src + "\" " + (ci.width? ("width=\"" + ci.width + "\" "): "") + (ci._src? (" _src=\"" + ci._src + "\" "): "") + (ci.height? (" height=\"" + ci.height + "\" "): "") + " style=\"" + ((ci.floatStyle && (ci.floatStyle != "center"))? ("float:" + ci.floatStyle + ";"): "") + (ci.border || "") + "\" " + (ci.title? (" title=\"" + ci.title + "\""): "") + " /></p>");
        _$jscoverage['plugins/image.js'][223]++;
        html.push(str);
}
    }
    _$jscoverage['plugins/image.js'][227]++;
    me.execCommand("insertHtml", html.join(""));
  }
})};
