/* 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['ui/editor.js']) {
  _$jscoverage['ui/editor.js'] = [];
  _$jscoverage['ui/editor.js'][5] = 0;
  _$jscoverage['ui/editor.js'][6] = 0;
  _$jscoverage['ui/editor.js'][10] = 0;
  _$jscoverage['ui/editor.js'][12] = 0;
  _$jscoverage['ui/editor.js'][13] = 0;
  _$jscoverage['ui/editor.js'][14] = 0;
  _$jscoverage['ui/editor.js'][17] = 0;
  _$jscoverage['ui/editor.js'][20] = 0;
  _$jscoverage['ui/editor.js'][21] = 0;
  _$jscoverage['ui/editor.js'][22] = 0;
  _$jscoverage['ui/editor.js'][23] = 0;
  _$jscoverage['ui/editor.js'][24] = 0;
  _$jscoverage['ui/editor.js'][27] = 0;
  _$jscoverage['ui/editor.js'][29] = 0;
  _$jscoverage['ui/editor.js'][30] = 0;
  _$jscoverage['ui/editor.js'][32] = 0;
  _$jscoverage['ui/editor.js'][33] = 0;
  _$jscoverage['ui/editor.js'][36] = 0;
  _$jscoverage['ui/editor.js'][39] = 0;
  _$jscoverage['ui/editor.js'][40] = 0;
  _$jscoverage['ui/editor.js'][42] = 0;
  _$jscoverage['ui/editor.js'][43] = 0;
  _$jscoverage['ui/editor.js'][44] = 0;
  _$jscoverage['ui/editor.js'][45] = 0;
  _$jscoverage['ui/editor.js'][47] = 0;
  _$jscoverage['ui/editor.js'][48] = 0;
  _$jscoverage['ui/editor.js'][50] = 0;
  _$jscoverage['ui/editor.js'][51] = 0;
  _$jscoverage['ui/editor.js'][52] = 0;
  _$jscoverage['ui/editor.js'][53] = 0;
  _$jscoverage['ui/editor.js'][55] = 0;
  _$jscoverage['ui/editor.js'][57] = 0;
  _$jscoverage['ui/editor.js'][59] = 0;
  _$jscoverage['ui/editor.js'][60] = 0;
  _$jscoverage['ui/editor.js'][61] = 0;
  _$jscoverage['ui/editor.js'][62] = 0;
  _$jscoverage['ui/editor.js'][65] = 0;
  _$jscoverage['ui/editor.js'][66] = 0;
  _$jscoverage['ui/editor.js'][71] = 0;
  _$jscoverage['ui/editor.js'][72] = 0;
  _$jscoverage['ui/editor.js'][73] = 0;
  _$jscoverage['ui/editor.js'][74] = 0;
  _$jscoverage['ui/editor.js'][77] = 0;
  _$jscoverage['ui/editor.js'][78] = 0;
  _$jscoverage['ui/editor.js'][79] = 0;
  _$jscoverage['ui/editor.js'][81] = 0;
  _$jscoverage['ui/editor.js'][84] = 0;
  _$jscoverage['ui/editor.js'][85] = 0;
  _$jscoverage['ui/editor.js'][86] = 0;
  _$jscoverage['ui/editor.js'][87] = 0;
  _$jscoverage['ui/editor.js'][88] = 0;
  _$jscoverage['ui/editor.js'][89] = 0;
  _$jscoverage['ui/editor.js'][94] = 0;
  _$jscoverage['ui/editor.js'][96] = 0;
  _$jscoverage['ui/editor.js'][99] = 0;
  _$jscoverage['ui/editor.js'][100] = 0;
  _$jscoverage['ui/editor.js'][101] = 0;
  _$jscoverage['ui/editor.js'][102] = 0;
  _$jscoverage['ui/editor.js'][103] = 0;
  _$jscoverage['ui/editor.js'][104] = 0;
  _$jscoverage['ui/editor.js'][109] = 0;
  _$jscoverage['ui/editor.js'][110] = 0;
  _$jscoverage['ui/editor.js'][111] = 0;
  _$jscoverage['ui/editor.js'][112] = 0;
  _$jscoverage['ui/editor.js'][115] = 0;
  _$jscoverage['ui/editor.js'][117] = 0;
  _$jscoverage['ui/editor.js'][118] = 0;
  _$jscoverage['ui/editor.js'][122] = 0;
  _$jscoverage['ui/editor.js'][123] = 0;
  _$jscoverage['ui/editor.js'][125] = 0;
  _$jscoverage['ui/editor.js'][126] = 0;
  _$jscoverage['ui/editor.js'][127] = 0;
  _$jscoverage['ui/editor.js'][128] = 0;
  _$jscoverage['ui/editor.js'][129] = 0;
  _$jscoverage['ui/editor.js'][132] = 0;
  _$jscoverage['ui/editor.js'][133] = 0;
  _$jscoverage['ui/editor.js'][135] = 0;
  _$jscoverage['ui/editor.js'][136] = 0;
  _$jscoverage['ui/editor.js'][142] = 0;
  _$jscoverage['ui/editor.js'][147] = 0;
  _$jscoverage['ui/editor.js'][148] = 0;
  _$jscoverage['ui/editor.js'][150] = 0;
  _$jscoverage['ui/editor.js'][151] = 0;
  _$jscoverage['ui/editor.js'][152] = 0;
  _$jscoverage['ui/editor.js'][153] = 0;
  _$jscoverage['ui/editor.js'][155] = 0;
  _$jscoverage['ui/editor.js'][159] = 0;
  _$jscoverage['ui/editor.js'][160] = 0;
  _$jscoverage['ui/editor.js'][161] = 0;
  _$jscoverage['ui/editor.js'][163] = 0;
  _$jscoverage['ui/editor.js'][164] = 0;
  _$jscoverage['ui/editor.js'][168] = 0;
  _$jscoverage['ui/editor.js'][173] = 0;
  _$jscoverage['ui/editor.js'][174] = 0;
  _$jscoverage['ui/editor.js'][177] = 0;
  _$jscoverage['ui/editor.js'][178] = 0;
  _$jscoverage['ui/editor.js'][182] = 0;
  _$jscoverage['ui/editor.js'][183] = 0;
  _$jscoverage['ui/editor.js'][187] = 0;
  _$jscoverage['ui/editor.js'][188] = 0;
  _$jscoverage['ui/editor.js'][189] = 0;
  _$jscoverage['ui/editor.js'][191] = 0;
  _$jscoverage['ui/editor.js'][192] = 0;
  _$jscoverage['ui/editor.js'][194] = 0;
  _$jscoverage['ui/editor.js'][195] = 0;
  _$jscoverage['ui/editor.js'][197] = 0;
  _$jscoverage['ui/editor.js'][198] = 0;
  _$jscoverage['ui/editor.js'][200] = 0;
  _$jscoverage['ui/editor.js'][201] = 0;
  _$jscoverage['ui/editor.js'][202] = 0;
  _$jscoverage['ui/editor.js'][203] = 0;
  _$jscoverage['ui/editor.js'][206] = 0;
  _$jscoverage['ui/editor.js'][207] = 0;
  _$jscoverage['ui/editor.js'][208] = 0;
  _$jscoverage['ui/editor.js'][211] = 0;
  _$jscoverage['ui/editor.js'][212] = 0;
  _$jscoverage['ui/editor.js'][215] = 0;
  _$jscoverage['ui/editor.js'][216] = 0;
  _$jscoverage['ui/editor.js'][217] = 0;
  _$jscoverage['ui/editor.js'][220] = 0;
  _$jscoverage['ui/editor.js'][223] = 0;
  _$jscoverage['ui/editor.js'][224] = 0;
  _$jscoverage['ui/editor.js'][225] = 0;
  _$jscoverage['ui/editor.js'][226] = 0;
  _$jscoverage['ui/editor.js'][227] = 0;
  _$jscoverage['ui/editor.js'][228] = 0;
  _$jscoverage['ui/editor.js'][229] = 0;
  _$jscoverage['ui/editor.js'][232] = 0;
  _$jscoverage['ui/editor.js'][233] = 0;
  _$jscoverage['ui/editor.js'][234] = 0;
  _$jscoverage['ui/editor.js'][235] = 0;
  _$jscoverage['ui/editor.js'][237] = 0;
  _$jscoverage['ui/editor.js'][241] = 0;
  _$jscoverage['ui/editor.js'][242] = 0;
  _$jscoverage['ui/editor.js'][243] = 0;
  _$jscoverage['ui/editor.js'][246] = 0;
  _$jscoverage['ui/editor.js'][247] = 0;
  _$jscoverage['ui/editor.js'][248] = 0;
  _$jscoverage['ui/editor.js'][249] = 0;
  _$jscoverage['ui/editor.js'][251] = 0;
  _$jscoverage['ui/editor.js'][252] = 0;
  _$jscoverage['ui/editor.js'][254] = 0;
  _$jscoverage['ui/editor.js'][255] = 0;
  _$jscoverage['ui/editor.js'][257] = 0;
  _$jscoverage['ui/editor.js'][258] = 0;
  _$jscoverage['ui/editor.js'][260] = 0;
  _$jscoverage['ui/editor.js'][261] = 0;
  _$jscoverage['ui/editor.js'][263] = 0;
  _$jscoverage['ui/editor.js'][264] = 0;
  _$jscoverage['ui/editor.js'][265] = 0;
  _$jscoverage['ui/editor.js'][269] = 0;
  _$jscoverage['ui/editor.js'][271] = 0;
  _$jscoverage['ui/editor.js'][272] = 0;
  _$jscoverage['ui/editor.js'][274] = 0;
  _$jscoverage['ui/editor.js'][275] = 0;
  _$jscoverage['ui/editor.js'][277] = 0;
  _$jscoverage['ui/editor.js'][284] = 0;
  _$jscoverage['ui/editor.js'][287] = 0;
  _$jscoverage['ui/editor.js'][288] = 0;
  _$jscoverage['ui/editor.js'][289] = 0;
  _$jscoverage['ui/editor.js'][290] = 0;
  _$jscoverage['ui/editor.js'][291] = 0;
  _$jscoverage['ui/editor.js'][292] = 0;
  _$jscoverage['ui/editor.js'][293] = 0;
  _$jscoverage['ui/editor.js'][295] = 0;
  _$jscoverage['ui/editor.js'][296] = 0;
  _$jscoverage['ui/editor.js'][298] = 0;
  _$jscoverage['ui/editor.js'][302] = 0;
  _$jscoverage['ui/editor.js'][306] = 0;
  _$jscoverage['ui/editor.js'][307] = 0;
  _$jscoverage['ui/editor.js'][308] = 0;
  _$jscoverage['ui/editor.js'][309] = 0;
  _$jscoverage['ui/editor.js'][311] = 0;
  _$jscoverage['ui/editor.js'][318] = 0;
  _$jscoverage['ui/editor.js'][319] = 0;
  _$jscoverage['ui/editor.js'][320] = 0;
  _$jscoverage['ui/editor.js'][321] = 0;
  _$jscoverage['ui/editor.js'][322] = 0;
  _$jscoverage['ui/editor.js'][323] = 0;
  _$jscoverage['ui/editor.js'][324] = 0;
  _$jscoverage['ui/editor.js'][325] = 0;
  _$jscoverage['ui/editor.js'][326] = 0;
  _$jscoverage['ui/editor.js'][327] = 0;
  _$jscoverage['ui/editor.js'][328] = 0;
  _$jscoverage['ui/editor.js'][329] = 0;
  _$jscoverage['ui/editor.js'][330] = 0;
  _$jscoverage['ui/editor.js'][332] = 0;
  _$jscoverage['ui/editor.js'][333] = 0;
  _$jscoverage['ui/editor.js'][335] = 0;
  _$jscoverage['ui/editor.js'][336] = 0;
  _$jscoverage['ui/editor.js'][340] = 0;
  _$jscoverage['ui/editor.js'][341] = 0;
  _$jscoverage['ui/editor.js'][342] = 0;
  _$jscoverage['ui/editor.js'][344] = 0;
  _$jscoverage['ui/editor.js'][347] = 0;
  _$jscoverage['ui/editor.js'][352] = 0;
  _$jscoverage['ui/editor.js'][354] = 0;
  _$jscoverage['ui/editor.js'][356] = 0;
  _$jscoverage['ui/editor.js'][359] = 0;
  _$jscoverage['ui/editor.js'][361] = 0;
  _$jscoverage['ui/editor.js'][364] = 0;
  _$jscoverage['ui/editor.js'][388] = 0;
  _$jscoverage['ui/editor.js'][389] = 0;
  _$jscoverage['ui/editor.js'][392] = 0;
  _$jscoverage['ui/editor.js'][393] = 0;
  _$jscoverage['ui/editor.js'][394] = 0;
  _$jscoverage['ui/editor.js'][396] = 0;
  _$jscoverage['ui/editor.js'][400] = 0;
  _$jscoverage['ui/editor.js'][402] = 0;
  _$jscoverage['ui/editor.js'][403] = 0;
  _$jscoverage['ui/editor.js'][404] = 0;
  _$jscoverage['ui/editor.js'][405] = 0;
  _$jscoverage['ui/editor.js'][406] = 0;
  _$jscoverage['ui/editor.js'][408] = 0;
  _$jscoverage['ui/editor.js'][409] = 0;
  _$jscoverage['ui/editor.js'][410] = 0;
  _$jscoverage['ui/editor.js'][411] = 0;
  _$jscoverage['ui/editor.js'][412] = 0;
  _$jscoverage['ui/editor.js'][413] = 0;
  _$jscoverage['ui/editor.js'][415] = 0;
  _$jscoverage['ui/editor.js'][416] = 0;
  _$jscoverage['ui/editor.js'][417] = 0;
  _$jscoverage['ui/editor.js'][418] = 0;
  _$jscoverage['ui/editor.js'][420] = 0;
  _$jscoverage['ui/editor.js'][421] = 0;
  _$jscoverage['ui/editor.js'][423] = 0;
  _$jscoverage['ui/editor.js'][424] = 0;
  _$jscoverage['ui/editor.js'][427] = 0;
  _$jscoverage['ui/editor.js'][428] = 0;
  _$jscoverage['ui/editor.js'][429] = 0;
  _$jscoverage['ui/editor.js'][430] = 0;
  _$jscoverage['ui/editor.js'][431] = 0;
  _$jscoverage['ui/editor.js'][432] = 0;
  _$jscoverage['ui/editor.js'][434] = 0;
  _$jscoverage['ui/editor.js'][435] = 0;
  _$jscoverage['ui/editor.js'][436] = 0;
  _$jscoverage['ui/editor.js'][438] = 0;
  _$jscoverage['ui/editor.js'][439] = 0;
  _$jscoverage['ui/editor.js'][440] = 0;
  _$jscoverage['ui/editor.js'][441] = 0;
  _$jscoverage['ui/editor.js'][442] = 0;
  _$jscoverage['ui/editor.js'][445] = 0;
  _$jscoverage['ui/editor.js'][446] = 0;
  _$jscoverage['ui/editor.js'][447] = 0;
  _$jscoverage['ui/editor.js'][448] = 0;
  _$jscoverage['ui/editor.js'][450] = 0;
  _$jscoverage['ui/editor.js'][451] = 0;
  _$jscoverage['ui/editor.js'][452] = 0;
  _$jscoverage['ui/editor.js'][453] = 0;
  _$jscoverage['ui/editor.js'][454] = 0;
  _$jscoverage['ui/editor.js'][455] = 0;
  _$jscoverage['ui/editor.js'][456] = 0;
  _$jscoverage['ui/editor.js'][457] = 0;
  _$jscoverage['ui/editor.js'][458] = 0;
  _$jscoverage['ui/editor.js'][459] = 0;
  _$jscoverage['ui/editor.js'][460] = 0;
  _$jscoverage['ui/editor.js'][461] = 0;
  _$jscoverage['ui/editor.js'][466] = 0;
  _$jscoverage['ui/editor.js'][467] = 0;
  _$jscoverage['ui/editor.js'][468] = 0;
  _$jscoverage['ui/editor.js'][474] = 0;
  _$jscoverage['ui/editor.js'][475] = 0;
  _$jscoverage['ui/editor.js'][476] = 0;
  _$jscoverage['ui/editor.js'][477] = 0;
  _$jscoverage['ui/editor.js'][478] = 0;
  _$jscoverage['ui/editor.js'][480] = 0;
  _$jscoverage['ui/editor.js'][481] = 0;
  _$jscoverage['ui/editor.js'][482] = 0;
  _$jscoverage['ui/editor.js'][491] = 0;
  _$jscoverage['ui/editor.js'][492] = 0;
  _$jscoverage['ui/editor.js'][494] = 0;
  _$jscoverage['ui/editor.js'][495] = 0;
  _$jscoverage['ui/editor.js'][496] = 0;
  _$jscoverage['ui/editor.js'][498] = 0;
  _$jscoverage['ui/editor.js'][501] = 0;
  _$jscoverage['ui/editor.js'][505] = 0;
  _$jscoverage['ui/editor.js'][506] = 0;
  _$jscoverage['ui/editor.js'][507] = 0;
  _$jscoverage['ui/editor.js'][508] = 0;
  _$jscoverage['ui/editor.js'][512] = 0;
  _$jscoverage['ui/editor.js'][513] = 0;
  _$jscoverage['ui/editor.js'][514] = 0;
  _$jscoverage['ui/editor.js'][515] = 0;
  _$jscoverage['ui/editor.js'][518] = 0;
  _$jscoverage['ui/editor.js'][527] = 0;
  _$jscoverage['ui/editor.js'][536] = 0;
  _$jscoverage['ui/editor.js'][537] = 0;
  _$jscoverage['ui/editor.js'][539] = 0;
  _$jscoverage['ui/editor.js'][540] = 0;
  _$jscoverage['ui/editor.js'][543] = 0;
  _$jscoverage['ui/editor.js'][546] = 0;
  _$jscoverage['ui/editor.js'][547] = 0;
  _$jscoverage['ui/editor.js'][548] = 0;
  _$jscoverage['ui/editor.js'][551] = 0;
  _$jscoverage['ui/editor.js'][553] = 0;
  _$jscoverage['ui/editor.js'][554] = 0;
  _$jscoverage['ui/editor.js'][555] = 0;
  _$jscoverage['ui/editor.js'][558] = 0;
  _$jscoverage['ui/editor.js'][559] = 0;
  _$jscoverage['ui/editor.js'][560] = 0;
  _$jscoverage['ui/editor.js'][561] = 0;
  _$jscoverage['ui/editor.js'][562] = 0;
  _$jscoverage['ui/editor.js'][563] = 0;
  _$jscoverage['ui/editor.js'][567] = 0;
  _$jscoverage['ui/editor.js'][568] = 0;
  _$jscoverage['ui/editor.js'][569] = 0;
  _$jscoverage['ui/editor.js'][570] = 0;
  _$jscoverage['ui/editor.js'][571] = 0;
  _$jscoverage['ui/editor.js'][572] = 0;
  _$jscoverage['ui/editor.js'][573] = 0;
  _$jscoverage['ui/editor.js'][575] = 0;
  _$jscoverage['ui/editor.js'][576] = 0;
  _$jscoverage['ui/editor.js'][577] = 0;
  _$jscoverage['ui/editor.js'][579] = 0;
  _$jscoverage['ui/editor.js'][580] = 0;
  _$jscoverage['ui/editor.js'][581] = 0;
  _$jscoverage['ui/editor.js'][585] = 0;
  _$jscoverage['ui/editor.js'][586] = 0;
  _$jscoverage['ui/editor.js'][587] = 0;
  _$jscoverage['ui/editor.js'][588] = 0;
  _$jscoverage['ui/editor.js'][589] = 0;
  _$jscoverage['ui/editor.js'][591] = 0;
  _$jscoverage['ui/editor.js'][593] = 0;
  _$jscoverage['ui/editor.js'][594] = 0;
  _$jscoverage['ui/editor.js'][596] = 0;
  _$jscoverage['ui/editor.js'][597] = 0;
  _$jscoverage['ui/editor.js'][598] = 0;
  _$jscoverage['ui/editor.js'][599] = 0;
  _$jscoverage['ui/editor.js'][602] = 0;
  _$jscoverage['ui/editor.js'][603] = 0;
  _$jscoverage['ui/editor.js'][604] = 0;
  _$jscoverage['ui/editor.js'][606] = 0;
  _$jscoverage['ui/editor.js'][609] = 0;
  _$jscoverage['ui/editor.js'][611] = 0;
  _$jscoverage['ui/editor.js'][612] = 0;
  _$jscoverage['ui/editor.js'][613] = 0;
  _$jscoverage['ui/editor.js'][614] = 0;
  _$jscoverage['ui/editor.js'][616] = 0;
  _$jscoverage['ui/editor.js'][617] = 0;
  _$jscoverage['ui/editor.js'][618] = 0;
  _$jscoverage['ui/editor.js'][619] = 0;
  _$jscoverage['ui/editor.js'][623] = 0;
  _$jscoverage['ui/editor.js'][626] = 0;
  _$jscoverage['ui/editor.js'][627] = 0;
  _$jscoverage['ui/editor.js'][628] = 0;
  _$jscoverage['ui/editor.js'][630] = 0;
  _$jscoverage['ui/editor.js'][631] = 0;
  _$jscoverage['ui/editor.js'][634] = 0;
  _$jscoverage['ui/editor.js'][635] = 0;
  _$jscoverage['ui/editor.js'][636] = 0;
  _$jscoverage['ui/editor.js'][639] = 0;
  _$jscoverage['ui/editor.js'][641] = 0;
  _$jscoverage['ui/editor.js'][642] = 0;
  _$jscoverage['ui/editor.js'][643] = 0;
  _$jscoverage['ui/editor.js'][647] = 0;
  _$jscoverage['ui/editor.js'][648] = 0;
  _$jscoverage['ui/editor.js'][650] = 0;
  _$jscoverage['ui/editor.js'][651] = 0;
  _$jscoverage['ui/editor.js'][652] = 0;
  _$jscoverage['ui/editor.js'][656] = 0;
  _$jscoverage['ui/editor.js'][659] = 0;
  _$jscoverage['ui/editor.js'][662] = 0;
  _$jscoverage['ui/editor.js'][663] = 0;
  _$jscoverage['ui/editor.js'][664] = 0;
  _$jscoverage['ui/editor.js'][666] = 0;
  _$jscoverage['ui/editor.js'][670] = 0;
  _$jscoverage['ui/editor.js'][673] = 0;
  _$jscoverage['ui/editor.js'][676] = 0;
  _$jscoverage['ui/editor.js'][677] = 0;
  _$jscoverage['ui/editor.js'][678] = 0;
  _$jscoverage['ui/editor.js'][679] = 0;
  _$jscoverage['ui/editor.js'][686] = 0;
  _$jscoverage['ui/editor.js'][687] = 0;
  _$jscoverage['ui/editor.js'][688] = 0;
  _$jscoverage['ui/editor.js'][689] = 0;
  _$jscoverage['ui/editor.js'][690] = 0;
  _$jscoverage['ui/editor.js'][692] = 0;
  _$jscoverage['ui/editor.js'][693] = 0;
  _$jscoverage['ui/editor.js'][694] = 0;
  _$jscoverage['ui/editor.js'][695] = 0;
  _$jscoverage['ui/editor.js'][698] = 0;
  _$jscoverage['ui/editor.js'][699] = 0;
  _$jscoverage['ui/editor.js'][700] = 0;
  _$jscoverage['ui/editor.js'][701] = 0;
  _$jscoverage['ui/editor.js'][703] = 0;
  _$jscoverage['ui/editor.js'][704] = 0;
  _$jscoverage['ui/editor.js'][705] = 0;
  _$jscoverage['ui/editor.js'][706] = 0;
  _$jscoverage['ui/editor.js'][707] = 0;
  _$jscoverage['ui/editor.js'][708] = 0;
  _$jscoverage['ui/editor.js'][712] = 0;
  _$jscoverage['ui/editor.js'][713] = 0;
  _$jscoverage['ui/editor.js'][714] = 0;
  _$jscoverage['ui/editor.js'][715] = 0;
  _$jscoverage['ui/editor.js'][716] = 0;
  _$jscoverage['ui/editor.js'][719] = 0;
  _$jscoverage['ui/editor.js'][720] = 0;
  _$jscoverage['ui/editor.js'][722] = 0;
  _$jscoverage['ui/editor.js'][723] = 0;
  _$jscoverage['ui/editor.js'][727] = 0;
  _$jscoverage['ui/editor.js'][728] = 0;
  _$jscoverage['ui/editor.js'][729] = 0;
  _$jscoverage['ui/editor.js'][731] = 0;
  _$jscoverage['ui/editor.js'][732] = 0;
  _$jscoverage['ui/editor.js'][733] = 0;
  _$jscoverage['ui/editor.js'][734] = 0;
  _$jscoverage['ui/editor.js'][735] = 0;
  _$jscoverage['ui/editor.js'][736] = 0;
  _$jscoverage['ui/editor.js'][738] = 0;
  _$jscoverage['ui/editor.js'][739] = 0;
  _$jscoverage['ui/editor.js'][741] = 0;
  _$jscoverage['ui/editor.js'][743] = 0;
  _$jscoverage['ui/editor.js'][744] = 0;
  _$jscoverage['ui/editor.js'][746] = 0;
  _$jscoverage['ui/editor.js'][748] = 0;
  _$jscoverage['ui/editor.js'][749] = 0;
  _$jscoverage['ui/editor.js'][753] = 0;
  _$jscoverage['ui/editor.js'][754] = 0;
  _$jscoverage['ui/editor.js'][756] = 0;
  _$jscoverage['ui/editor.js'][757] = 0;
  _$jscoverage['ui/editor.js'][758] = 0;
  _$jscoverage['ui/editor.js'][763] = 0;
  _$jscoverage['ui/editor.js'][788] = 0;
  _$jscoverage['ui/editor.js'][789] = 0;
  _$jscoverage['ui/editor.js'][790] = 0;
  _$jscoverage['ui/editor.js'][791] = 0;
  _$jscoverage['ui/editor.js'][792] = 0;
  _$jscoverage['ui/editor.js'][794] = 0;
  _$jscoverage['ui/editor.js'][798] = 0;
  _$jscoverage['ui/editor.js'][799] = 0;
  _$jscoverage['ui/editor.js'][800] = 0;
  _$jscoverage['ui/editor.js'][801] = 0;
  _$jscoverage['ui/editor.js'][802] = 0;
}
_$jscoverage['ui/editor.js'].source = ["<span class=\"c\">///import core</span>","<span class=\"c\">///commands &#20840;&#23631;</span>","<span class=\"c\">///commandsName FullScreen</span>","<span class=\"c\">///commandsTitle  &#20840;&#23631;</span>","<span class=\"k\">(</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","    <span class=\"k\">var</span> utils <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>utils<span class=\"k\">,</span>","        uiUtils <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>uiUtils<span class=\"k\">,</span>","        UIBase <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>UIBase<span class=\"k\">,</span>","        domUtils <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>dom<span class=\"k\">.</span>domUtils<span class=\"k\">;</span>","    <span class=\"k\">var</span> nodeStack <span class=\"k\">=</span> <span class=\"k\">[];</span>","","    <span class=\"k\">function</span> EditorUI<span class=\"k\">(</span>options<span class=\"k\">)</span> <span class=\"k\">{</span>","        <span class=\"k\">this</span><span class=\"k\">.</span>initOptions<span class=\"k\">(</span>options<span class=\"k\">);</span>","        <span class=\"k\">this</span><span class=\"k\">.</span>initEditorUI<span class=\"k\">();</span>","    <span class=\"k\">}</span>","","    EditorUI<span class=\"k\">.</span>prototype <span class=\"k\">=</span> <span class=\"k\">{</span>","        uiName<span class=\"k\">:</span><span class=\"s\">'editor'</span><span class=\"k\">,</span>","        initEditorUI<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>ui <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">;</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>_dialogs <span class=\"k\">=</span> <span class=\"k\">{}</span><span class=\"k\">;</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>initUIBase<span class=\"k\">();</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>_initToolbars<span class=\"k\">();</span>","            <span class=\"k\">var</span> editor <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">,</span>","                me <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">;</span>","","            editor<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">'ready'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                <span class=\"c\">//&#25552;&#20379;getDialog&#26041;&#27861;</span>","                editor<span class=\"k\">.</span>getDialog <span class=\"k\">=</span> <span class=\"k\">function</span> <span class=\"k\">(</span>name<span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">return</span> editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>_dialogs<span class=\"k\">[</span>name <span class=\"k\">+</span> <span class=\"s\">\"Dialog\"</span><span class=\"k\">];</span>","                <span class=\"k\">}</span><span class=\"k\">;</span>","                domUtils<span class=\"k\">.</span>on<span class=\"k\">(</span>editor<span class=\"k\">.</span>window<span class=\"k\">,</span> <span class=\"s\">'scroll'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>evt<span class=\"k\">)</span> <span class=\"k\">{</span>","                    baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>Popup<span class=\"k\">.</span>postHide<span class=\"k\">(</span>evt<span class=\"k\">);</span>","                <span class=\"k\">}</span><span class=\"k\">);</span>","                <span class=\"c\">//&#25552;&#20379;&#32534;&#36753;&#22120;&#23454;&#26102;&#23485;&#39640;(&#20840;&#23631;&#26102;&#23485;&#39640;&#19981;&#21464;&#21270;)</span>","                editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>_actualFrameWidth <span class=\"k\">=</span> editor<span class=\"k\">.</span>options<span class=\"k\">.</span>initialFrameWidth<span class=\"k\">;</span>","","                <span class=\"c\">//display bottom-bar label based on config</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>elementPathEnabled<span class=\"k\">)</span> <span class=\"k\">{</span>","                    editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'elementpath'</span><span class=\"k\">).</span>innerHTML <span class=\"k\">=</span> <span class=\"s\">'&lt;div class=\"edui-editor-breadcrumb\"&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"elementPathTip\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">':&lt;/div&gt;'</span><span class=\"k\">;</span>","                <span class=\"k\">}</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>wordCount<span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">function</span> countFn<span class=\"k\">()</span> <span class=\"k\">{</span>","                        setCount<span class=\"k\">(</span>editor<span class=\"k\">,</span>me<span class=\"k\">);</span>","                        domUtils<span class=\"k\">.</span>un<span class=\"k\">(</span>editor<span class=\"k\">.</span>document<span class=\"k\">,</span> <span class=\"s\">\"click\"</span><span class=\"k\">,</span> arguments<span class=\"k\">.</span>callee<span class=\"k\">);</span>","                    <span class=\"k\">}</span>","                    domUtils<span class=\"k\">.</span>on<span class=\"k\">(</span>editor<span class=\"k\">.</span>document<span class=\"k\">,</span> <span class=\"s\">\"click\"</span><span class=\"k\">,</span> countFn<span class=\"k\">);</span>","                    editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'wordcount'</span><span class=\"k\">).</span>innerHTML <span class=\"k\">=</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"wordCountTip\"</span><span class=\"k\">);</span>","                <span class=\"k\">}</span>","                editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>_scale<span class=\"k\">();</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>scaleEnabled<span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span>editor<span class=\"k\">.</span>autoHeightEnabled<span class=\"k\">)</span> <span class=\"k\">{</span>","                        editor<span class=\"k\">.</span>disableAutoHeight<span class=\"k\">();</span>","                    <span class=\"k\">}</span>","                    me<span class=\"k\">.</span>enableScale<span class=\"k\">();</span>","                <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                    me<span class=\"k\">.</span>disableScale<span class=\"k\">();</span>","                <span class=\"k\">}</span>","                <span class=\"k\">if</span> <span class=\"k\">(!</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>elementPathEnabled <span class=\"k\">&amp;&amp;</span> <span class=\"k\">!</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>wordCount <span class=\"k\">&amp;&amp;</span> <span class=\"k\">!</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>scaleEnabled<span class=\"k\">)</span> <span class=\"k\">{</span>","                    editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'elementpath'</span><span class=\"k\">).</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">\"none\"</span><span class=\"k\">;</span>","                    editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'wordcount'</span><span class=\"k\">).</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">\"none\"</span><span class=\"k\">;</span>","                    editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'scale'</span><span class=\"k\">).</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">\"none\"</span><span class=\"k\">;</span>","                <span class=\"k\">}</span>","","                <span class=\"k\">if</span> <span class=\"k\">(!</span>editor<span class=\"k\">.</span>selection<span class=\"k\">.</span>isFocus<span class=\"k\">())</span><span class=\"k\">return</span><span class=\"k\">;</span>","                editor<span class=\"k\">.</span>fireEvent<span class=\"k\">(</span><span class=\"s\">'selectionchange'</span><span class=\"k\">,</span> <span class=\"k\">false</span><span class=\"k\">,</span> <span class=\"k\">true</span><span class=\"k\">);</span>","","","            <span class=\"k\">}</span><span class=\"k\">);</span>","","            editor<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">'mousedown'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>t<span class=\"k\">,</span> evt<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">var</span> el <span class=\"k\">=</span> evt<span class=\"k\">.</span>target <span class=\"k\">||</span> evt<span class=\"k\">.</span>srcElement<span class=\"k\">;</span>","                baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>Popup<span class=\"k\">.</span>postHide<span class=\"k\">(</span>evt<span class=\"k\">,</span> el<span class=\"k\">);</span>","                baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>ShortCutMenu<span class=\"k\">.</span>postHide<span class=\"k\">(</span>evt<span class=\"k\">);</span>","","            <span class=\"k\">}</span><span class=\"k\">);</span>","            editor<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">\"delcells\"</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>UE<span class=\"k\">.</span>ui<span class=\"k\">[</span><span class=\"s\">'edittip'</span><span class=\"k\">])</span> <span class=\"k\">{</span>","                    <span class=\"k\">new</span> UE<span class=\"k\">.</span>ui<span class=\"k\">[</span><span class=\"s\">'edittip'</span><span class=\"k\">](</span>editor<span class=\"k\">);</span>","                <span class=\"k\">}</span>","                editor<span class=\"k\">.</span>getDialog<span class=\"k\">(</span><span class=\"s\">'edittip'</span><span class=\"k\">).</span>open<span class=\"k\">();</span>","            <span class=\"k\">}</span><span class=\"k\">);</span>","","            <span class=\"k\">var</span> pastePop<span class=\"k\">,</span> isPaste <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">,</span> timer<span class=\"k\">;</span>","            editor<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">\"afterpaste\"</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span><span class=\"k\">(</span>editor<span class=\"k\">.</span>queryCommandState<span class=\"k\">(</span><span class=\"s\">'pasteplain'</span><span class=\"k\">))</span>","                    <span class=\"k\">return</span><span class=\"k\">;</span>","                <span class=\"k\">if</span><span class=\"k\">(</span>baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>PastePicker<span class=\"k\">)</span><span class=\"k\">{</span>","                    pastePop <span class=\"k\">=</span> <span class=\"k\">new</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>Popup<span class=\"k\">(</span><span class=\"k\">{</span>","                        content<span class=\"k\">:</span><span class=\"k\">new</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>PastePicker<span class=\"k\">(</span><span class=\"k\">{</span>editor<span class=\"k\">:</span>editor<span class=\"k\">}</span><span class=\"k\">),</span>","                        editor<span class=\"k\">:</span>editor<span class=\"k\">,</span>","                        className<span class=\"k\">:</span><span class=\"s\">'edui-wordpastepop'</span>","                    <span class=\"k\">}</span><span class=\"k\">);</span>","                    pastePop<span class=\"k\">.</span>render<span class=\"k\">();</span>","                <span class=\"k\">}</span>","                isPaste <span class=\"k\">=</span> <span class=\"k\">true</span><span class=\"k\">;</span>","            <span class=\"k\">}</span><span class=\"k\">);</span>","","            editor<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">\"afterinserthtml\"</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                clearTimeout<span class=\"k\">(</span>timer<span class=\"k\">);</span>","                timer <span class=\"k\">=</span> setTimeout<span class=\"k\">(</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span>pastePop <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>isPaste <span class=\"k\">||</span> editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>_isTransfer<span class=\"k\">))</span> <span class=\"k\">{</span>","                        <span class=\"k\">if</span><span class=\"k\">(</span>pastePop<span class=\"k\">.</span>isHidden<span class=\"k\">())</span><span class=\"k\">{</span>","                            <span class=\"k\">var</span> span <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>createElement<span class=\"k\">(</span>editor<span class=\"k\">.</span>document<span class=\"k\">,</span> <span class=\"s\">'span'</span><span class=\"k\">,</span> <span class=\"k\">{</span>","                                    <span class=\"s\">'style'</span><span class=\"k\">:</span><span class=\"s\">\"line-height:0px;\"</span><span class=\"k\">,</span>","                                    <span class=\"s\">'innerHTML'</span><span class=\"k\">:</span><span class=\"s\">'</span><span class=\"t\">\\u</span><span class=\"s\">feff'</span>","                                <span class=\"k\">}</span><span class=\"k\">),</span>","                                range <span class=\"k\">=</span> editor<span class=\"k\">.</span>selection<span class=\"k\">.</span>getRange<span class=\"k\">();</span>","                            range<span class=\"k\">.</span>insertNode<span class=\"k\">(</span>span<span class=\"k\">);</span>","                            <span class=\"k\">var</span> tmp<span class=\"k\">=</span> getDomNode<span class=\"k\">(</span>span<span class=\"k\">,</span> <span class=\"s\">'firstChild'</span><span class=\"k\">,</span> <span class=\"s\">'previousSibling'</span><span class=\"k\">);</span>","                            pastePop<span class=\"k\">.</span>showAnchor<span class=\"k\">(</span>tmp<span class=\"k\">.</span>nodeType <span class=\"k\">==</span> <span class=\"s\">3</span> <span class=\"k\">?</span> tmp<span class=\"k\">.</span>parentNode <span class=\"k\">:</span> tmp<span class=\"k\">);</span>","                            domUtils<span class=\"k\">.</span>remove<span class=\"k\">(</span>span<span class=\"k\">);</span>","","                        <span class=\"k\">}</span><span class=\"k\">else</span><span class=\"k\">{</span>","                            pastePop<span class=\"k\">.</span>show<span class=\"k\">();</span>","                        <span class=\"k\">}</span>","                        <span class=\"k\">delete</span> editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>_isTransfer<span class=\"k\">;</span>","                        isPaste <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">;</span>","                    <span class=\"k\">}</span>","                <span class=\"k\">}</span><span class=\"k\">,</span> <span class=\"s\">200</span><span class=\"k\">)</span>","            <span class=\"k\">}</span><span class=\"k\">);</span>","            editor<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">'contextmenu'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>t<span class=\"k\">,</span> evt<span class=\"k\">)</span> <span class=\"k\">{</span>","                baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>Popup<span class=\"k\">.</span>postHide<span class=\"k\">(</span>evt<span class=\"k\">);</span>","            <span class=\"k\">}</span><span class=\"k\">);</span>","            editor<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">'keydown'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>t<span class=\"k\">,</span> evt<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>pastePop<span class=\"k\">)</span>    pastePop<span class=\"k\">.</span>dispose<span class=\"k\">(</span>evt<span class=\"k\">);</span>","                <span class=\"k\">var</span> keyCode <span class=\"k\">=</span> evt<span class=\"k\">.</span>keyCode <span class=\"k\">||</span> evt<span class=\"k\">.</span>which<span class=\"k\">;</span>","                <span class=\"k\">if</span><span class=\"k\">(</span>evt<span class=\"k\">.</span>altKey<span class=\"k\">&amp;&amp;</span>keyCode<span class=\"k\">==</span><span class=\"s\">90</span><span class=\"k\">)</span><span class=\"k\">{</span>","                    UE<span class=\"k\">.</span>ui<span class=\"k\">.</span>buttons<span class=\"k\">[</span><span class=\"s\">'fullscreen'</span><span class=\"k\">].</span>onclick<span class=\"k\">();</span>","                <span class=\"k\">}</span>","            <span class=\"k\">}</span><span class=\"k\">);</span>","            editor<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">'wordcount'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>type<span class=\"k\">)</span> <span class=\"k\">{</span>","                setCount<span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">,</span>me<span class=\"k\">);</span>","            <span class=\"k\">}</span><span class=\"k\">);</span>","            <span class=\"k\">function</span> setCount<span class=\"k\">(</span>editor<span class=\"k\">,</span>ui<span class=\"k\">)</span> <span class=\"k\">{</span>","                editor<span class=\"k\">.</span>setOpt<span class=\"k\">(</span><span class=\"k\">{</span>","                    wordCount<span class=\"k\">:</span><span class=\"k\">true</span><span class=\"k\">,</span>","                    maximumWords<span class=\"k\">:</span><span class=\"s\">10000</span><span class=\"k\">,</span>","                    wordCountMsg<span class=\"k\">:</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>wordCountMsg <span class=\"k\">||</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"wordCountMsg\"</span><span class=\"k\">),</span>","                    wordOverFlowMsg<span class=\"k\">:</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>wordOverFlowMsg <span class=\"k\">||</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"wordOverFlowMsg\"</span><span class=\"k\">)</span>","                <span class=\"k\">}</span><span class=\"k\">);</span>","                <span class=\"k\">var</span> opt <span class=\"k\">=</span> editor<span class=\"k\">.</span>options<span class=\"k\">,</span>","                    max <span class=\"k\">=</span> opt<span class=\"k\">.</span>maximumWords<span class=\"k\">,</span>","                    msg <span class=\"k\">=</span> opt<span class=\"k\">.</span>wordCountMsg <span class=\"k\">,</span>","                    errMsg <span class=\"k\">=</span> opt<span class=\"k\">.</span>wordOverFlowMsg<span class=\"k\">,</span>","                    countDom <span class=\"k\">=</span> ui<span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'wordcount'</span><span class=\"k\">);</span>","                <span class=\"k\">if</span> <span class=\"k\">(!</span>opt<span class=\"k\">.</span>wordCount<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> count <span class=\"k\">=</span> editor<span class=\"k\">.</span>getContentLength<span class=\"k\">(</span><span class=\"k\">true</span><span class=\"k\">);</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>count <span class=\"k\">&gt;</span> max<span class=\"k\">)</span> <span class=\"k\">{</span>","                    countDom<span class=\"k\">.</span>innerHTML <span class=\"k\">=</span> errMsg<span class=\"k\">;</span>","                    editor<span class=\"k\">.</span>fireEvent<span class=\"k\">(</span><span class=\"s\">\"wordcountoverflow\"</span><span class=\"k\">);</span>","                <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                    countDom<span class=\"k\">.</span>innerHTML <span class=\"k\">=</span> msg<span class=\"k\">.</span>replace<span class=\"k\">(</span><span class=\"s\">\"{#leave}\"</span><span class=\"k\">,</span> max <span class=\"k\">-</span> count<span class=\"k\">).</span>replace<span class=\"k\">(</span><span class=\"s\">\"{#count}\"</span><span class=\"k\">,</span> count<span class=\"k\">);</span>","                <span class=\"k\">}</span>","            <span class=\"k\">}</span>","","            editor<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">'selectionchange'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>elementPathEnabled<span class=\"k\">)</span> <span class=\"k\">{</span>","                    me<span class=\"k\">[(</span>editor<span class=\"k\">.</span>queryCommandState<span class=\"k\">(</span><span class=\"s\">'elementpath'</span><span class=\"k\">)</span> <span class=\"k\">==</span> <span class=\"k\">-</span><span class=\"s\">1</span> <span class=\"k\">?</span> <span class=\"s\">'dis'</span> <span class=\"k\">:</span> <span class=\"s\">'en'</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'ableElementPath'</span><span class=\"k\">]()</span>","                <span class=\"k\">}</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>scaleEnabled<span class=\"k\">)</span> <span class=\"k\">{</span>","                    me<span class=\"k\">[(</span>editor<span class=\"k\">.</span>queryCommandState<span class=\"k\">(</span><span class=\"s\">'scale'</span><span class=\"k\">)</span> <span class=\"k\">==</span> <span class=\"k\">-</span><span class=\"s\">1</span> <span class=\"k\">?</span> <span class=\"s\">'dis'</span> <span class=\"k\">:</span> <span class=\"s\">'en'</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'ableScale'</span><span class=\"k\">]();</span>","","                <span class=\"k\">}</span>","            <span class=\"k\">}</span><span class=\"k\">);</span>","            <span class=\"k\">var</span> popup <span class=\"k\">=</span> <span class=\"k\">new</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>Popup<span class=\"k\">(</span><span class=\"k\">{</span>","                editor<span class=\"k\">:</span>editor<span class=\"k\">,</span>","                content<span class=\"k\">:</span><span class=\"s\">''</span><span class=\"k\">,</span>","                className<span class=\"k\">:</span><span class=\"s\">'edui-bubble'</span><span class=\"k\">,</span>","                _onEditButtonClick<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>hide<span class=\"k\">();</span>","                    editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>_dialogs<span class=\"k\">.</span>linkDialog<span class=\"k\">.</span>open<span class=\"k\">();</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                _onImgEditButtonClick<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">(</span>name<span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>hide<span class=\"k\">();</span>","                    editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>_dialogs<span class=\"k\">[</span>name<span class=\"k\">]</span> <span class=\"k\">&amp;&amp;</span> editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>_dialogs<span class=\"k\">[</span>name<span class=\"k\">].</span>open<span class=\"k\">();</span>","","                <span class=\"k\">}</span><span class=\"k\">,</span>","                _onImgSetFloat<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">(</span>value<span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>hide<span class=\"k\">();</span>","                    editor<span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">\"imagefloat\"</span><span class=\"k\">,</span> value<span class=\"k\">);</span>","","                <span class=\"k\">}</span><span class=\"k\">,</span>","                _setIframeAlign<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">(</span>value<span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">var</span> frame <span class=\"k\">=</span> popup<span class=\"k\">.</span>anchorEl<span class=\"k\">;</span>","                    <span class=\"k\">var</span> newFrame <span class=\"k\">=</span> frame<span class=\"k\">.</span>cloneNode<span class=\"k\">(</span><span class=\"k\">true</span><span class=\"k\">);</span>","                    <span class=\"k\">switch</span> <span class=\"k\">(</span>value<span class=\"k\">)</span> <span class=\"k\">{</span>","                        <span class=\"k\">case</span> <span class=\"k\">-</span><span class=\"s\">2</span><span class=\"k\">:</span>","                            newFrame<span class=\"k\">.</span>setAttribute<span class=\"k\">(</span><span class=\"s\">\"align\"</span><span class=\"k\">,</span> <span class=\"s\">\"\"</span><span class=\"k\">);</span>","                            <span class=\"k\">break</span><span class=\"k\">;</span>","                        <span class=\"k\">case</span> <span class=\"k\">-</span><span class=\"s\">1</span><span class=\"k\">:</span>","                            newFrame<span class=\"k\">.</span>setAttribute<span class=\"k\">(</span><span class=\"s\">\"align\"</span><span class=\"k\">,</span> <span class=\"s\">\"left\"</span><span class=\"k\">);</span>","                            <span class=\"k\">break</span><span class=\"k\">;</span>","                        <span class=\"k\">case</span> <span class=\"s\">1</span><span class=\"k\">:</span>","                            newFrame<span class=\"k\">.</span>setAttribute<span class=\"k\">(</span><span class=\"s\">\"align\"</span><span class=\"k\">,</span> <span class=\"s\">\"right\"</span><span class=\"k\">);</span>","                            <span class=\"k\">break</span><span class=\"k\">;</span>","                    <span class=\"k\">}</span>","                    frame<span class=\"k\">.</span>parentNode<span class=\"k\">.</span>insertBefore<span class=\"k\">(</span>newFrame<span class=\"k\">,</span> frame<span class=\"k\">);</span>","                    domUtils<span class=\"k\">.</span>remove<span class=\"k\">(</span>frame<span class=\"k\">);</span>","                    popup<span class=\"k\">.</span>anchorEl <span class=\"k\">=</span> newFrame<span class=\"k\">;</span>","                    popup<span class=\"k\">.</span>showAnchor<span class=\"k\">(</span>popup<span class=\"k\">.</span>anchorEl<span class=\"k\">);</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                _updateIframe<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                    editor<span class=\"k\">.</span>_iframe <span class=\"k\">=</span> popup<span class=\"k\">.</span>anchorEl<span class=\"k\">;</span>","                    editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>_dialogs<span class=\"k\">.</span>insertframeDialog<span class=\"k\">.</span>open<span class=\"k\">();</span>","                    popup<span class=\"k\">.</span>hide<span class=\"k\">();</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                _onRemoveButtonClick<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">(</span>cmdName<span class=\"k\">)</span> <span class=\"k\">{</span>","                    editor<span class=\"k\">.</span>execCommand<span class=\"k\">(</span>cmdName<span class=\"k\">);</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>hide<span class=\"k\">();</span>","                <span class=\"k\">}</span><span class=\"k\">,</span>","                queryAutoHide<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">(</span>el<span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span>el <span class=\"k\">&amp;&amp;</span> el<span class=\"k\">.</span>ownerDocument <span class=\"k\">==</span> editor<span class=\"k\">.</span>document<span class=\"k\">)</span> <span class=\"k\">{</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>el<span class=\"k\">.</span>tagName<span class=\"k\">.</span>toLowerCase<span class=\"k\">()</span> <span class=\"k\">==</span> <span class=\"s\">'img'</span> <span class=\"k\">||</span> domUtils<span class=\"k\">.</span>findParentByTagName<span class=\"k\">(</span>el<span class=\"k\">,</span> <span class=\"s\">'a'</span><span class=\"k\">,</span> <span class=\"k\">true</span><span class=\"k\">))</span> <span class=\"k\">{</span>","                            <span class=\"k\">return</span> el <span class=\"k\">!==</span> popup<span class=\"k\">.</span>anchorEl<span class=\"k\">;</span>","                        <span class=\"k\">}</span>","                    <span class=\"k\">}</span>","                    <span class=\"k\">return</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>Popup<span class=\"k\">.</span>prototype<span class=\"k\">.</span>queryAutoHide<span class=\"k\">.</span>call<span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">,</span> el<span class=\"k\">);</span>","                <span class=\"k\">}</span>","            <span class=\"k\">}</span><span class=\"k\">);</span>","            popup<span class=\"k\">.</span>render<span class=\"k\">();</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>imagePopup<span class=\"k\">)</span> <span class=\"k\">{</span>","                editor<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">'mouseover'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>t<span class=\"k\">,</span> evt<span class=\"k\">)</span> <span class=\"k\">{</span>","                    evt <span class=\"k\">=</span> evt <span class=\"k\">||</span> window<span class=\"k\">.</span>event<span class=\"k\">;</span>","                    <span class=\"k\">var</span> el <span class=\"k\">=</span> evt<span class=\"k\">.</span>target <span class=\"k\">||</span> evt<span class=\"k\">.</span>srcElement<span class=\"k\">;</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>_dialogs<span class=\"k\">.</span>insertframeDialog <span class=\"k\">&amp;&amp;</span> <span class=\"s\">/iframe/ig</span><span class=\"k\">.</span>test<span class=\"k\">(</span>el<span class=\"k\">.</span>tagName<span class=\"k\">))</span> <span class=\"k\">{</span>","                        <span class=\"k\">var</span> html <span class=\"k\">=</span> popup<span class=\"k\">.</span>formatHtml<span class=\"k\">(</span>","                            <span class=\"s\">'&lt;nobr&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"property\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">': &lt;span onclick=$$._setIframeAlign(-2) class=\"edui-clickable\"&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"default\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;span onclick=$$._setIframeAlign(-1) class=\"edui-clickable\"&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"justifyleft\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;span onclick=$$._setIframeAlign(1) class=\"edui-clickable\"&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"justifyright\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/span&gt;&amp;nbsp;&amp;nbsp;'</span> <span class=\"k\">+</span>","                                <span class=\"s\">' &lt;span onclick=\"$$._updateIframe( this);\" class=\"edui-clickable\"&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"modify\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/span&gt;&lt;/nobr&gt;'</span><span class=\"k\">);</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>html<span class=\"k\">)</span> <span class=\"k\">{</span>","                            popup<span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'content'</span><span class=\"k\">).</span>innerHTML <span class=\"k\">=</span> html<span class=\"k\">;</span>","                            popup<span class=\"k\">.</span>anchorEl <span class=\"k\">=</span> el<span class=\"k\">;</span>","                            popup<span class=\"k\">.</span>showAnchor<span class=\"k\">(</span>popup<span class=\"k\">.</span>anchorEl<span class=\"k\">);</span>","                        <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                            popup<span class=\"k\">.</span>hide<span class=\"k\">();</span>","                        <span class=\"k\">}</span>","                    <span class=\"k\">}</span>","                <span class=\"k\">}</span><span class=\"k\">);</span>","                editor<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">'selectionchange'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>t<span class=\"k\">,</span> causeByUi<span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">if</span> <span class=\"k\">(!</span>causeByUi<span class=\"k\">)</span> <span class=\"k\">return</span><span class=\"k\">;</span>","                    <span class=\"k\">var</span> html <span class=\"k\">=</span> <span class=\"s\">''</span><span class=\"k\">,</span> str <span class=\"k\">=</span> <span class=\"s\">\"\"</span><span class=\"k\">,</span>","                        img <span class=\"k\">=</span> editor<span class=\"k\">.</span>selection<span class=\"k\">.</span>getRange<span class=\"k\">().</span>getClosedNode<span class=\"k\">(),</span>","                        dialogs <span class=\"k\">=</span> editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>_dialogs<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\">var</span> dialogName <span class=\"k\">=</span> <span class=\"s\">'insertimageDialog'</span><span class=\"k\">;</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>img<span class=\"k\">.</span>className<span class=\"k\">.</span>indexOf<span class=\"k\">(</span><span class=\"s\">\"edui-faked-video\"</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>","                            dialogName <span class=\"k\">=</span> <span class=\"s\">\"insertvideoDialog\"</span>","                        <span class=\"k\">}</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>img<span class=\"k\">.</span>className<span class=\"k\">.</span>indexOf<span class=\"k\">(</span><span class=\"s\">\"edui-faked-webapp\"</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>","                            dialogName <span class=\"k\">=</span> <span class=\"s\">\"webappDialog\"</span>","                        <span class=\"k\">}</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>img<span class=\"k\">.</span>src<span class=\"k\">.</span>indexOf<span class=\"k\">(</span><span class=\"s\">\"http://api.map.baidu.com\"</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>","                            dialogName <span class=\"k\">=</span> <span class=\"s\">\"mapDialog\"</span>","                        <span class=\"k\">}</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>img<span class=\"k\">.</span>className<span class=\"k\">.</span>indexOf<span class=\"k\">(</span><span class=\"s\">\"edui-faked-music\"</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>","                            dialogName <span class=\"k\">=</span> <span class=\"s\">\"musicDialog\"</span>","                        <span class=\"k\">}</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>img<span class=\"k\">.</span>src<span class=\"k\">.</span>indexOf<span class=\"k\">(</span><span class=\"s\">\"http://maps.google.com/maps/api/staticmap\"</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>","                            dialogName <span class=\"k\">=</span> <span class=\"s\">\"gmapDialog\"</span>","                        <span class=\"k\">}</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>img<span class=\"k\">.</span>getAttribute<span class=\"k\">(</span><span class=\"s\">\"anchorname\"</span><span class=\"k\">))</span> <span class=\"k\">{</span>","                            dialogName <span class=\"k\">=</span> <span class=\"s\">\"anchorDialog\"</span><span class=\"k\">;</span>","                            html <span class=\"k\">=</span> popup<span class=\"k\">.</span>formatHtml<span class=\"k\">(</span>","                                <span class=\"s\">'&lt;nobr&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"property\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">': &lt;span onclick=$$._onImgEditButtonClick(\"anchorDialog\") class=\"edui-clickable\"&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"modify\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/span&gt;&amp;nbsp;&amp;nbsp;'</span> <span class=\"k\">+</span>","                                    <span class=\"s\">'&lt;span onclick=$$._onRemoveButtonClick(</span><span class=\"t\">\\'</span><span class=\"s\">anchor</span><span class=\"t\">\\'</span><span class=\"s\">) class=\"edui-clickable\"&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"delete\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/span&gt;&lt;/nobr&gt;'</span><span class=\"k\">);</span>","                        <span class=\"k\">}</span>","                        <span class=\"k\">if</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=\"c\">//todo &#25918;&#21040;dialog&#21435;&#20570;&#26597;&#35810;</span>","                            editor<span class=\"k\">.</span>word_img <span class=\"k\">=</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>","                            dialogName <span class=\"k\">=</span> <span class=\"s\">\"wordimageDialog\"</span>","                        <span class=\"k\">}</span>","                        <span class=\"k\">if</span> <span class=\"k\">(!</span>dialogs<span class=\"k\">[</span>dialogName<span class=\"k\">])</span> <span class=\"k\">{</span>","                            <span class=\"k\">return</span><span class=\"k\">;</span>","                        <span class=\"k\">}</span>","                        str <span class=\"k\">=</span> <span class=\"s\">'&lt;nobr&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"property\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">': '</span><span class=\"k\">+</span>","                            <span class=\"s\">'&lt;span onclick=$$._onImgSetFloat(\"none\") class=\"edui-clickable\"&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"default\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/span&gt;&amp;nbsp;&amp;nbsp;'</span> <span class=\"k\">+</span>","                            <span class=\"s\">'&lt;span onclick=$$._onImgSetFloat(\"left\") class=\"edui-clickable\"&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"justifyleft\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/span&gt;&amp;nbsp;&amp;nbsp;'</span> <span class=\"k\">+</span>","                            <span class=\"s\">'&lt;span onclick=$$._onImgSetFloat(\"right\") class=\"edui-clickable\"&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"justifyright\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/span&gt;&amp;nbsp;&amp;nbsp;'</span> <span class=\"k\">+</span>","                            <span class=\"s\">'&lt;span onclick=$$._onImgSetFloat(\"center\") class=\"edui-clickable\"&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"justifycenter\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/span&gt;&amp;nbsp;&amp;nbsp;'</span><span class=\"k\">+</span>","                            <span class=\"s\">'&lt;span onclick=\"$$._onImgEditButtonClick(</span><span class=\"t\">\\'</span><span class=\"s\">'</span> <span class=\"k\">+</span> dialogName <span class=\"k\">+</span> <span class=\"s\">'</span><span class=\"t\">\\'</span><span class=\"s\">);\" class=\"edui-clickable\"&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"modify\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/span&gt;&lt;/nobr&gt;'</span><span class=\"k\">;</span>","","                        <span class=\"k\">!</span>html <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>html <span class=\"k\">=</span> popup<span class=\"k\">.</span>formatHtml<span class=\"k\">(</span>str<span class=\"k\">))</span>","","                    <span class=\"k\">}</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>_dialogs<span class=\"k\">.</span>linkDialog<span class=\"k\">)</span> <span class=\"k\">{</span>","                        <span class=\"k\">var</span> link <span class=\"k\">=</span> editor<span class=\"k\">.</span>queryCommandValue<span class=\"k\">(</span><span class=\"s\">'link'</span><span class=\"k\">);</span>","                        <span class=\"k\">var</span> url<span class=\"k\">;</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>link <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>url <span class=\"k\">=</span> <span class=\"k\">(</span>link<span class=\"k\">.</span>getAttribute<span class=\"k\">(</span><span class=\"s\">'_href'</span><span class=\"k\">)</span> <span class=\"k\">||</span> link<span class=\"k\">.</span>getAttribute<span class=\"k\">(</span><span class=\"s\">'href'</span><span class=\"k\">,</span> <span class=\"s\">2</span><span class=\"k\">))))</span> <span class=\"k\">{</span>","                            <span class=\"k\">var</span> txt <span class=\"k\">=</span> url<span class=\"k\">;</span>","                            <span class=\"k\">if</span> <span class=\"k\">(</span>url<span class=\"k\">.</span>length <span class=\"k\">&gt;</span> <span class=\"s\">30</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                                txt <span class=\"k\">=</span> url<span class=\"k\">.</span>substring<span class=\"k\">(</span><span class=\"s\">0</span><span class=\"k\">,</span> <span class=\"s\">20</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">\"...\"</span><span class=\"k\">;</span>","                            <span class=\"k\">}</span>","                            <span class=\"k\">if</span> <span class=\"k\">(</span>html<span class=\"k\">)</span> <span class=\"k\">{</span>","                                html <span class=\"k\">+=</span> <span class=\"s\">'&lt;div style=\"height:5px;\"&gt;&lt;/div&gt;'</span>","                            <span class=\"k\">}</span>","                            html <span class=\"k\">+=</span> popup<span class=\"k\">.</span>formatHtml<span class=\"k\">(</span>","                                <span class=\"s\">'&lt;nobr&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"anthorMsg\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">': &lt;a target=\"_blank\" href=\"'</span> <span class=\"k\">+</span> url <span class=\"k\">+</span> <span class=\"s\">'\" title=\"'</span> <span class=\"k\">+</span> url <span class=\"k\">+</span> <span class=\"s\">'\" &gt;'</span> <span class=\"k\">+</span> txt <span class=\"k\">+</span> <span class=\"s\">'&lt;/a&gt;'</span> <span class=\"k\">+</span>","                                    <span class=\"s\">' &lt;span class=\"edui-clickable\" onclick=\"$$._onEditButtonClick();\"&gt;'</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"modify\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/span&gt;'</span> <span class=\"k\">+</span>","                                    <span class=\"s\">' &lt;span class=\"edui-clickable\" onclick=\"$$._onRemoveButtonClick(</span><span class=\"t\">\\'</span><span class=\"s\">unlink</span><span class=\"t\">\\'</span><span class=\"s\">);\"&gt; '</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"clear\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/span&gt;&lt;/nobr&gt;'</span><span class=\"k\">);</span>","                            popup<span class=\"k\">.</span>showAnchor<span class=\"k\">(</span>link<span class=\"k\">);</span>","                        <span class=\"k\">}</span>","                    <span class=\"k\">}</span>","","                    <span class=\"k\">if</span> <span class=\"k\">(</span>html<span class=\"k\">)</span> <span class=\"k\">{</span>","                        popup<span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'content'</span><span class=\"k\">).</span>innerHTML <span class=\"k\">=</span> html<span class=\"k\">;</span>","                        popup<span class=\"k\">.</span>anchorEl <span class=\"k\">=</span> img <span class=\"k\">||</span> link<span class=\"k\">;</span>","                        popup<span class=\"k\">.</span>showAnchor<span class=\"k\">(</span>popup<span class=\"k\">.</span>anchorEl<span class=\"k\">);</span>","                    <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                        popup<span class=\"k\">.</span>hide<span class=\"k\">();</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>","        _initToolbars<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> editor <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">;</span>","            <span class=\"k\">var</span> toolbars <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>toolbars <span class=\"k\">||</span> <span class=\"k\">[];</span>","            <span class=\"k\">var</span> toolbarUis <span class=\"k\">=</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> i <span class=\"k\">&lt;</span> toolbars<span class=\"k\">.</span>length<span class=\"k\">;</span> i<span class=\"k\">++)</span> <span class=\"k\">{</span>","                <span class=\"k\">var</span> toolbar <span class=\"k\">=</span> toolbars<span class=\"k\">[</span>i<span class=\"k\">];</span>","                <span class=\"k\">var</span> toolbarUi <span class=\"k\">=</span> <span class=\"k\">new</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>Toolbar<span class=\"k\">(</span><span class=\"k\">{</span>theme<span class=\"k\">:</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>theme<span class=\"k\">}</span><span class=\"k\">);</span>","                <span class=\"k\">for</span> <span class=\"k\">(</span><span class=\"k\">var</span> j <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">;</span> j <span class=\"k\">&lt;</span> toolbar<span class=\"k\">.</span>length<span class=\"k\">;</span> j<span class=\"k\">++)</span> <span class=\"k\">{</span>","                    <span class=\"k\">var</span> toolbarItem <span class=\"k\">=</span> toolbar<span class=\"k\">[</span>j<span class=\"k\">];</span>","                    <span class=\"k\">var</span> toolbarItemUi <span class=\"k\">=</span> <span class=\"k\">null</span><span class=\"k\">;</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span><span class=\"k\">typeof</span> toolbarItem <span class=\"k\">==</span> <span class=\"s\">'string'</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                        toolbarItem <span class=\"k\">=</span> toolbarItem<span class=\"k\">.</span>toLowerCase<span class=\"k\">();</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>toolbarItem <span class=\"k\">==</span> <span class=\"s\">'|'</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                            toolbarItem <span class=\"k\">=</span> <span class=\"s\">'Separator'</span><span class=\"k\">;</span>","                        <span class=\"k\">}</span>","                        <span class=\"k\">if</span><span class=\"k\">(</span>toolbarItem <span class=\"k\">==</span> <span class=\"s\">'||'</span><span class=\"k\">)</span><span class=\"k\">{</span>","                            toolbarItem <span class=\"k\">=</span> <span class=\"s\">'Breakline'</span><span class=\"k\">;</span>","                        <span class=\"k\">}</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">[</span>toolbarItem<span class=\"k\">])</span> <span class=\"k\">{</span>","                            toolbarItemUi <span class=\"k\">=</span> <span class=\"k\">new</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">[</span>toolbarItem<span class=\"k\">](</span>editor<span class=\"k\">);</span>","                        <span class=\"k\">}</span>","","                        <span class=\"c\">//fullscreen&#36825;&#37324;&#21333;&#29420;&#22788;&#29702;&#19968;&#19979;&#65292;&#25918;&#21040;&#39318;&#34892;&#21435;</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>toolbarItem <span class=\"k\">==</span> <span class=\"s\">'fullscreen'</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                            <span class=\"k\">if</span> <span class=\"k\">(</span>toolbarUis <span class=\"k\">&amp;&amp;</span> toolbarUis<span class=\"k\">[</span><span class=\"s\">0</span><span class=\"k\">])</span> <span class=\"k\">{</span>","                                toolbarUis<span class=\"k\">[</span><span class=\"s\">0</span><span class=\"k\">].</span>items<span class=\"k\">.</span>splice<span class=\"k\">(</span><span class=\"s\">0</span><span class=\"k\">,</span> <span class=\"s\">0</span><span class=\"k\">,</span> toolbarItemUi<span class=\"k\">);</span>","                            <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                                toolbarItemUi <span class=\"k\">&amp;&amp;</span> toolbarUi<span class=\"k\">.</span>items<span class=\"k\">.</span>splice<span class=\"k\">(</span><span class=\"s\">0</span><span class=\"k\">,</span> <span class=\"s\">0</span><span class=\"k\">,</span> toolbarItemUi<span class=\"k\">);</span>","                            <span class=\"k\">}</span>","","                            <span class=\"k\">continue</span><span class=\"k\">;</span>","","","                        <span class=\"k\">}</span>","                    <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                        toolbarItemUi <span class=\"k\">=</span> toolbarItem<span class=\"k\">;</span>","                    <span class=\"k\">}</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span>toolbarItemUi <span class=\"k\">&amp;&amp;</span> toolbarItemUi<span class=\"k\">.</span>id<span class=\"k\">)</span> <span class=\"k\">{</span>","","                        toolbarUi<span class=\"k\">.</span>add<span class=\"k\">(</span>toolbarItemUi<span class=\"k\">);</span>","                    <span class=\"k\">}</span>","                <span class=\"k\">}</span>","                toolbarUis<span class=\"k\">[</span>i<span class=\"k\">]</span> <span class=\"k\">=</span> toolbarUi<span class=\"k\">;</span>","            <span class=\"k\">}</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>toolbars <span class=\"k\">=</span> toolbarUis<span class=\"k\">;</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        getHtmlTpl<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">return</span> <span class=\"s\">'&lt;div id=\"##\" class=\"%%\"&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;div id=\"##_toolbarbox\" class=\"%%-toolbarbox\"&gt;'</span> <span class=\"k\">+</span>","                <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>toolbars<span class=\"k\">.</span>length <span class=\"k\">?</span>","                    <span class=\"s\">'&lt;div id=\"##_toolbarboxouter\" class=\"%%-toolbarboxouter\"&gt;&lt;div class=\"%%-toolbarboxinner\"&gt;'</span> <span class=\"k\">+</span>","                        <span class=\"k\">this</span><span class=\"k\">.</span>renderToolbarBoxHtml<span class=\"k\">()</span> <span class=\"k\">+</span>","                        <span class=\"s\">'&lt;/div&gt;&lt;/div&gt;'</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">)</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;div id=\"##_toolbarmsg\" class=\"%%-toolbarmsg\" style=\"display:none;\"&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;div id = \"##_upload_dialog\" class=\"%%-toolbarmsg-upload\" onclick=\"$$.showWordImageDialog();\"&gt;'</span> <span class=\"k\">+</span> <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"clickToUpload\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/div&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;div class=\"%%-toolbarmsg-close\" onclick=\"$$.hideToolbarMsg();\"&gt;x&lt;/div&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;div id=\"##_toolbarmsg_label\" class=\"%%-toolbarmsg-label\"&gt;&lt;/div&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;div style=\"height:0;overflow:hidden;clear:both;\"&gt;&lt;/div&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;/div&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;/div&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;div id=\"##_iframeholder\" class=\"%%-iframeholder\"&gt;&lt;/div&gt;'</span> <span class=\"k\">+</span>","                <span class=\"c\">//modify wdcount by matao</span>","                <span class=\"s\">'&lt;div id=\"##_bottombar\" class=\"%%-bottomContainer\"&gt;&lt;table&gt;&lt;tr&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;td id=\"##_elementpath\" class=\"%%-bottombar\"&gt;&lt;/td&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;td id=\"##_wordcount\" class=\"%%-wordcount\"&gt;&lt;/td&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;td id=\"##_scale\" class=\"%%-scale\"&gt;&lt;div class=\"%%-icon\"&gt;&lt;/div&gt;&lt;/td&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;div id=\"##_scalelayer\"&gt;&lt;/div&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;/div&gt;'</span><span class=\"k\">;</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        showWordImageDialog<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>execCommand<span class=\"k\">(</span><span class=\"s\">\"wordimage\"</span><span class=\"k\">,</span> <span class=\"s\">\"word_img\"</span><span class=\"k\">);</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>_dialogs<span class=\"k\">[</span><span class=\"s\">'wordimageDialog'</span><span class=\"k\">].</span>open<span class=\"k\">();</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        renderToolbarBoxHtml<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> buff <span class=\"k\">=</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> i <span class=\"k\">&lt;</span> <span class=\"k\">this</span><span class=\"k\">.</span>toolbars<span class=\"k\">.</span>length<span class=\"k\">;</span> i<span class=\"k\">++)</span> <span class=\"k\">{</span>","                buff<span class=\"k\">.</span>push<span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>toolbars<span class=\"k\">[</span>i<span class=\"k\">].</span>renderHtml<span class=\"k\">());</span>","            <span class=\"k\">}</span>","            <span class=\"k\">return</span> buff<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>","        setFullScreen<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">(</span>fullscreen<span class=\"k\">)</span> <span class=\"k\">{</span>","","            <span class=\"k\">var</span> editor <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">,</span>","                container <span class=\"k\">=</span> editor<span class=\"k\">.</span>container<span class=\"k\">.</span>parentNode<span class=\"k\">.</span>parentNode<span class=\"k\">;</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>_fullscreen <span class=\"k\">!=</span> fullscreen<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>_fullscreen <span class=\"k\">=</span> fullscreen<span class=\"k\">;</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>fireEvent<span class=\"k\">(</span><span class=\"s\">'beforefullscreenchange'</span><span class=\"k\">,</span> fullscreen<span class=\"k\">);</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>browser<span class=\"k\">.</span>gecko<span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">var</span> bk <span class=\"k\">=</span> editor<span class=\"k\">.</span>selection<span class=\"k\">.</span>getRange<span class=\"k\">().</span>createBookmark<span class=\"k\">();</span>","                <span class=\"k\">}</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>fullscreen<span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">while</span> <span class=\"k\">(</span>container<span class=\"k\">.</span>tagName <span class=\"k\">!=</span> <span class=\"s\">\"BODY\"</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                        <span class=\"k\">var</span> position <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>dom<span class=\"k\">.</span>domUtils<span class=\"k\">.</span>getComputedStyle<span class=\"k\">(</span>container<span class=\"k\">,</span> <span class=\"s\">\"position\"</span><span class=\"k\">);</span>","                        nodeStack<span class=\"k\">.</span>push<span class=\"k\">(</span>position<span class=\"k\">);</span>","                        container<span class=\"k\">.</span>style<span class=\"k\">.</span>position <span class=\"k\">=</span> <span class=\"s\">\"static\"</span><span class=\"k\">;</span>","                        container <span class=\"k\">=</span> container<span class=\"k\">.</span>parentNode<span class=\"k\">;</span>","                    <span class=\"k\">}</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>_bakHtmlOverflow <span class=\"k\">=</span> document<span class=\"k\">.</span>documentElement<span class=\"k\">.</span>style<span class=\"k\">.</span>overflow<span class=\"k\">;</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>_bakBodyOverflow <span class=\"k\">=</span> document<span class=\"k\">.</span>body<span class=\"k\">.</span>style<span class=\"k\">.</span>overflow<span class=\"k\">;</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>_bakAutoHeight <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>autoHeightEnabled<span class=\"k\">;</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>_bakScrollTop <span class=\"k\">=</span> Math<span class=\"k\">.</span>max<span class=\"k\">(</span>document<span class=\"k\">.</span>documentElement<span class=\"k\">.</span>scrollTop<span class=\"k\">,</span> document<span class=\"k\">.</span>body<span class=\"k\">.</span>scrollTop<span class=\"k\">);</span>","","                    <span class=\"k\">this</span><span class=\"k\">.</span>_bakEditorContaninerWidth <span class=\"k\">=</span> editor<span class=\"k\">.</span>iframe<span class=\"k\">.</span>parentNode<span class=\"k\">.</span>offsetWidth<span class=\"k\">;</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>_bakAutoHeight<span class=\"k\">)</span> <span class=\"k\">{</span>","                        <span class=\"c\">//&#24403;&#20840;&#23631;&#26102;&#19981;&#33021;&#25191;&#34892;&#33258;&#21160;&#38271;&#39640;</span>","                        editor<span class=\"k\">.</span>autoHeightEnabled <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">;</span>","                        <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>disableAutoHeight<span class=\"k\">();</span>","                    <span class=\"k\">}</span>","","                    document<span class=\"k\">.</span>documentElement<span class=\"k\">.</span>style<span class=\"k\">.</span>overflow <span class=\"k\">=</span> <span class=\"s\">'hidden'</span><span class=\"k\">;</span>","                    document<span class=\"k\">.</span>body<span class=\"k\">.</span>style<span class=\"k\">.</span>overflow <span class=\"k\">=</span> <span class=\"s\">'hidden'</span><span class=\"k\">;</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>_bakCssText <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">().</span>style<span class=\"k\">.</span>cssText<span class=\"k\">;</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>_bakCssText1 <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'iframeholder'</span><span class=\"k\">).</span>style<span class=\"k\">.</span>cssText<span class=\"k\">;</span>","                    editor<span class=\"k\">.</span>iframe<span class=\"k\">.</span>parentNode<span class=\"k\">.</span>style<span class=\"k\">.</span>width <span class=\"k\">=</span> <span class=\"s\">''</span><span class=\"k\">;</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>_updateFullScreen<span class=\"k\">();</span>","                <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                    <span class=\"k\">while</span> <span class=\"k\">(</span>container<span class=\"k\">.</span>tagName <span class=\"k\">!=</span> <span class=\"s\">\"BODY\"</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                        container<span class=\"k\">.</span>style<span class=\"k\">.</span>position <span class=\"k\">=</span> nodeStack<span class=\"k\">.</span>shift<span class=\"k\">();</span>","                        container <span class=\"k\">=</span> container<span class=\"k\">.</span>parentNode<span class=\"k\">;</span>","                    <span class=\"k\">}</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">().</span>style<span class=\"k\">.</span>cssText <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>_bakCssText<span class=\"k\">;</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'iframeholder'</span><span class=\"k\">).</span>style<span class=\"k\">.</span>cssText <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>_bakCssText1<span class=\"k\">;</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>_bakAutoHeight<span class=\"k\">)</span> <span class=\"k\">{</span>","                        editor<span class=\"k\">.</span>autoHeightEnabled <span class=\"k\">=</span> <span class=\"k\">true</span><span class=\"k\">;</span>","                        <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>enableAutoHeight<span class=\"k\">();</span>","                    <span class=\"k\">}</span>","","                    document<span class=\"k\">.</span>documentElement<span class=\"k\">.</span>style<span class=\"k\">.</span>overflow <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>_bakHtmlOverflow<span class=\"k\">;</span>","                    document<span class=\"k\">.</span>body<span class=\"k\">.</span>style<span class=\"k\">.</span>overflow <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>_bakBodyOverflow<span class=\"k\">;</span>","                    editor<span class=\"k\">.</span>iframe<span class=\"k\">.</span>parentNode<span class=\"k\">.</span>style<span class=\"k\">.</span>width <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>_bakEditorContaninerWidth <span class=\"k\">+</span> <span class=\"s\">'px'</span><span class=\"k\">;</span>","                    window<span class=\"k\">.</span>scrollTo<span class=\"k\">(</span><span class=\"s\">0</span><span class=\"k\">,</span> <span class=\"k\">this</span><span class=\"k\">.</span>_bakScrollTop<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> editor<span class=\"k\">.</span>body<span class=\"k\">.</span>contentEditable <span class=\"k\">===</span> <span class=\"s\">'true'</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">var</span> input <span class=\"k\">=</span> document<span class=\"k\">.</span>createElement<span class=\"k\">(</span><span class=\"s\">'input'</span><span class=\"k\">);</span>","                    document<span class=\"k\">.</span>body<span class=\"k\">.</span>appendChild<span class=\"k\">(</span>input<span class=\"k\">);</span>","                    editor<span class=\"k\">.</span>body<span class=\"k\">.</span>contentEditable <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">;</span>","                    setTimeout<span class=\"k\">(</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                        input<span class=\"k\">.</span>focus<span class=\"k\">();</span>","                        setTimeout<span class=\"k\">(</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                            editor<span class=\"k\">.</span>body<span class=\"k\">.</span>contentEditable <span class=\"k\">=</span> <span class=\"k\">true</span><span class=\"k\">;</span>","                            editor<span class=\"k\">.</span>fireEvent<span class=\"k\">(</span><span class=\"s\">'fullscreenchanged'</span><span class=\"k\">,</span> fullscreen<span class=\"k\">);</span>","                            editor<span class=\"k\">.</span>selection<span class=\"k\">.</span>getRange<span class=\"k\">().</span>moveToBookmark<span class=\"k\">(</span>bk<span class=\"k\">).</span>select<span class=\"k\">(</span><span class=\"k\">true</span><span class=\"k\">);</span>","                            baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>dom<span class=\"k\">.</span>domUtils<span class=\"k\">.</span>remove<span class=\"k\">(</span>input<span class=\"k\">);</span>","                            fullscreen <span class=\"k\">&amp;&amp;</span> window<span class=\"k\">.</span>scroll<span class=\"k\">(</span><span class=\"s\">0</span><span class=\"k\">,</span> <span class=\"s\">0</span><span class=\"k\">);</span>","                        <span class=\"k\">}</span><span class=\"k\">,</span> <span class=\"s\">0</span><span class=\"k\">)</span>","                    <span class=\"k\">}</span><span class=\"k\">,</span> <span class=\"s\">0</span><span class=\"k\">)</span>","                <span class=\"k\">}</span>","","                <span class=\"k\">if</span><span class=\"k\">(</span>editor<span class=\"k\">.</span>body<span class=\"k\">.</span>contentEditable <span class=\"k\">===</span> <span class=\"s\">'true'</span><span class=\"k\">)</span><span class=\"k\">{</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>fireEvent<span class=\"k\">(</span><span class=\"s\">'fullscreenchanged'</span><span class=\"k\">,</span> fullscreen<span class=\"k\">);</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>triggerLayout<span class=\"k\">();</span>","                <span class=\"k\">}</span>","","            <span class=\"k\">}</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        _updateFullScreen<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>_fullscreen<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">var</span> vpRect <span class=\"k\">=</span> uiUtils<span class=\"k\">.</span>getViewportRect<span class=\"k\">();</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">().</span>style<span class=\"k\">.</span>cssText <span class=\"k\">=</span> <span class=\"s\">'border:0;position:absolute;left:0;top:'</span> <span class=\"k\">+</span> <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>topOffset <span class=\"k\">||</span> <span class=\"s\">0</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'px;width:'</span> <span class=\"k\">+</span> vpRect<span class=\"k\">.</span>width <span class=\"k\">+</span> <span class=\"s\">'px;height:'</span> <span class=\"k\">+</span> vpRect<span class=\"k\">.</span>height <span class=\"k\">+</span> <span class=\"s\">'px;z-index:'</span> <span class=\"k\">+</span> <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">().</span>style<span class=\"k\">.</span>zIndex <span class=\"k\">*</span> <span class=\"s\">1</span> <span class=\"k\">+</span> <span class=\"s\">100</span><span class=\"k\">);</span>","                uiUtils<span class=\"k\">.</span>setViewportOffset<span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(),</span> <span class=\"k\">{</span> left<span class=\"k\">:</span><span class=\"s\">0</span><span class=\"k\">,</span> top<span class=\"k\">:</span><span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>topOffset <span class=\"k\">||</span> <span class=\"s\">0</span> <span class=\"k\">}</span><span class=\"k\">);</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>setHeight<span class=\"k\">(</span>vpRect<span class=\"k\">.</span>height <span class=\"k\">-</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'toolbarbox'</span><span class=\"k\">).</span>offsetHeight <span class=\"k\">-</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'bottombar'</span><span class=\"k\">).</span>offsetHeight <span class=\"k\">-</span> <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>topOffset <span class=\"k\">||</span> <span class=\"s\">0</span><span class=\"k\">));</span>","                <span class=\"c\">//&#19981;&#25163;&#21160;&#35843;&#19968;&#19979;&#65292;&#20250;&#23548;&#33268;&#20840;&#23631;&#22833;&#25928;</span>","                <span class=\"k\">if</span><span class=\"k\">(</span>browser<span class=\"k\">.</span>gecko<span class=\"k\">)</span><span class=\"k\">{</span>","                    <span class=\"k\">try</span><span class=\"k\">{</span>","                        window<span class=\"k\">.</span>onresize<span class=\"k\">();</span>","                    <span class=\"k\">}</span><span class=\"k\">catch</span><span class=\"k\">(</span>e<span class=\"k\">)</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>","        _updateElementPath<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> bottom <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'elementpath'</span><span class=\"k\">),</span> list<span class=\"k\">;</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>elementPathEnabled <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>list <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>queryCommandValue<span class=\"k\">(</span><span class=\"s\">'elementpath'</span><span class=\"k\">)))</span> <span class=\"k\">{</span>","","                <span class=\"k\">var</span> buff <span class=\"k\">=</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> ci <span class=\"k\">=</span> list<span class=\"k\">[</span>i<span class=\"k\">];</span> i<span class=\"k\">++)</span> <span class=\"k\">{</span>","                    buff<span class=\"k\">[</span>i<span class=\"k\">]</span> <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>formatHtml<span class=\"k\">(</span><span class=\"s\">'&lt;span unselectable=\"on\" onclick=\"$$.editor.execCommand(&amp;quot;elementpath&amp;quot;, &amp;quot;'</span> <span class=\"k\">+</span> i <span class=\"k\">+</span> <span class=\"s\">'&amp;quot;);\"&gt;'</span> <span class=\"k\">+</span> ci <span class=\"k\">+</span> <span class=\"s\">'&lt;/span&gt;'</span><span class=\"k\">);</span>","                <span class=\"k\">}</span>","                bottom<span class=\"k\">.</span>innerHTML <span class=\"k\">=</span> <span class=\"s\">'&lt;div class=\"edui-editor-breadcrumb\" onmousedown=\"return false;\"&gt;'</span> <span class=\"k\">+</span> <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">\"elementPathTip\"</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">': '</span> <span class=\"k\">+</span> buff<span class=\"k\">.</span>join<span class=\"k\">(</span><span class=\"s\">' &amp;gt; '</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'&lt;/div&gt;'</span><span class=\"k\">;</span>","","            <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                bottom<span class=\"k\">.</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">'none'</span>","            <span class=\"k\">}</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        disableElementPath<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> bottom <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'elementpath'</span><span class=\"k\">);</span>","            bottom<span class=\"k\">.</span>innerHTML <span class=\"k\">=</span> <span class=\"s\">''</span><span class=\"k\">;</span>","            bottom<span class=\"k\">.</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">'none'</span><span class=\"k\">;</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>elementPathEnabled <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">;</span>","","        <span class=\"k\">}</span><span class=\"k\">,</span>","        enableElementPath<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> bottom <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'elementpath'</span><span class=\"k\">);</span>","            bottom<span class=\"k\">.</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">''</span><span class=\"k\">;</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>elementPathEnabled <span class=\"k\">=</span> <span class=\"k\">true</span><span class=\"k\">;</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>_updateElementPath<span class=\"k\">();</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        _scale<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> doc <span class=\"k\">=</span> document<span class=\"k\">,</span>","                editor <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">,</span>","                editorHolder <span class=\"k\">=</span> editor<span class=\"k\">.</span>container<span class=\"k\">,</span>","                editorDocument <span class=\"k\">=</span> editor<span class=\"k\">.</span>document<span class=\"k\">,</span>","                toolbarBox <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">\"toolbarbox\"</span><span class=\"k\">),</span>","                bottombar <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">\"bottombar\"</span><span class=\"k\">),</span>","                scale <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">\"scale\"</span><span class=\"k\">),</span>","                scalelayer <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">\"scalelayer\"</span><span class=\"k\">);</span>","","            <span class=\"k\">var</span> isMouseMove <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">,</span>","                position <span class=\"k\">=</span> <span class=\"k\">null</span><span class=\"k\">,</span>","                minEditorHeight <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">,</span>","                minEditorWidth <span class=\"k\">=</span> editor<span class=\"k\">.</span>options<span class=\"k\">.</span>minFrameWidth<span class=\"k\">,</span>","                pageX <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">,</span>","                pageY <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">,</span>","                scaleWidth <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">,</span>","                scaleHeight <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">;</span>","","            <span class=\"k\">function</span> down<span class=\"k\">()</span> <span class=\"k\">{</span>","                position <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>getXY<span class=\"k\">(</span>editorHolder<span class=\"k\">);</span>","","                <span class=\"k\">if</span> <span class=\"k\">(!</span>minEditorHeight<span class=\"k\">)</span> <span class=\"k\">{</span>","                    minEditorHeight <span class=\"k\">=</span> editor<span class=\"k\">.</span>options<span class=\"k\">.</span>minFrameHeight <span class=\"k\">+</span> toolbarBox<span class=\"k\">.</span>offsetHeight <span class=\"k\">+</span> bottombar<span class=\"k\">.</span>offsetHeight<span class=\"k\">;</span>","                <span class=\"k\">}</span>","","                scalelayer<span class=\"k\">.</span>style<span class=\"k\">.</span>cssText <span class=\"k\">=</span> <span class=\"s\">\"position:absolute;left:0;display:;top:0;background-color:#41ABFF;opacity:0.4;filter: Alpha(opacity=40);width:\"</span> <span class=\"k\">+</span> editorHolder<span class=\"k\">.</span>offsetWidth <span class=\"k\">+</span> <span class=\"s\">\"px;height:\"</span>","                    <span class=\"k\">+</span> editorHolder<span class=\"k\">.</span>offsetHeight <span class=\"k\">+</span> <span class=\"s\">\"px;z-index:\"</span> <span class=\"k\">+</span> <span class=\"k\">(</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>zIndex <span class=\"k\">+</span> <span class=\"s\">1</span><span class=\"k\">);</span>","","                domUtils<span class=\"k\">.</span>on<span class=\"k\">(</span>doc<span class=\"k\">,</span> <span class=\"s\">\"mousemove\"</span><span class=\"k\">,</span> move<span class=\"k\">);</span>","                domUtils<span class=\"k\">.</span>on<span class=\"k\">(</span>editorDocument<span class=\"k\">,</span> <span class=\"s\">\"mouseup\"</span><span class=\"k\">,</span> up<span class=\"k\">);</span>","                domUtils<span class=\"k\">.</span>on<span class=\"k\">(</span>doc<span class=\"k\">,</span> <span class=\"s\">\"mouseup\"</span><span class=\"k\">,</span> up<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>","            <span class=\"c\">//by xuheng &#20840;&#23631;&#26102;&#20851;&#25481;&#32553;&#25918;</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">'fullscreenchanged'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>e<span class=\"k\">,</span> fullScreen<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>fullScreen<span class=\"k\">)</span> <span class=\"k\">{</span>","                    me<span class=\"k\">.</span>disableScale<span class=\"k\">();</span>","","                <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span>me<span class=\"k\">.</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>scaleEnabled<span class=\"k\">)</span> <span class=\"k\">{</span>","                        me<span class=\"k\">.</span>enableScale<span class=\"k\">();</span>","                        <span class=\"k\">var</span> tmpNode <span class=\"k\">=</span> me<span class=\"k\">.</span>editor<span class=\"k\">.</span>document<span class=\"k\">.</span>createElement<span class=\"k\">(</span><span class=\"s\">'span'</span><span class=\"k\">);</span>","                        me<span class=\"k\">.</span>editor<span class=\"k\">.</span>body<span class=\"k\">.</span>appendChild<span class=\"k\">(</span>tmpNode<span class=\"k\">);</span>","                        me<span class=\"k\">.</span>editor<span class=\"k\">.</span>body<span class=\"k\">.</span>style<span class=\"k\">.</span>height <span class=\"k\">=</span> Math<span class=\"k\">.</span>max<span class=\"k\">(</span>domUtils<span class=\"k\">.</span>getXY<span class=\"k\">(</span>tmpNode<span class=\"k\">).</span>y<span class=\"k\">,</span> me<span class=\"k\">.</span>editor<span class=\"k\">.</span>iframe<span class=\"k\">.</span>offsetHeight <span class=\"k\">-</span> <span class=\"s\">20</span><span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'px'</span><span class=\"k\">;</span>","                        domUtils<span class=\"k\">.</span>remove<span class=\"k\">(</span>tmpNode<span class=\"k\">)</span>","                    <span class=\"k\">}</span>","                <span class=\"k\">}</span>","            <span class=\"k\">}</span><span class=\"k\">);</span>","            <span class=\"k\">function</span> move<span class=\"k\">(</span>event<span class=\"k\">)</span> <span class=\"k\">{</span>","                clearSelection<span class=\"k\">();</span>","                <span class=\"k\">var</span> e <span class=\"k\">=</span> event <span class=\"k\">||</span> window<span class=\"k\">.</span>event<span class=\"k\">;</span>","                pageX <span class=\"k\">=</span> e<span class=\"k\">.</span>pageX <span class=\"k\">||</span> <span class=\"k\">(</span>doc<span class=\"k\">.</span>documentElement<span class=\"k\">.</span>scrollLeft <span class=\"k\">+</span> e<span class=\"k\">.</span>clientX<span class=\"k\">);</span>","                pageY <span class=\"k\">=</span> e<span class=\"k\">.</span>pageY <span class=\"k\">||</span> <span class=\"k\">(</span>doc<span class=\"k\">.</span>documentElement<span class=\"k\">.</span>scrollTop <span class=\"k\">+</span> e<span class=\"k\">.</span>clientY<span class=\"k\">);</span>","                scaleWidth <span class=\"k\">=</span> pageX <span class=\"k\">-</span> position<span class=\"k\">.</span>x<span class=\"k\">;</span>","                scaleHeight <span class=\"k\">=</span> pageY <span class=\"k\">-</span> position<span class=\"k\">.</span>y<span class=\"k\">;</span>","","                <span class=\"k\">if</span> <span class=\"k\">(</span>scaleWidth <span class=\"k\">&gt;=</span> minEditorWidth<span class=\"k\">)</span> <span class=\"k\">{</span>","                    isMouseMove <span class=\"k\">=</span> <span class=\"k\">true</span><span class=\"k\">;</span>","                    scalelayer<span class=\"k\">.</span>style<span class=\"k\">.</span>width <span class=\"k\">=</span> scaleWidth <span class=\"k\">+</span> <span class=\"s\">'px'</span><span class=\"k\">;</span>","                <span class=\"k\">}</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>scaleHeight <span class=\"k\">&gt;=</span> minEditorHeight<span class=\"k\">)</span> <span class=\"k\">{</span>","                    isMouseMove <span class=\"k\">=</span> <span class=\"k\">true</span><span class=\"k\">;</span>","                    scalelayer<span class=\"k\">.</span>style<span class=\"k\">.</span>height <span class=\"k\">=</span> scaleHeight <span class=\"k\">+</span> <span class=\"s\">\"px\"</span><span class=\"k\">;</span>","                <span class=\"k\">}</span>","            <span class=\"k\">}</span>","","            <span class=\"k\">function</span> up<span class=\"k\">()</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>isMouseMove<span class=\"k\">)</span> <span class=\"k\">{</span>","                    isMouseMove <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">;</span>","                    editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>_actualFrameWidth <span class=\"k\">=</span> scalelayer<span class=\"k\">.</span>offsetWidth <span class=\"k\">-</span> <span class=\"s\">2</span><span class=\"k\">;</span>","                    editorHolder<span class=\"k\">.</span>style<span class=\"k\">.</span>width <span class=\"k\">=</span> editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>_actualFrameWidth <span class=\"k\">+</span> <span class=\"s\">'px'</span><span class=\"k\">;</span>","","                    editor<span class=\"k\">.</span>setHeight<span class=\"k\">(</span>scalelayer<span class=\"k\">.</span>offsetHeight <span class=\"k\">-</span> bottombar<span class=\"k\">.</span>offsetHeight <span class=\"k\">-</span> toolbarBox<span class=\"k\">.</span>offsetHeight <span class=\"k\">-</span> <span class=\"s\">2</span><span class=\"k\">);</span>","                <span class=\"k\">}</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>scalelayer<span class=\"k\">)</span> <span class=\"k\">{</span>","                    scalelayer<span class=\"k\">.</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">\"none\"</span><span class=\"k\">;</span>","                <span class=\"k\">}</span>","                clearSelection<span class=\"k\">();</span>","                domUtils<span class=\"k\">.</span>un<span class=\"k\">(</span>doc<span class=\"k\">,</span> <span class=\"s\">\"mousemove\"</span><span class=\"k\">,</span> move<span class=\"k\">);</span>","                domUtils<span class=\"k\">.</span>un<span class=\"k\">(</span>editorDocument<span class=\"k\">,</span> <span class=\"s\">\"mouseup\"</span><span class=\"k\">,</span> up<span class=\"k\">);</span>","                domUtils<span class=\"k\">.</span>un<span class=\"k\">(</span>doc<span class=\"k\">,</span> <span class=\"s\">\"mouseup\"</span><span class=\"k\">,</span> up<span class=\"k\">);</span>","            <span class=\"k\">}</span>","","            <span class=\"k\">function</span> clearSelection<span class=\"k\">()</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>browser<span class=\"k\">.</span>ie<span class=\"k\">)</span>","                    doc<span class=\"k\">.</span>selection<span class=\"k\">.</span>clear<span class=\"k\">();</span>","                <span class=\"k\">else</span>","                    window<span class=\"k\">.</span>getSelection<span class=\"k\">().</span>removeAllRanges<span class=\"k\">();</span>","            <span class=\"k\">}</span>","","            <span class=\"k\">this</span><span class=\"k\">.</span>enableScale <span class=\"k\">=</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                <span class=\"c\">//trace:2868</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>editor<span class=\"k\">.</span>queryCommandState<span class=\"k\">(</span><span class=\"s\">\"source\"</span><span class=\"k\">)</span> <span class=\"k\">==</span> <span class=\"s\">1</span><span class=\"k\">)</span>    <span class=\"k\">return</span><span class=\"k\">;</span>","                scale<span class=\"k\">.</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">\"\"</span><span class=\"k\">;</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>scaleEnabled <span class=\"k\">=</span> <span class=\"k\">true</span><span class=\"k\">;</span>","                domUtils<span class=\"k\">.</span>on<span class=\"k\">(</span>scale<span class=\"k\">,</span> <span class=\"s\">\"mousedown\"</span><span class=\"k\">,</span> down<span class=\"k\">);</span>","            <span class=\"k\">}</span><span class=\"k\">;</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>disableScale <span class=\"k\">=</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                scale<span class=\"k\">.</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">\"none\"</span><span class=\"k\">;</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>scaleEnabled <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">;</span>","                domUtils<span class=\"k\">.</span>un<span class=\"k\">(</span>scale<span class=\"k\">,</span> <span class=\"s\">\"mousedown\"</span><span class=\"k\">,</span> down<span class=\"k\">);</span>","            <span class=\"k\">}</span><span class=\"k\">;</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        isFullScreen<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">return</span> <span class=\"k\">this</span><span class=\"k\">.</span>_fullscreen<span class=\"k\">;</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        postRender<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            UIBase<span class=\"k\">.</span>prototype<span class=\"k\">.</span>postRender<span class=\"k\">.</span>call<span class=\"k\">(</span><span class=\"k\">this</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> i <span class=\"k\">&lt;</span> <span class=\"k\">this</span><span class=\"k\">.</span>toolbars<span class=\"k\">.</span>length<span class=\"k\">;</span> i<span class=\"k\">++)</span> <span class=\"k\">{</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>toolbars<span class=\"k\">[</span>i<span class=\"k\">].</span>postRender<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>","            <span class=\"k\">var</span> timerId<span class=\"k\">,</span>","                domUtils <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>dom<span class=\"k\">.</span>domUtils<span class=\"k\">,</span>","                updateFullScreenTime <span class=\"k\">=</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                    clearTimeout<span class=\"k\">(</span>timerId<span class=\"k\">);</span>","                    timerId <span class=\"k\">=</span> setTimeout<span class=\"k\">(</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                        me<span class=\"k\">.</span>_updateFullScreen<span class=\"k\">();</span>","                    <span class=\"k\">}</span><span class=\"k\">);</span>","                <span class=\"k\">}</span><span class=\"k\">;</span>","            domUtils<span class=\"k\">.</span>on<span class=\"k\">(</span>window<span class=\"k\">,</span> <span class=\"s\">'resize'</span><span class=\"k\">,</span> updateFullScreenTime<span class=\"k\">);</span>","","            me<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">'destroy'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                domUtils<span class=\"k\">.</span>un<span class=\"k\">(</span>window<span class=\"k\">,</span> <span class=\"s\">'resize'</span><span class=\"k\">,</span> updateFullScreenTime<span class=\"k\">);</span>","                clearTimeout<span class=\"k\">(</span>timerId<span class=\"k\">);</span>","            <span class=\"k\">}</span><span class=\"k\">)</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        showToolbarMsg<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">(</span>msg<span class=\"k\">,</span> flag<span class=\"k\">)</span> <span class=\"k\">{</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'toolbarmsg_label'</span><span class=\"k\">).</span>innerHTML <span class=\"k\">=</span> msg<span class=\"k\">;</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'toolbarmsg'</span><span class=\"k\">).</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">''</span><span class=\"k\">;</span>","            <span class=\"c\">//</span>","            <span class=\"k\">if</span> <span class=\"k\">(!</span>flag<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">var</span> w <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'upload_dialog'</span><span class=\"k\">);</span>","                w<span class=\"k\">.</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">'none'</span><span class=\"k\">;</span>","            <span class=\"k\">}</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        hideToolbarMsg<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'toolbarmsg'</span><span class=\"k\">).</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">'none'</span><span class=\"k\">;</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        mapUrl<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">(</span>url<span class=\"k\">)</span> <span class=\"k\">{</span>","            <span class=\"k\">return</span> url <span class=\"k\">?</span> url<span class=\"k\">.</span>replace<span class=\"k\">(</span><span class=\"s\">'~/'</span><span class=\"k\">,</span> <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>UEDITOR_HOME_URL <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>","        triggerLayout<span class=\"k\">:</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> dom <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">();</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span>dom<span class=\"k\">.</span>style<span class=\"k\">.</span>zoom <span class=\"k\">==</span> <span class=\"s\">'1'</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                dom<span class=\"k\">.</span>style<span class=\"k\">.</span>zoom <span class=\"k\">=</span> <span class=\"s\">'100%'</span><span class=\"k\">;</span>","            <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                dom<span class=\"k\">.</span>style<span class=\"k\">.</span>zoom <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=\"k\">;</span>","    utils<span class=\"k\">.</span>inherits<span class=\"k\">(</span>EditorUI<span class=\"k\">,</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>UIBase<span class=\"k\">);</span>","","","    <span class=\"k\">var</span> instances <span class=\"k\">=</span> <span class=\"k\">{}</span><span class=\"k\">;</span>","","","    UE<span class=\"k\">.</span>ui<span class=\"k\">.</span>Editor <span class=\"k\">=</span> <span class=\"k\">function</span> <span class=\"k\">(</span>options<span class=\"k\">)</span> <span class=\"k\">{</span>","        <span class=\"k\">var</span> editor <span class=\"k\">=</span> <span class=\"k\">new</span> UE<span class=\"k\">.</span>Editor<span class=\"k\">(</span>options<span class=\"k\">);</span>","        editor<span class=\"k\">.</span>options<span class=\"k\">.</span>editor <span class=\"k\">=</span> editor<span class=\"k\">;</span>","        utils<span class=\"k\">.</span>loadFile<span class=\"k\">(</span>document<span class=\"k\">,</span> <span class=\"k\">{</span>","            href<span class=\"k\">:</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>themePath <span class=\"k\">+</span> editor<span class=\"k\">.</span>options<span class=\"k\">.</span>theme <span class=\"k\">+</span> <span class=\"s\">\"/_css/ueditor.css\"</span><span class=\"k\">,</span>","            tag<span class=\"k\">:</span><span class=\"s\">\"link\"</span><span class=\"k\">,</span>","            type<span class=\"k\">:</span><span class=\"s\">\"text/css\"</span><span class=\"k\">,</span>","            rel<span class=\"k\">:</span><span class=\"s\">\"stylesheet\"</span>","        <span class=\"k\">}</span><span class=\"k\">);</span>","","        <span class=\"k\">var</span> oldRender <span class=\"k\">=</span> editor<span class=\"k\">.</span>render<span class=\"k\">;</span>","        editor<span class=\"k\">.</span>render <span class=\"k\">=</span> <span class=\"k\">function</span> <span class=\"k\">(</span>holder<span class=\"k\">)</span> <span class=\"k\">{</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span>holder<span class=\"k\">.</span>constructor <span class=\"k\">===</span> String<span class=\"k\">)</span> <span class=\"k\">{</span>","                editor<span class=\"k\">.</span>key <span class=\"k\">=</span> holder<span class=\"k\">;</span>","                instances<span class=\"k\">[</span>holder<span class=\"k\">]</span> <span class=\"k\">=</span> editor<span class=\"k\">;</span>","            <span class=\"k\">}</span>","            utils<span class=\"k\">.</span>domReady<span class=\"k\">(</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                editor<span class=\"k\">.</span>langIsReady <span class=\"k\">?</span> renderUI<span class=\"k\">()</span> <span class=\"k\">:</span> editor<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">\"langReady\"</span><span class=\"k\">,</span> renderUI<span class=\"k\">);</span>","                <span class=\"k\">function</span> renderUI<span class=\"k\">()</span> <span class=\"k\">{</span>","                    editor<span class=\"k\">.</span>setOpt<span class=\"k\">(</span><span class=\"k\">{</span>","                        labelMap<span class=\"k\">:</span>editor<span class=\"k\">.</span>options<span class=\"k\">.</span>labelMap <span class=\"k\">||</span> editor<span class=\"k\">.</span>getLang<span class=\"k\">(</span><span class=\"s\">'labelMap'</span><span class=\"k\">)</span>","                    <span class=\"k\">}</span><span class=\"k\">);</span>","                    <span class=\"k\">new</span> EditorUI<span class=\"k\">(</span>editor<span class=\"k\">.</span>options<span class=\"k\">);</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span>holder<span class=\"k\">)</span> <span class=\"k\">{</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>holder<span class=\"k\">.</span>constructor <span class=\"k\">===</span> String<span class=\"k\">)</span> <span class=\"k\">{</span>","                            holder <span class=\"k\">=</span> document<span class=\"k\">.</span>getElementById<span class=\"k\">(</span>holder<span class=\"k\">);</span>","                        <span class=\"k\">}</span>","                        holder <span class=\"k\">&amp;&amp;</span> holder<span class=\"k\">.</span>getAttribute<span class=\"k\">(</span><span class=\"s\">'name'</span><span class=\"k\">)</span> <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span> editor<span class=\"k\">.</span>options<span class=\"k\">.</span>textarea <span class=\"k\">=</span> holder<span class=\"k\">.</span>getAttribute<span class=\"k\">(</span><span class=\"s\">'name'</span><span class=\"k\">));</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>holder <span class=\"k\">&amp;&amp;</span> <span class=\"s\">/script|textarea/ig</span><span class=\"k\">.</span>test<span class=\"k\">(</span>holder<span class=\"k\">.</span>tagName<span class=\"k\">))</span> <span class=\"k\">{</span>","                            <span class=\"k\">var</span> newDiv <span class=\"k\">=</span> document<span class=\"k\">.</span>createElement<span class=\"k\">(</span><span class=\"s\">'div'</span><span class=\"k\">);</span>","                            holder<span class=\"k\">.</span>parentNode<span class=\"k\">.</span>insertBefore<span class=\"k\">(</span>newDiv<span class=\"k\">,</span> holder<span class=\"k\">);</span>","                            <span class=\"k\">var</span> cont <span class=\"k\">=</span> holder<span class=\"k\">.</span>value <span class=\"k\">||</span> holder<span class=\"k\">.</span>innerHTML<span class=\"k\">;</span>","                            editor<span class=\"k\">.</span>options<span class=\"k\">.</span>initialContent <span class=\"k\">=</span> <span class=\"s\">/^[\\t\\r\\n ]*$/</span><span class=\"k\">.</span>test<span class=\"k\">(</span>cont<span class=\"k\">)</span> <span class=\"k\">?</span> editor<span class=\"k\">.</span>options<span class=\"k\">.</span>initialContent <span class=\"k\">:</span>","                                cont<span class=\"k\">.</span>replace<span class=\"k\">(</span><span class=\"s\">/&gt;[\\n\\r\\t]+([ ]{4})+/g</span><span class=\"k\">,</span> <span class=\"s\">'&gt;'</span><span class=\"k\">)</span>","                                    <span class=\"k\">.</span>replace<span class=\"k\">(</span><span class=\"s\">/[\\n\\r\\t]+([ ]{4})+&lt;/g</span><span class=\"k\">,</span> <span class=\"s\">'&lt;'</span><span class=\"k\">)</span>","                                    <span class=\"k\">.</span>replace<span class=\"k\">(</span><span class=\"s\">/&gt;[\\n\\r\\t]+&lt;/g</span><span class=\"k\">,</span> <span class=\"s\">'&gt;&lt;'</span><span class=\"k\">);</span>","                            holder<span class=\"k\">.</span>className <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>newDiv<span class=\"k\">.</span>className <span class=\"k\">=</span> holder<span class=\"k\">.</span>className<span class=\"k\">);</span>","                            holder<span class=\"k\">.</span>style<span class=\"k\">.</span>cssText <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>newDiv<span class=\"k\">.</span>style<span class=\"k\">.</span>cssText <span class=\"k\">=</span> holder<span class=\"k\">.</span>style<span class=\"k\">.</span>cssText<span class=\"k\">);</span>","                            <span class=\"k\">if</span> <span class=\"k\">(</span><span class=\"s\">/textarea/i</span><span class=\"k\">.</span>test<span class=\"k\">(</span>holder<span class=\"k\">.</span>tagName<span class=\"k\">))</span> <span class=\"k\">{</span>","                                editor<span class=\"k\">.</span>textarea <span class=\"k\">=</span> holder<span class=\"k\">;</span>","                                editor<span class=\"k\">.</span>textarea<span class=\"k\">.</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">'none'</span><span class=\"k\">;</span>","","                            <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                                holder<span class=\"k\">.</span>parentNode<span class=\"k\">.</span>removeChild<span class=\"k\">(</span>holder<span class=\"k\">);</span>","                                holder<span class=\"k\">.</span>id <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>newDiv<span class=\"k\">.</span>id <span class=\"k\">=</span> holder<span class=\"k\">.</span>id<span class=\"k\">);</span>","                            <span class=\"k\">}</span>","                            holder <span class=\"k\">=</span> newDiv<span class=\"k\">;</span>","                            holder<span class=\"k\">.</span>innerHTML <span class=\"k\">=</span> <span class=\"s\">''</span><span class=\"k\">;</span>","                        <span class=\"k\">}</span>","","                    <span class=\"k\">}</span>","                    domUtils<span class=\"k\">.</span>addClass<span class=\"k\">(</span>holder<span class=\"k\">,</span> <span class=\"s\">\"edui-\"</span> <span class=\"k\">+</span> editor<span class=\"k\">.</span>options<span class=\"k\">.</span>theme<span class=\"k\">);</span>","                    editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>render<span class=\"k\">(</span>holder<span class=\"k\">);</span>","                    <span class=\"k\">var</span> opt <span class=\"k\">=</span> editor<span class=\"k\">.</span>options<span class=\"k\">;</span>","                    <span class=\"c\">//&#32473;&#23454;&#20363;&#28155;&#21152;&#19968;&#20010;&#32534;&#36753;&#22120;&#30340;&#23481;&#22120;&#24341;&#29992;</span>","                    editor<span class=\"k\">.</span>container <span class=\"k\">=</span> editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>getDom<span class=\"k\">();</span>","                    <span class=\"k\">var</span> parents <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>findParents<span class=\"k\">(</span>holder<span class=\"k\">,</span><span class=\"k\">true</span><span class=\"k\">);</span>","                    <span class=\"k\">var</span> displays <span class=\"k\">=</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>ci<span class=\"k\">=</span>parents<span class=\"k\">[</span>i<span class=\"k\">];</span>i<span class=\"k\">++)</span><span class=\"k\">{</span>","                        displays<span class=\"k\">[</span>i<span class=\"k\">]</span> <span class=\"k\">=</span> ci<span class=\"k\">.</span>style<span class=\"k\">.</span>display<span class=\"k\">;</span>","                        ci<span class=\"k\">.</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">'block'</span>","                    <span class=\"k\">}</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span>opt<span class=\"k\">.</span>initialFrameWidth<span class=\"k\">)</span> <span class=\"k\">{</span>","                        opt<span class=\"k\">.</span>minFrameWidth <span class=\"k\">=</span> opt<span class=\"k\">.</span>initialFrameWidth<span class=\"k\">;</span>","                    <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                        opt<span class=\"k\">.</span>minFrameWidth <span class=\"k\">=</span> opt<span class=\"k\">.</span>initialFrameWidth <span class=\"k\">=</span> holder<span class=\"k\">.</span>offsetWidth<span class=\"k\">;</span>","                    <span class=\"k\">}</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span>opt<span class=\"k\">.</span>initialFrameHeight<span class=\"k\">)</span> <span class=\"k\">{</span>","                        opt<span class=\"k\">.</span>minFrameHeight <span class=\"k\">=</span> opt<span class=\"k\">.</span>initialFrameHeight<span class=\"k\">;</span>","                    <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                        opt<span class=\"k\">.</span>initialFrameHeight <span class=\"k\">=</span> opt<span class=\"k\">.</span>minFrameHeight <span class=\"k\">=</span> holder<span class=\"k\">.</span>offsetHeight<span class=\"k\">;</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>ci<span class=\"k\">=</span>parents<span class=\"k\">[</span>i<span class=\"k\">];</span>i<span class=\"k\">++)</span><span class=\"k\">{</span>","                        ci<span class=\"k\">.</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span>  displays<span class=\"k\">[</span>i<span class=\"k\">]</span>","                    <span class=\"k\">}</span>","                    <span class=\"c\">//&#32534;&#36753;&#22120;&#26368;&#22806;&#23481;&#22120;&#35774;&#32622;&#20102;&#39640;&#24230;&#65292;&#20250;&#23548;&#33268;&#65292;&#32534;&#36753;&#22120;&#19981;&#21344;&#20301;</span>","                    <span class=\"c\">//todo &#20808;&#21435;&#25481;&#65292;&#27809;&#26377;&#25214;&#21040;&#21407;&#22240;</span>","                    <span class=\"k\">if</span><span class=\"k\">(</span>holder<span class=\"k\">.</span>style<span class=\"k\">.</span>height<span class=\"k\">)</span><span class=\"k\">{</span>","                        holder<span class=\"k\">.</span>style<span class=\"k\">.</span>height <span class=\"k\">=</span> <span class=\"s\">''</span>","                    <span class=\"k\">}</span>","                    editor<span class=\"k\">.</span>container<span class=\"k\">.</span>style<span class=\"k\">.</span>width <span class=\"k\">=</span> opt<span class=\"k\">.</span>initialFrameWidth <span class=\"k\">+</span> <span class=\"k\">(</span><span class=\"s\">/%$/</span><span class=\"k\">.</span>test<span class=\"k\">(</span>opt<span class=\"k\">.</span>initialFrameWidth<span class=\"k\">)</span> <span class=\"k\">?</span> <span class=\"s\">''</span> <span class=\"k\">:</span> <span class=\"s\">'px'</span><span class=\"k\">);</span>","                    editor<span class=\"k\">.</span>container<span class=\"k\">.</span>style<span class=\"k\">.</span>zIndex <span class=\"k\">=</span> opt<span class=\"k\">.</span>zIndex<span class=\"k\">;</span>","                    oldRender<span class=\"k\">.</span>call<span class=\"k\">(</span>editor<span class=\"k\">,</span> editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'iframeholder'</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>","        <span class=\"k\">return</span> editor<span class=\"k\">;</span>","    <span class=\"k\">}</span><span class=\"k\">;</span>","","","    <span class=\"c\">/**</span>","<span class=\"c\">     * @file</span>","<span class=\"c\">     * @name UE</span>","<span class=\"c\">     * @short UE</span>","<span class=\"c\">     * @desc UEditor&#30340;&#39030;&#37096;&#21629;&#21517;&#31354;&#38388;</span>","<span class=\"c\">     */</span>","    <span class=\"c\">/**</span>","<span class=\"c\">     * @name getEditor</span>","<span class=\"c\">     * @since 1.2.4+</span>","<span class=\"c\">     * @grammar UE.getEditor(id,[opt])  =&gt;  Editor&#23454;&#20363;</span>","<span class=\"c\">     * @desc &#25552;&#20379;&#19968;&#20010;&#20840;&#23616;&#30340;&#26041;&#27861;&#24471;&#21040;&#32534;&#36753;&#22120;&#23454;&#20363;</span>","<span class=\"c\">     *</span>","<span class=\"c\">     * * ''id''  &#25918;&#32622;&#32534;&#36753;&#22120;&#30340;&#23481;&#22120;id, &#22914;&#26524;&#23481;&#22120;&#19979;&#30340;&#32534;&#36753;&#22120;&#24050;&#32463;&#23384;&#22312;&#65292;&#23601;&#30452;&#25509;&#36820;&#22238;</span>","<span class=\"c\">     * * ''opt'' &#32534;&#36753;&#22120;&#30340;&#21487;&#36873;&#21442;&#25968;</span>","<span class=\"c\">     * @example</span>","<span class=\"c\">     *  UE.getEditor('containerId',{onready:function(){//&#21019;&#24314;&#19968;&#20010;&#32534;&#36753;&#22120;&#23454;&#20363;</span>","<span class=\"c\">     *      this.setContent('hello')</span>","<span class=\"c\">     *  }});</span>","<span class=\"c\">     *  UE.getEditor('containerId'); //&#36820;&#22238;&#21018;&#21019;&#24314;&#30340;&#23454;&#20363;</span>","<span class=\"c\">     *</span>","<span class=\"c\">     */</span>","    UE<span class=\"k\">.</span>getEditor <span class=\"k\">=</span> <span class=\"k\">function</span> <span class=\"k\">(</span>id<span class=\"k\">,</span> opt<span class=\"k\">)</span> <span class=\"k\">{</span>","        <span class=\"k\">var</span> editor <span class=\"k\">=</span> instances<span class=\"k\">[</span>id<span class=\"k\">];</span>","        <span class=\"k\">if</span> <span class=\"k\">(!</span>editor<span class=\"k\">)</span> <span class=\"k\">{</span>","            editor <span class=\"k\">=</span> instances<span class=\"k\">[</span>id<span class=\"k\">]</span> <span class=\"k\">=</span> <span class=\"k\">new</span> UE<span class=\"k\">.</span>ui<span class=\"k\">.</span>Editor<span class=\"k\">(</span>opt<span class=\"k\">);</span>","            editor<span class=\"k\">.</span>render<span class=\"k\">(</span>id<span class=\"k\">);</span>","        <span class=\"k\">}</span>","        <span class=\"k\">return</span> editor<span class=\"k\">;</span>","    <span class=\"k\">}</span><span class=\"k\">;</span>","","","    UE<span class=\"k\">.</span>delEditor <span class=\"k\">=</span> <span class=\"k\">function</span> <span class=\"k\">(</span>id<span class=\"k\">)</span> <span class=\"k\">{</span>","        <span class=\"k\">var</span> editor<span class=\"k\">;</span>","        <span class=\"k\">if</span> <span class=\"k\">(</span>editor <span class=\"k\">=</span> instances<span class=\"k\">[</span>id<span class=\"k\">])</span> <span class=\"k\">{</span>","            editor<span class=\"k\">.</span>key <span class=\"k\">&amp;&amp;</span> editor<span class=\"k\">.</span>destroy<span class=\"k\">();</span>","            <span class=\"k\">delete</span> instances<span class=\"k\">[</span>id<span class=\"k\">]</span>","        <span class=\"k\">}</span>","    <span class=\"k\">}</span>","<span class=\"k\">}</span><span class=\"k\">)();</span>"];
_$jscoverage['ui/editor.js'][5]++;
(function () {
  _$jscoverage['ui/editor.js'][6]++;
  var utils = baidu.editor.utils, uiUtils = baidu.editor.ui.uiUtils, UIBase = baidu.editor.ui.UIBase, domUtils = baidu.editor.dom.domUtils;
  _$jscoverage['ui/editor.js'][10]++;
  var nodeStack = [];
  _$jscoverage['ui/editor.js'][12]++;
  function EditorUI(options) {
    _$jscoverage['ui/editor.js'][13]++;
    this.initOptions(options);
    _$jscoverage['ui/editor.js'][14]++;
    this.initEditorUI();
}
  _$jscoverage['ui/editor.js'][17]++;
  EditorUI.prototype = {uiName: "editor", initEditorUI: (function () {
  _$jscoverage['ui/editor.js'][20]++;
  this.editor.ui = this;
  _$jscoverage['ui/editor.js'][21]++;
  this._dialogs = {};
  _$jscoverage['ui/editor.js'][22]++;
  this.initUIBase();
  _$jscoverage['ui/editor.js'][23]++;
  this._initToolbars();
  _$jscoverage['ui/editor.js'][24]++;
  var editor = this.editor, me = this;
  _$jscoverage['ui/editor.js'][27]++;
  editor.addListener("ready", (function () {
  _$jscoverage['ui/editor.js'][29]++;
  editor.getDialog = (function (name) {
  _$jscoverage['ui/editor.js'][30]++;
  return editor.ui._dialogs[(name + "Dialog")];
});
  _$jscoverage['ui/editor.js'][32]++;
  domUtils.on(editor.window, "scroll", (function (evt) {
  _$jscoverage['ui/editor.js'][33]++;
  baidu.editor.ui.Popup.postHide(evt);
}));
  _$jscoverage['ui/editor.js'][36]++;
  editor.ui._actualFrameWidth = editor.options.initialFrameWidth;
  _$jscoverage['ui/editor.js'][39]++;
  if (editor.options.elementPathEnabled) {
    _$jscoverage['ui/editor.js'][40]++;
    editor.ui.getDom("elementpath").innerHTML = ("<div class=\"edui-editor-breadcrumb\">" + editor.getLang("elementPathTip") + ":</div>");
  }
  _$jscoverage['ui/editor.js'][42]++;
  if (editor.options.wordCount) {
    _$jscoverage['ui/editor.js'][43]++;
    function countFn() {
      _$jscoverage['ui/editor.js'][44]++;
      setCount(editor, me);
      _$jscoverage['ui/editor.js'][45]++;
      domUtils.un(editor.document, "click", arguments.callee);
}
    _$jscoverage['ui/editor.js'][47]++;
    domUtils.on(editor.document, "click", countFn);
    _$jscoverage['ui/editor.js'][48]++;
    editor.ui.getDom("wordcount").innerHTML = editor.getLang("wordCountTip");
  }
  _$jscoverage['ui/editor.js'][50]++;
  editor.ui._scale();
  _$jscoverage['ui/editor.js'][51]++;
  if (editor.options.scaleEnabled) {
    _$jscoverage['ui/editor.js'][52]++;
    if (editor.autoHeightEnabled) {
      _$jscoverage['ui/editor.js'][53]++;
      editor.disableAutoHeight();
    }
    _$jscoverage['ui/editor.js'][55]++;
    me.enableScale();
  }
  else {
    _$jscoverage['ui/editor.js'][57]++;
    me.disableScale();
  }
  _$jscoverage['ui/editor.js'][59]++;
  if (((! editor.options.elementPathEnabled) && (! editor.options.wordCount) && (! editor.options.scaleEnabled))) {
    _$jscoverage['ui/editor.js'][60]++;
    editor.ui.getDom("elementpath").style.display = "none";
    _$jscoverage['ui/editor.js'][61]++;
    editor.ui.getDom("wordcount").style.display = "none";
    _$jscoverage['ui/editor.js'][62]++;
    editor.ui.getDom("scale").style.display = "none";
  }
  _$jscoverage['ui/editor.js'][65]++;
  if ((! editor.selection.isFocus())) {
    _$jscoverage['ui/editor.js'][65]++;
    return;
  }
  _$jscoverage['ui/editor.js'][66]++;
  editor.fireEvent("selectionchange", false, true);
}));
  _$jscoverage['ui/editor.js'][71]++;
  editor.addListener("mousedown", (function (t, evt) {
  _$jscoverage['ui/editor.js'][72]++;
  var el = (evt.target || evt.srcElement);
  _$jscoverage['ui/editor.js'][73]++;
  baidu.editor.ui.Popup.postHide(evt, el);
  _$jscoverage['ui/editor.js'][74]++;
  baidu.editor.ui.ShortCutMenu.postHide(evt);
}));
  _$jscoverage['ui/editor.js'][77]++;
  editor.addListener("delcells", (function () {
  _$jscoverage['ui/editor.js'][78]++;
  if (UE.ui.edittip) {
    _$jscoverage['ui/editor.js'][79]++;
    new (UE.ui.edittip)(editor);
  }
  _$jscoverage['ui/editor.js'][81]++;
  editor.getDialog("edittip").open();
}));
  _$jscoverage['ui/editor.js'][84]++;
  var pastePop, isPaste = false, timer;
  _$jscoverage['ui/editor.js'][85]++;
  editor.addListener("afterpaste", (function () {
  _$jscoverage['ui/editor.js'][86]++;
  if (editor.queryCommandState("pasteplain")) {
    _$jscoverage['ui/editor.js'][87]++;
    return;
  }
  _$jscoverage['ui/editor.js'][88]++;
  if (baidu.editor.ui.PastePicker) {
    _$jscoverage['ui/editor.js'][89]++;
    pastePop = new (baidu.editor.ui.Popup)({content: new (baidu.editor.ui.PastePicker)({editor: editor}), editor: editor, className: "edui-wordpastepop"});
    _$jscoverage['ui/editor.js'][94]++;
    pastePop.render();
  }
  _$jscoverage['ui/editor.js'][96]++;
  isPaste = true;
}));
  _$jscoverage['ui/editor.js'][99]++;
  editor.addListener("afterinserthtml", (function () {
  _$jscoverage['ui/editor.js'][100]++;
  clearTimeout(timer);
  _$jscoverage['ui/editor.js'][101]++;
  timer = setTimeout((function () {
  _$jscoverage['ui/editor.js'][102]++;
  if ((pastePop && (isPaste || editor.ui._isTransfer))) {
    _$jscoverage['ui/editor.js'][103]++;
    if (pastePop.isHidden()) {
      _$jscoverage['ui/editor.js'][104]++;
      var span = domUtils.createElement(editor.document, "span", {"style": "line-height:0px;", "innerHTML": "\ufeff"}), range = editor.selection.getRange();
      _$jscoverage['ui/editor.js'][109]++;
      range.insertNode(span);
      _$jscoverage['ui/editor.js'][110]++;
      var tmp = getDomNode(span, "firstChild", "previousSibling");
      _$jscoverage['ui/editor.js'][111]++;
      pastePop.showAnchor(((tmp.nodeType == 3)? tmp.parentNode: tmp));
      _$jscoverage['ui/editor.js'][112]++;
      domUtils.remove(span);
    }
    else {
      _$jscoverage['ui/editor.js'][115]++;
      pastePop.show();
    }
    _$jscoverage['ui/editor.js'][117]++;
    (delete editor.ui._isTransfer);
    _$jscoverage['ui/editor.js'][118]++;
    isPaste = false;
  }
}), 200);
}));
  _$jscoverage['ui/editor.js'][122]++;
  editor.addListener("contextmenu", (function (t, evt) {
  _$jscoverage['ui/editor.js'][123]++;
  baidu.editor.ui.Popup.postHide(evt);
}));
  _$jscoverage['ui/editor.js'][125]++;
  editor.addListener("keydown", (function (t, evt) {
  _$jscoverage['ui/editor.js'][126]++;
  if (pastePop) {
    _$jscoverage['ui/editor.js'][126]++;
    pastePop.dispose(evt);
  }
  _$jscoverage['ui/editor.js'][127]++;
  var keyCode = (evt.keyCode || evt.which);
  _$jscoverage['ui/editor.js'][128]++;
  if ((evt.altKey && (keyCode == 90))) {
    _$jscoverage['ui/editor.js'][129]++;
    UE.ui.buttons.fullscreen.onclick();
  }
}));
  _$jscoverage['ui/editor.js'][132]++;
  editor.addListener("wordcount", (function (type) {
  _$jscoverage['ui/editor.js'][133]++;
  setCount(this, me);
}));
  _$jscoverage['ui/editor.js'][135]++;
  function setCount(editor, ui) {
    _$jscoverage['ui/editor.js'][136]++;
    editor.setOpt({wordCount: true, maximumWords: 10000, wordCountMsg: (editor.options.wordCountMsg || editor.getLang("wordCountMsg")), wordOverFlowMsg: (editor.options.wordOverFlowMsg || editor.getLang("wordOverFlowMsg"))});
    _$jscoverage['ui/editor.js'][142]++;
    var opt = editor.options, max = opt.maximumWords, msg = opt.wordCountMsg, errMsg = opt.wordOverFlowMsg, countDom = ui.getDom("wordcount");
    _$jscoverage['ui/editor.js'][147]++;
    if ((! opt.wordCount)) {
      _$jscoverage['ui/editor.js'][148]++;
      return;
    }
    _$jscoverage['ui/editor.js'][150]++;
    var count = editor.getContentLength(true);
    _$jscoverage['ui/editor.js'][151]++;
    if ((count > max)) {
      _$jscoverage['ui/editor.js'][152]++;
      countDom.innerHTML = errMsg;
      _$jscoverage['ui/editor.js'][153]++;
      editor.fireEvent("wordcountoverflow");
    }
    else {
      _$jscoverage['ui/editor.js'][155]++;
      countDom.innerHTML = msg.replace("{#leave}", (max - count)).replace("{#count}", count);
    }
}
  _$jscoverage['ui/editor.js'][159]++;
  editor.addListener("selectionchange", (function () {
  _$jscoverage['ui/editor.js'][160]++;
  if (editor.options.elementPathEnabled) {
    _$jscoverage['ui/editor.js'][161]++;
    (me[(((editor.queryCommandState("elementpath") == -1)? "dis": "en") + "ableElementPath")])();
  }
  _$jscoverage['ui/editor.js'][163]++;
  if (editor.options.scaleEnabled) {
    _$jscoverage['ui/editor.js'][164]++;
    (me[(((editor.queryCommandState("scale") == -1)? "dis": "en") + "ableScale")])();
  }
}));
  _$jscoverage['ui/editor.js'][168]++;
  var popup = new (baidu.editor.ui.Popup)({editor: editor, content: "", className: "edui-bubble", _onEditButtonClick: (function () {
  _$jscoverage['ui/editor.js'][173]++;
  this.hide();
  _$jscoverage['ui/editor.js'][174]++;
  editor.ui._dialogs.linkDialog.open();
}), _onImgEditButtonClick: (function (name) {
  _$jscoverage['ui/editor.js'][177]++;
  this.hide();
  _$jscoverage['ui/editor.js'][178]++;
  (editor.ui._dialogs[name] && editor.ui._dialogs[name].open());
}), _onImgSetFloat: (function (value) {
  _$jscoverage['ui/editor.js'][182]++;
  this.hide();
  _$jscoverage['ui/editor.js'][183]++;
  editor.execCommand("imagefloat", value);
}), _setIframeAlign: (function (value) {
  _$jscoverage['ui/editor.js'][187]++;
  var frame = popup.anchorEl;
  _$jscoverage['ui/editor.js'][188]++;
  var newFrame = frame.cloneNode(true);
  _$jscoverage['ui/editor.js'][189]++;
  switch (value) {
  case -2:
    _$jscoverage['ui/editor.js'][191]++;
    newFrame.setAttribute("align", "");
    _$jscoverage['ui/editor.js'][192]++;
    break;
  case -1:
    _$jscoverage['ui/editor.js'][194]++;
    newFrame.setAttribute("align", "left");
    _$jscoverage['ui/editor.js'][195]++;
    break;
  case 1:
    _$jscoverage['ui/editor.js'][197]++;
    newFrame.setAttribute("align", "right");
    _$jscoverage['ui/editor.js'][198]++;
    break;
  }
  _$jscoverage['ui/editor.js'][200]++;
  frame.parentNode.insertBefore(newFrame, frame);
  _$jscoverage['ui/editor.js'][201]++;
  domUtils.remove(frame);
  _$jscoverage['ui/editor.js'][202]++;
  popup.anchorEl = newFrame;
  _$jscoverage['ui/editor.js'][203]++;
  popup.showAnchor(popup.anchorEl);
}), _updateIframe: (function () {
  _$jscoverage['ui/editor.js'][206]++;
  editor._iframe = popup.anchorEl;
  _$jscoverage['ui/editor.js'][207]++;
  editor.ui._dialogs.insertframeDialog.open();
  _$jscoverage['ui/editor.js'][208]++;
  popup.hide();
}), _onRemoveButtonClick: (function (cmdName) {
  _$jscoverage['ui/editor.js'][211]++;
  editor.execCommand(cmdName);
  _$jscoverage['ui/editor.js'][212]++;
  this.hide();
}), queryAutoHide: (function (el) {
  _$jscoverage['ui/editor.js'][215]++;
  if ((el && (el.ownerDocument == editor.document))) {
    _$jscoverage['ui/editor.js'][216]++;
    if (((el.tagName.toLowerCase() == "img") || domUtils.findParentByTagName(el, "a", true))) {
      _$jscoverage['ui/editor.js'][217]++;
      return (el !== popup.anchorEl);
    }
  }
  _$jscoverage['ui/editor.js'][220]++;
  return baidu.editor.ui.Popup.prototype.queryAutoHide.call(this, el);
})});
  _$jscoverage['ui/editor.js'][223]++;
  popup.render();
  _$jscoverage['ui/editor.js'][224]++;
  if (editor.options.imagePopup) {
    _$jscoverage['ui/editor.js'][225]++;
    editor.addListener("mouseover", (function (t, evt) {
  _$jscoverage['ui/editor.js'][226]++;
  evt = (evt || window.event);
  _$jscoverage['ui/editor.js'][227]++;
  var el = (evt.target || evt.srcElement);
  _$jscoverage['ui/editor.js'][228]++;
  if ((editor.ui._dialogs.insertframeDialog && /iframe/gi.test(el.tagName))) {
    _$jscoverage['ui/editor.js'][229]++;
    var html = popup.formatHtml(("<nobr>" + editor.getLang("property") + ": <span onclick=$$._setIframeAlign(-2) class=\"edui-clickable\">" + editor.getLang("default") + "</span>&nbsp;&nbsp;<span onclick=$$._setIframeAlign(-1) class=\"edui-clickable\">" + editor.getLang("justifyleft") + "</span>&nbsp;&nbsp;<span onclick=$$._setIframeAlign(1) class=\"edui-clickable\">" + editor.getLang("justifyright") + "</span>&nbsp;&nbsp;" + " <span onclick=\"$$._updateIframe( this);\" class=\"edui-clickable\">" + editor.getLang("modify") + "</span></nobr>"));
    _$jscoverage['ui/editor.js'][232]++;
    if (html) {
      _$jscoverage['ui/editor.js'][233]++;
      popup.getDom("content").innerHTML = html;
      _$jscoverage['ui/editor.js'][234]++;
      popup.anchorEl = el;
      _$jscoverage['ui/editor.js'][235]++;
      popup.showAnchor(popup.anchorEl);
    }
    else {
      _$jscoverage['ui/editor.js'][237]++;
      popup.hide();
    }
  }
}));
    _$jscoverage['ui/editor.js'][241]++;
    editor.addListener("selectionchange", (function (t, causeByUi) {
  _$jscoverage['ui/editor.js'][242]++;
  if ((! causeByUi)) {
    _$jscoverage['ui/editor.js'][242]++;
    return;
  }
  _$jscoverage['ui/editor.js'][243]++;
  var html = "", str = "", img = editor.selection.getRange().getClosedNode(), dialogs = editor.ui._dialogs;
  _$jscoverage['ui/editor.js'][246]++;
  if ((img && (img.tagName == "IMG"))) {
    _$jscoverage['ui/editor.js'][247]++;
    var dialogName = "insertimageDialog";
    _$jscoverage['ui/editor.js'][248]++;
    if ((img.className.indexOf("edui-faked-video") != -1)) {
      _$jscoverage['ui/editor.js'][249]++;
      dialogName = "insertvideoDialog";
    }
    _$jscoverage['ui/editor.js'][251]++;
    if ((img.className.indexOf("edui-faked-webapp") != -1)) {
      _$jscoverage['ui/editor.js'][252]++;
      dialogName = "webappDialog";
    }
    _$jscoverage['ui/editor.js'][254]++;
    if ((img.src.indexOf("http://api.map.baidu.com") != -1)) {
      _$jscoverage['ui/editor.js'][255]++;
      dialogName = "mapDialog";
    }
    _$jscoverage['ui/editor.js'][257]++;
    if ((img.className.indexOf("edui-faked-music") != -1)) {
      _$jscoverage['ui/editor.js'][258]++;
      dialogName = "musicDialog";
    }
    _$jscoverage['ui/editor.js'][260]++;
    if ((img.src.indexOf("http://maps.google.com/maps/api/staticmap") != -1)) {
      _$jscoverage['ui/editor.js'][261]++;
      dialogName = "gmapDialog";
    }
    _$jscoverage['ui/editor.js'][263]++;
    if (img.getAttribute("anchorname")) {
      _$jscoverage['ui/editor.js'][264]++;
      dialogName = "anchorDialog";
      _$jscoverage['ui/editor.js'][265]++;
      html = popup.formatHtml(("<nobr>" + editor.getLang("property") + ": <span onclick=$$._onImgEditButtonClick(\"anchorDialog\") class=\"edui-clickable\">" + editor.getLang("modify") + "</span>&nbsp;&nbsp;" + "<span onclick=$$._onRemoveButtonClick('anchor') class=\"edui-clickable\">" + editor.getLang("delete") + "</span></nobr>"));
    }
    _$jscoverage['ui/editor.js'][269]++;
    if (img.getAttribute("word_img")) {
      _$jscoverage['ui/editor.js'][271]++;
      editor.word_img = [img.getAttribute("word_img")];
      _$jscoverage['ui/editor.js'][272]++;
      dialogName = "wordimageDialog";
    }
    _$jscoverage['ui/editor.js'][274]++;
    if ((! dialogs[dialogName])) {
      _$jscoverage['ui/editor.js'][275]++;
      return;
    }
    _$jscoverage['ui/editor.js'][277]++;
    str = ("<nobr>" + editor.getLang("property") + ": " + "<span onclick=$$._onImgSetFloat(\"none\") class=\"edui-clickable\">" + editor.getLang("default") + "</span>&nbsp;&nbsp;" + "<span onclick=$$._onImgSetFloat(\"left\") class=\"edui-clickable\">" + editor.getLang("justifyleft") + "</span>&nbsp;&nbsp;" + "<span onclick=$$._onImgSetFloat(\"right\") class=\"edui-clickable\">" + editor.getLang("justifyright") + "</span>&nbsp;&nbsp;" + "<span onclick=$$._onImgSetFloat(\"center\") class=\"edui-clickable\">" + editor.getLang("justifycenter") + "</span>&nbsp;&nbsp;" + "<span onclick=\"$$._onImgEditButtonClick('" + dialogName + "');\" class=\"edui-clickable\">" + editor.getLang("modify") + "</span></nobr>");
    _$jscoverage['ui/editor.js'][284]++;
    ((! html) && (html = popup.formatHtml(str)));
  }
  _$jscoverage['ui/editor.js'][287]++;
  if (editor.ui._dialogs.linkDialog) {
    _$jscoverage['ui/editor.js'][288]++;
    var link = editor.queryCommandValue("link");
    _$jscoverage['ui/editor.js'][289]++;
    var url;
    _$jscoverage['ui/editor.js'][290]++;
    if ((link && (url = (link.getAttribute("_href") || link.getAttribute("href", 2))))) {
      _$jscoverage['ui/editor.js'][291]++;
      var txt = url;
      _$jscoverage['ui/editor.js'][292]++;
      if ((url.length > 30)) {
        _$jscoverage['ui/editor.js'][293]++;
        txt = (url.substring(0, 20) + "...");
      }
      _$jscoverage['ui/editor.js'][295]++;
      if (html) {
        _$jscoverage['ui/editor.js'][296]++;
        html += "<div style=\"height:5px;\"></div>";
      }
      _$jscoverage['ui/editor.js'][298]++;
      html += popup.formatHtml(("<nobr>" + editor.getLang("anthorMsg") + ": <a target=\"_blank\" href=\"" + url + "\" title=\"" + url + "\" >" + txt + "</a>" + " <span class=\"edui-clickable\" onclick=\"$$._onEditButtonClick();\">" + editor.getLang("modify") + "</span>" + " <span class=\"edui-clickable\" onclick=\"$$._onRemoveButtonClick('unlink');\"> " + editor.getLang("clear") + "</span></nobr>"));
      _$jscoverage['ui/editor.js'][302]++;
      popup.showAnchor(link);
    }
  }
  _$jscoverage['ui/editor.js'][306]++;
  if (html) {
    _$jscoverage['ui/editor.js'][307]++;
    popup.getDom("content").innerHTML = html;
    _$jscoverage['ui/editor.js'][308]++;
    popup.anchorEl = (img || link);
    _$jscoverage['ui/editor.js'][309]++;
    popup.showAnchor(popup.anchorEl);
  }
  else {
    _$jscoverage['ui/editor.js'][311]++;
    popup.hide();
  }
}));
  }
}), _initToolbars: (function () {
  _$jscoverage['ui/editor.js'][318]++;
  var editor = this.editor;
  _$jscoverage['ui/editor.js'][319]++;
  var toolbars = (this.toolbars || []);
  _$jscoverage['ui/editor.js'][320]++;
  var toolbarUis = [];
  _$jscoverage['ui/editor.js'][321]++;
  for (var i = 0; (i < toolbars.length); (i++)) {
    _$jscoverage['ui/editor.js'][322]++;
    var toolbar = toolbars[i];
    _$jscoverage['ui/editor.js'][323]++;
    var toolbarUi = new (baidu.editor.ui.Toolbar)({theme: editor.options.theme});
    _$jscoverage['ui/editor.js'][324]++;
    for (var j = 0; (j < toolbar.length); (j++)) {
      _$jscoverage['ui/editor.js'][325]++;
      var toolbarItem = toolbar[j];
      _$jscoverage['ui/editor.js'][326]++;
      var toolbarItemUi = null;
      _$jscoverage['ui/editor.js'][327]++;
      if (((typeof toolbarItem) == "string")) {
        _$jscoverage['ui/editor.js'][328]++;
        toolbarItem = toolbarItem.toLowerCase();
        _$jscoverage['ui/editor.js'][329]++;
        if ((toolbarItem == "|")) {
          _$jscoverage['ui/editor.js'][330]++;
          toolbarItem = "Separator";
        }
        _$jscoverage['ui/editor.js'][332]++;
        if ((toolbarItem == "||")) {
          _$jscoverage['ui/editor.js'][333]++;
          toolbarItem = "Breakline";
        }
        _$jscoverage['ui/editor.js'][335]++;
        if (baidu.editor.ui[toolbarItem]) {
          _$jscoverage['ui/editor.js'][336]++;
          toolbarItemUi = new (baidu.editor.ui[toolbarItem])(editor);
        }
        _$jscoverage['ui/editor.js'][340]++;
        if ((toolbarItem == "fullscreen")) {
          _$jscoverage['ui/editor.js'][341]++;
          if ((toolbarUis && toolbarUis[0])) {
            _$jscoverage['ui/editor.js'][342]++;
            toolbarUis[0].items.splice(0, 0, toolbarItemUi);
          }
          else {
            _$jscoverage['ui/editor.js'][344]++;
            (toolbarItemUi && toolbarUi.items.splice(0, 0, toolbarItemUi));
          }
          _$jscoverage['ui/editor.js'][347]++;
          continue;
        }
      }
      else {
        _$jscoverage['ui/editor.js'][352]++;
        toolbarItemUi = toolbarItem;
      }
      _$jscoverage['ui/editor.js'][354]++;
      if ((toolbarItemUi && toolbarItemUi.id)) {
        _$jscoverage['ui/editor.js'][356]++;
        toolbarUi.add(toolbarItemUi);
      }
}
    _$jscoverage['ui/editor.js'][359]++;
    toolbarUis[i] = toolbarUi;
}
  _$jscoverage['ui/editor.js'][361]++;
  this.toolbars = toolbarUis;
}), getHtmlTpl: (function () {
  _$jscoverage['ui/editor.js'][364]++;
  return ("<div id=\"##\" class=\"%%\">" + "<div id=\"##_toolbarbox\" class=\"%%-toolbarbox\">" + (this.toolbars.length? ("<div id=\"##_toolbarboxouter\" class=\"%%-toolbarboxouter\"><div class=\"%%-toolbarboxinner\">" + this.renderToolbarBoxHtml() + "</div></div>"): "") + "<div id=\"##_toolbarmsg\" class=\"%%-toolbarmsg\" style=\"display:none;\">" + "<div id = \"##_upload_dialog\" class=\"%%-toolbarmsg-upload\" onclick=\"$$.showWordImageDialog();\">" + this.editor.getLang("clickToUpload") + "</div>" + "<div class=\"%%-toolbarmsg-close\" onclick=\"$$.hideToolbarMsg();\">x</div>" + "<div id=\"##_toolbarmsg_label\" class=\"%%-toolbarmsg-label\"></div>" + "<div style=\"height:0;overflow:hidden;clear:both;\"></div>" + "</div>" + "</div>" + "<div id=\"##_iframeholder\" class=\"%%-iframeholder\"></div>" + "<div id=\"##_bottombar\" class=\"%%-bottomContainer\"><table><tr>" + "<td id=\"##_elementpath\" class=\"%%-bottombar\"></td>" + "<td id=\"##_wordcount\" class=\"%%-wordcount\"></td>" + "<td id=\"##_scale\" class=\"%%-scale\"><div class=\"%%-icon\"></div></td>" + "</tr></table></div>" + "<div id=\"##_scalelayer\"></div>" + "</div>");
}), showWordImageDialog: (function () {
  _$jscoverage['ui/editor.js'][388]++;
  this.editor.execCommand("wordimage", "word_img");
  _$jscoverage['ui/editor.js'][389]++;
  this._dialogs.wordimageDialog.open();
}), renderToolbarBoxHtml: (function () {
  _$jscoverage['ui/editor.js'][392]++;
  var buff = [];
  _$jscoverage['ui/editor.js'][393]++;
  for (var i = 0; (i < this.toolbars.length); (i++)) {
    _$jscoverage['ui/editor.js'][394]++;
    buff.push(this.toolbars[i].renderHtml());
}
  _$jscoverage['ui/editor.js'][396]++;
  return buff.join("");
}), setFullScreen: (function (fullscreen) {
  _$jscoverage['ui/editor.js'][400]++;
  var editor = this.editor, container = editor.container.parentNode.parentNode;
  _$jscoverage['ui/editor.js'][402]++;
  if ((this._fullscreen != fullscreen)) {
    _$jscoverage['ui/editor.js'][403]++;
    this._fullscreen = fullscreen;
    _$jscoverage['ui/editor.js'][404]++;
    this.editor.fireEvent("beforefullscreenchange", fullscreen);
    _$jscoverage['ui/editor.js'][405]++;
    if (baidu.editor.browser.gecko) {
      _$jscoverage['ui/editor.js'][406]++;
      var bk = editor.selection.getRange().createBookmark();
    }
    _$jscoverage['ui/editor.js'][408]++;
    if (fullscreen) {
      _$jscoverage['ui/editor.js'][409]++;
      while ((container.tagName != "BODY")) {
        _$jscoverage['ui/editor.js'][410]++;
        var position = baidu.editor.dom.domUtils.getComputedStyle(container, "position");
        _$jscoverage['ui/editor.js'][411]++;
        nodeStack.push(position);
        _$jscoverage['ui/editor.js'][412]++;
        container.style.position = "static";
        _$jscoverage['ui/editor.js'][413]++;
        container = container.parentNode;
}
      _$jscoverage['ui/editor.js'][415]++;
      this._bakHtmlOverflow = document.documentElement.style.overflow;
      _$jscoverage['ui/editor.js'][416]++;
      this._bakBodyOverflow = document.body.style.overflow;
      _$jscoverage['ui/editor.js'][417]++;
      this._bakAutoHeight = this.editor.autoHeightEnabled;
      _$jscoverage['ui/editor.js'][418]++;
      this._bakScrollTop = Math.max(document.documentElement.scrollTop, document.body.scrollTop);
      _$jscoverage['ui/editor.js'][420]++;
      this._bakEditorContaninerWidth = editor.iframe.parentNode.offsetWidth;
      _$jscoverage['ui/editor.js'][421]++;
      if (this._bakAutoHeight) {
        _$jscoverage['ui/editor.js'][423]++;
        editor.autoHeightEnabled = false;
        _$jscoverage['ui/editor.js'][424]++;
        this.editor.disableAutoHeight();
      }
      _$jscoverage['ui/editor.js'][427]++;
      document.documentElement.style.overflow = "hidden";
      _$jscoverage['ui/editor.js'][428]++;
      document.body.style.overflow = "hidden";
      _$jscoverage['ui/editor.js'][429]++;
      this._bakCssText = this.getDom().style.cssText;
      _$jscoverage['ui/editor.js'][430]++;
      this._bakCssText1 = this.getDom("iframeholder").style.cssText;
      _$jscoverage['ui/editor.js'][431]++;
      editor.iframe.parentNode.style.width = "";
      _$jscoverage['ui/editor.js'][432]++;
      this._updateFullScreen();
    }
    else {
      _$jscoverage['ui/editor.js'][434]++;
      while ((container.tagName != "BODY")) {
        _$jscoverage['ui/editor.js'][435]++;
        container.style.position = nodeStack.shift();
        _$jscoverage['ui/editor.js'][436]++;
        container = container.parentNode;
}
      _$jscoverage['ui/editor.js'][438]++;
      this.getDom().style.cssText = this._bakCssText;
      _$jscoverage['ui/editor.js'][439]++;
      this.getDom("iframeholder").style.cssText = this._bakCssText1;
      _$jscoverage['ui/editor.js'][440]++;
      if (this._bakAutoHeight) {
        _$jscoverage['ui/editor.js'][441]++;
        editor.autoHeightEnabled = true;
        _$jscoverage['ui/editor.js'][442]++;
        this.editor.enableAutoHeight();
      }
      _$jscoverage['ui/editor.js'][445]++;
      document.documentElement.style.overflow = this._bakHtmlOverflow;
      _$jscoverage['ui/editor.js'][446]++;
      document.body.style.overflow = this._bakBodyOverflow;
      _$jscoverage['ui/editor.js'][447]++;
      editor.iframe.parentNode.style.width = (this._bakEditorContaninerWidth + "px");
      _$jscoverage['ui/editor.js'][448]++;
      window.scrollTo(0, this._bakScrollTop);
    }
    _$jscoverage['ui/editor.js'][450]++;
    if ((browser.gecko && (editor.body.contentEditable === "true"))) {
      _$jscoverage['ui/editor.js'][451]++;
      var input = document.createElement("input");
      _$jscoverage['ui/editor.js'][452]++;
      document.body.appendChild(input);
      _$jscoverage['ui/editor.js'][453]++;
      editor.body.contentEditable = false;
      _$jscoverage['ui/editor.js'][454]++;
      setTimeout((function () {
  _$jscoverage['ui/editor.js'][455]++;
  input.focus();
  _$jscoverage['ui/editor.js'][456]++;
  setTimeout((function () {
  _$jscoverage['ui/editor.js'][457]++;
  editor.body.contentEditable = true;
  _$jscoverage['ui/editor.js'][458]++;
  editor.fireEvent("fullscreenchanged", fullscreen);
  _$jscoverage['ui/editor.js'][459]++;
  editor.selection.getRange().moveToBookmark(bk).select(true);
  _$jscoverage['ui/editor.js'][460]++;
  baidu.editor.dom.domUtils.remove(input);
  _$jscoverage['ui/editor.js'][461]++;
  (fullscreen && window.scroll(0, 0));
}), 0);
}), 0);
    }
    _$jscoverage['ui/editor.js'][466]++;
    if ((editor.body.contentEditable === "true")) {
      _$jscoverage['ui/editor.js'][467]++;
      this.editor.fireEvent("fullscreenchanged", fullscreen);
      _$jscoverage['ui/editor.js'][468]++;
      this.triggerLayout();
    }
  }
}), _updateFullScreen: (function () {
  _$jscoverage['ui/editor.js'][474]++;
  if (this._fullscreen) {
    _$jscoverage['ui/editor.js'][475]++;
    var vpRect = uiUtils.getViewportRect();
    _$jscoverage['ui/editor.js'][476]++;
    this.getDom().style.cssText = ("border:0;position:absolute;left:0;top:" + (this.editor.options.topOffset || 0) + "px;width:" + vpRect.width + "px;height:" + vpRect.height + "px;z-index:" + ((this.getDom().style.zIndex * 1) + 100));
    _$jscoverage['ui/editor.js'][477]++;
    uiUtils.setViewportOffset(this.getDom(), {left: 0, top: (this.editor.options.topOffset || 0)});
    _$jscoverage['ui/editor.js'][478]++;
    this.editor.setHeight((vpRect.height - this.getDom("toolbarbox").offsetHeight - this.getDom("bottombar").offsetHeight - (this.editor.options.topOffset || 0)));
    _$jscoverage['ui/editor.js'][480]++;
    if (browser.gecko) {
      _$jscoverage['ui/editor.js'][481]++;
      try {
        _$jscoverage['ui/editor.js'][482]++;
        window.onresize();
      }
      catch (e) {
      }
    }
  }
}), _updateElementPath: (function () {
  _$jscoverage['ui/editor.js'][491]++;
  var bottom = this.getDom("elementpath"), list;
  _$jscoverage['ui/editor.js'][492]++;
  if ((this.elementPathEnabled && (list = this.editor.queryCommandValue("elementpath")))) {
    _$jscoverage['ui/editor.js'][494]++;
    var buff = [];
    _$jscoverage['ui/editor.js'][495]++;
    for (var i = 0, ci; (ci = list[i]); (i++)) {
      _$jscoverage['ui/editor.js'][496]++;
      buff[i] = this.formatHtml(("<span unselectable=\"on\" onclick=\"$$.editor.execCommand(&quot;elementpath&quot;, &quot;" + i + "&quot;);\">" + ci + "</span>"));
}
    _$jscoverage['ui/editor.js'][498]++;
    bottom.innerHTML = ("<div class=\"edui-editor-breadcrumb\" onmousedown=\"return false;\">" + this.editor.getLang("elementPathTip") + ": " + buff.join(" &gt; ") + "</div>");
  }
  else {
    _$jscoverage['ui/editor.js'][501]++;
    bottom.style.display = "none";
  }
}), disableElementPath: (function () {
  _$jscoverage['ui/editor.js'][505]++;
  var bottom = this.getDom("elementpath");
  _$jscoverage['ui/editor.js'][506]++;
  bottom.innerHTML = "";
  _$jscoverage['ui/editor.js'][507]++;
  bottom.style.display = "none";
  _$jscoverage['ui/editor.js'][508]++;
  this.elementPathEnabled = false;
}), enableElementPath: (function () {
  _$jscoverage['ui/editor.js'][512]++;
  var bottom = this.getDom("elementpath");
  _$jscoverage['ui/editor.js'][513]++;
  bottom.style.display = "";
  _$jscoverage['ui/editor.js'][514]++;
  this.elementPathEnabled = true;
  _$jscoverage['ui/editor.js'][515]++;
  this._updateElementPath();
}), _scale: (function () {
  _$jscoverage['ui/editor.js'][518]++;
  var doc = document, editor = this.editor, editorHolder = editor.container, editorDocument = editor.document, toolbarBox = this.getDom("toolbarbox"), bottombar = this.getDom("bottombar"), scale = this.getDom("scale"), scalelayer = this.getDom("scalelayer");
  _$jscoverage['ui/editor.js'][527]++;
  var isMouseMove = false, position = null, minEditorHeight = 0, minEditorWidth = editor.options.minFrameWidth, pageX = 0, pageY = 0, scaleWidth = 0, scaleHeight = 0;
  _$jscoverage['ui/editor.js'][536]++;
  function down() {
    _$jscoverage['ui/editor.js'][537]++;
    position = domUtils.getXY(editorHolder);
    _$jscoverage['ui/editor.js'][539]++;
    if ((! minEditorHeight)) {
      _$jscoverage['ui/editor.js'][540]++;
      minEditorHeight = (editor.options.minFrameHeight + toolbarBox.offsetHeight + bottombar.offsetHeight);
    }
    _$jscoverage['ui/editor.js'][543]++;
    scalelayer.style.cssText = ("position:absolute;left:0;display:;top:0;background-color:#41ABFF;opacity:0.4;filter: Alpha(opacity=40);width:" + editorHolder.offsetWidth + "px;height:" + editorHolder.offsetHeight + "px;z-index:" + (editor.options.zIndex + 1));
    _$jscoverage['ui/editor.js'][546]++;
    domUtils.on(doc, "mousemove", move);
    _$jscoverage['ui/editor.js'][547]++;
    domUtils.on(editorDocument, "mouseup", up);
    _$jscoverage['ui/editor.js'][548]++;
    domUtils.on(doc, "mouseup", up);
}
  _$jscoverage['ui/editor.js'][551]++;
  var me = this;
  _$jscoverage['ui/editor.js'][553]++;
  this.editor.addListener("fullscreenchanged", (function (e, fullScreen) {
  _$jscoverage['ui/editor.js'][554]++;
  if (fullScreen) {
    _$jscoverage['ui/editor.js'][555]++;
    me.disableScale();
  }
  else {
    _$jscoverage['ui/editor.js'][558]++;
    if (me.editor.options.scaleEnabled) {
      _$jscoverage['ui/editor.js'][559]++;
      me.enableScale();
      _$jscoverage['ui/editor.js'][560]++;
      var tmpNode = me.editor.document.createElement("span");
      _$jscoverage['ui/editor.js'][561]++;
      me.editor.body.appendChild(tmpNode);
      _$jscoverage['ui/editor.js'][562]++;
      me.editor.body.style.height = (Math.max(domUtils.getXY(tmpNode).y, (me.editor.iframe.offsetHeight - 20)) + "px");
      _$jscoverage['ui/editor.js'][563]++;
      domUtils.remove(tmpNode);
    }
  }
}));
  _$jscoverage['ui/editor.js'][567]++;
  function move(event) {
    _$jscoverage['ui/editor.js'][568]++;
    clearSelection();
    _$jscoverage['ui/editor.js'][569]++;
    var e = (event || window.event);
    _$jscoverage['ui/editor.js'][570]++;
    pageX = (e.pageX || (doc.documentElement.scrollLeft + e.clientX));
    _$jscoverage['ui/editor.js'][571]++;
    pageY = (e.pageY || (doc.documentElement.scrollTop + e.clientY));
    _$jscoverage['ui/editor.js'][572]++;
    scaleWidth = (pageX - position.x);
    _$jscoverage['ui/editor.js'][573]++;
    scaleHeight = (pageY - position.y);
    _$jscoverage['ui/editor.js'][575]++;
    if ((scaleWidth >= minEditorWidth)) {
      _$jscoverage['ui/editor.js'][576]++;
      isMouseMove = true;
      _$jscoverage['ui/editor.js'][577]++;
      scalelayer.style.width = (scaleWidth + "px");
    }
    _$jscoverage['ui/editor.js'][579]++;
    if ((scaleHeight >= minEditorHeight)) {
      _$jscoverage['ui/editor.js'][580]++;
      isMouseMove = true;
      _$jscoverage['ui/editor.js'][581]++;
      scalelayer.style.height = (scaleHeight + "px");
    }
}
  _$jscoverage['ui/editor.js'][585]++;
  function up() {
    _$jscoverage['ui/editor.js'][586]++;
    if (isMouseMove) {
      _$jscoverage['ui/editor.js'][587]++;
      isMouseMove = false;
      _$jscoverage['ui/editor.js'][588]++;
      editor.ui._actualFrameWidth = (scalelayer.offsetWidth - 2);
      _$jscoverage['ui/editor.js'][589]++;
      editorHolder.style.width = (editor.ui._actualFrameWidth + "px");
      _$jscoverage['ui/editor.js'][591]++;
      editor.setHeight((scalelayer.offsetHeight - bottombar.offsetHeight - toolbarBox.offsetHeight - 2));
    }
    _$jscoverage['ui/editor.js'][593]++;
    if (scalelayer) {
      _$jscoverage['ui/editor.js'][594]++;
      scalelayer.style.display = "none";
    }
    _$jscoverage['ui/editor.js'][596]++;
    clearSelection();
    _$jscoverage['ui/editor.js'][597]++;
    domUtils.un(doc, "mousemove", move);
    _$jscoverage['ui/editor.js'][598]++;
    domUtils.un(editorDocument, "mouseup", up);
    _$jscoverage['ui/editor.js'][599]++;
    domUtils.un(doc, "mouseup", up);
}
  _$jscoverage['ui/editor.js'][602]++;
  function clearSelection() {
    _$jscoverage['ui/editor.js'][603]++;
    if (browser.ie) {
      _$jscoverage['ui/editor.js'][604]++;
      doc.selection.clear();
    }
    else {
      _$jscoverage['ui/editor.js'][606]++;
      window.getSelection().removeAllRanges();
    }
}
  _$jscoverage['ui/editor.js'][609]++;
  this.enableScale = (function () {
  _$jscoverage['ui/editor.js'][611]++;
  if ((editor.queryCommandState("source") == 1)) {
    _$jscoverage['ui/editor.js'][611]++;
    return;
  }
  _$jscoverage['ui/editor.js'][612]++;
  scale.style.display = "";
  _$jscoverage['ui/editor.js'][613]++;
  this.scaleEnabled = true;
  _$jscoverage['ui/editor.js'][614]++;
  domUtils.on(scale, "mousedown", down);
});
  _$jscoverage['ui/editor.js'][616]++;
  this.disableScale = (function () {
  _$jscoverage['ui/editor.js'][617]++;
  scale.style.display = "none";
  _$jscoverage['ui/editor.js'][618]++;
  this.scaleEnabled = false;
  _$jscoverage['ui/editor.js'][619]++;
  domUtils.un(scale, "mousedown", down);
});
}), isFullScreen: (function () {
  _$jscoverage['ui/editor.js'][623]++;
  return this._fullscreen;
}), postRender: (function () {
  _$jscoverage['ui/editor.js'][626]++;
  UIBase.prototype.postRender.call(this);
  _$jscoverage['ui/editor.js'][627]++;
  for (var i = 0; (i < this.toolbars.length); (i++)) {
    _$jscoverage['ui/editor.js'][628]++;
    this.toolbars[i].postRender();
}
  _$jscoverage['ui/editor.js'][630]++;
  var me = this;
  _$jscoverage['ui/editor.js'][631]++;
  var timerId, domUtils = baidu.editor.dom.domUtils, updateFullScreenTime = (function () {
  _$jscoverage['ui/editor.js'][634]++;
  clearTimeout(timerId);
  _$jscoverage['ui/editor.js'][635]++;
  timerId = setTimeout((function () {
  _$jscoverage['ui/editor.js'][636]++;
  me._updateFullScreen();
}));
});
  _$jscoverage['ui/editor.js'][639]++;
  domUtils.on(window, "resize", updateFullScreenTime);
  _$jscoverage['ui/editor.js'][641]++;
  me.addListener("destroy", (function () {
  _$jscoverage['ui/editor.js'][642]++;
  domUtils.un(window, "resize", updateFullScreenTime);
  _$jscoverage['ui/editor.js'][643]++;
  clearTimeout(timerId);
}));
}), showToolbarMsg: (function (msg, flag) {
  _$jscoverage['ui/editor.js'][647]++;
  this.getDom("toolbarmsg_label").innerHTML = msg;
  _$jscoverage['ui/editor.js'][648]++;
  this.getDom("toolbarmsg").style.display = "";
  _$jscoverage['ui/editor.js'][650]++;
  if ((! flag)) {
    _$jscoverage['ui/editor.js'][651]++;
    var w = this.getDom("upload_dialog");
    _$jscoverage['ui/editor.js'][652]++;
    w.style.display = "none";
  }
}), hideToolbarMsg: (function () {
  _$jscoverage['ui/editor.js'][656]++;
  this.getDom("toolbarmsg").style.display = "none";
}), mapUrl: (function (url) {
  _$jscoverage['ui/editor.js'][659]++;
  return (url? url.replace("~/", (this.editor.options.UEDITOR_HOME_URL || "")): "");
}), triggerLayout: (function () {
  _$jscoverage['ui/editor.js'][662]++;
  var dom = this.getDom();
  _$jscoverage['ui/editor.js'][663]++;
  if ((dom.style.zoom == "1")) {
    _$jscoverage['ui/editor.js'][664]++;
    dom.style.zoom = "100%";
  }
  else {
    _$jscoverage['ui/editor.js'][666]++;
    dom.style.zoom = "1";
  }
})};
  _$jscoverage['ui/editor.js'][670]++;
  utils.inherits(EditorUI, baidu.editor.ui.UIBase);
  _$jscoverage['ui/editor.js'][673]++;
  var instances = {};
  _$jscoverage['ui/editor.js'][676]++;
  UE.ui.Editor = (function (options) {
  _$jscoverage['ui/editor.js'][677]++;
  var editor = new (UE.Editor)(options);
  _$jscoverage['ui/editor.js'][678]++;
  editor.options.editor = editor;
  _$jscoverage['ui/editor.js'][679]++;
  utils.loadFile(document, {href: (editor.options.themePath + editor.options.theme + "/_css/ueditor.css"), tag: "link", type: "text/css", rel: "stylesheet"});
  _$jscoverage['ui/editor.js'][686]++;
  var oldRender = editor.render;
  _$jscoverage['ui/editor.js'][687]++;
  editor.render = (function (holder) {
  _$jscoverage['ui/editor.js'][688]++;
  if ((holder.constructor === String)) {
    _$jscoverage['ui/editor.js'][689]++;
    editor.key = holder;
    _$jscoverage['ui/editor.js'][690]++;
    instances[holder] = editor;
  }
  _$jscoverage['ui/editor.js'][692]++;
  utils.domReady((function () {
  _$jscoverage['ui/editor.js'][693]++;
  (editor.langIsReady? renderUI(): editor.addListener("langReady", renderUI));
  _$jscoverage['ui/editor.js'][694]++;
  function renderUI() {
    _$jscoverage['ui/editor.js'][695]++;
    editor.setOpt({labelMap: (editor.options.labelMap || editor.getLang("labelMap"))});
    _$jscoverage['ui/editor.js'][698]++;
    new EditorUI(editor.options);
    _$jscoverage['ui/editor.js'][699]++;
    if (holder) {
      _$jscoverage['ui/editor.js'][700]++;
      if ((holder.constructor === String)) {
        _$jscoverage['ui/editor.js'][701]++;
        holder = document.getElementById(holder);
      }
      _$jscoverage['ui/editor.js'][703]++;
      (holder && holder.getAttribute("name") && (editor.options.textarea = holder.getAttribute("name")));
      _$jscoverage['ui/editor.js'][704]++;
      if ((holder && /script|textarea/gi.test(holder.tagName))) {
        _$jscoverage['ui/editor.js'][705]++;
        var newDiv = document.createElement("div");
        _$jscoverage['ui/editor.js'][706]++;
        holder.parentNode.insertBefore(newDiv, holder);
        _$jscoverage['ui/editor.js'][707]++;
        var cont = (holder.value || holder.innerHTML);
        _$jscoverage['ui/editor.js'][708]++;
        editor.options.initialContent = (/^[\t\r\n ]*$/.test(cont)? editor.options.initialContent: cont.replace(/>[\n\r\t]+([ ]{4})+/g, ">").replace(/[\n\r\t]+([ ]{4})+</g, "<").replace(/>[\n\r\t]+</g, "><"));
        _$jscoverage['ui/editor.js'][712]++;
        (holder.className && (newDiv.className = holder.className));
        _$jscoverage['ui/editor.js'][713]++;
        (holder.style.cssText && (newDiv.style.cssText = holder.style.cssText));
        _$jscoverage['ui/editor.js'][714]++;
        if (/textarea/i.test(holder.tagName)) {
          _$jscoverage['ui/editor.js'][715]++;
          editor.textarea = holder;
          _$jscoverage['ui/editor.js'][716]++;
          editor.textarea.style.display = "none";
        }
        else {
          _$jscoverage['ui/editor.js'][719]++;
          holder.parentNode.removeChild(holder);
          _$jscoverage['ui/editor.js'][720]++;
          (holder.id && (newDiv.id = holder.id));
        }
        _$jscoverage['ui/editor.js'][722]++;
        holder = newDiv;
        _$jscoverage['ui/editor.js'][723]++;
        holder.innerHTML = "";
      }
    }
    _$jscoverage['ui/editor.js'][727]++;
    domUtils.addClass(holder, ("edui-" + editor.options.theme));
    _$jscoverage['ui/editor.js'][728]++;
    editor.ui.render(holder);
    _$jscoverage['ui/editor.js'][729]++;
    var opt = editor.options;
    _$jscoverage['ui/editor.js'][731]++;
    editor.container = editor.ui.getDom();
    _$jscoverage['ui/editor.js'][732]++;
    var parents = domUtils.findParents(holder, true);
    _$jscoverage['ui/editor.js'][733]++;
    var displays = [];
    _$jscoverage['ui/editor.js'][734]++;
    for (var i = 0, ci; (ci = parents[i]); (i++)) {
      _$jscoverage['ui/editor.js'][735]++;
      displays[i] = ci.style.display;
      _$jscoverage['ui/editor.js'][736]++;
      ci.style.display = "block";
}
    _$jscoverage['ui/editor.js'][738]++;
    if (opt.initialFrameWidth) {
      _$jscoverage['ui/editor.js'][739]++;
      opt.minFrameWidth = opt.initialFrameWidth;
    }
    else {
      _$jscoverage['ui/editor.js'][741]++;
      opt.minFrameWidth = (opt.initialFrameWidth = holder.offsetWidth);
    }
    _$jscoverage['ui/editor.js'][743]++;
    if (opt.initialFrameHeight) {
      _$jscoverage['ui/editor.js'][744]++;
      opt.minFrameHeight = opt.initialFrameHeight;
    }
    else {
      _$jscoverage['ui/editor.js'][746]++;
      opt.initialFrameHeight = (opt.minFrameHeight = holder.offsetHeight);
    }
    _$jscoverage['ui/editor.js'][748]++;
    for (var i = 0, ci = ci; (ci = parents[i]); (i++)) {
      _$jscoverage['ui/editor.js'][749]++;
      ci.style.display = displays[i];
}
    _$jscoverage['ui/editor.js'][753]++;
    if (holder.style.height) {
      _$jscoverage['ui/editor.js'][754]++;
      holder.style.height = "";
    }
    _$jscoverage['ui/editor.js'][756]++;
    editor.container.style.width = (opt.initialFrameWidth + (/%$/.test(opt.initialFrameWidth)? "": "px"));
    _$jscoverage['ui/editor.js'][757]++;
    editor.container.style.zIndex = opt.zIndex;
    _$jscoverage['ui/editor.js'][758]++;
    oldRender.call(editor, editor.ui.getDom("iframeholder"));
}
}));
});
  _$jscoverage['ui/editor.js'][763]++;
  return editor;
});
  _$jscoverage['ui/editor.js'][788]++;
  UE.getEditor = (function (id, opt) {
  _$jscoverage['ui/editor.js'][789]++;
  var editor = instances[id];
  _$jscoverage['ui/editor.js'][790]++;
  if ((! editor)) {
    _$jscoverage['ui/editor.js'][791]++;
    editor = (instances[id] = new (UE.ui.Editor)(opt));
    _$jscoverage['ui/editor.js'][792]++;
    editor.render(id);
  }
  _$jscoverage['ui/editor.js'][794]++;
  return editor;
});
  _$jscoverage['ui/editor.js'][798]++;
  UE.delEditor = (function (id) {
  _$jscoverage['ui/editor.js'][799]++;
  var editor;
  _$jscoverage['ui/editor.js'][800]++;
  if ((editor = instances[id])) {
    _$jscoverage['ui/editor.js'][801]++;
    (editor.key && editor.destroy());
    _$jscoverage['ui/editor.js'][802]++;
    (delete instances[id]);
  }
});
})();
