function $AdfEditingAgent$$() {
  this.Init()
}
$goog$exportSymbol$$("AdfEditingAgent", $AdfEditingAgent$$);
$AdfObject$$.$createSubclass$($AdfEditingAgent$$);
$AdfEditingAgent$$.$getInstance$ = function $$AdfEditingAgent$$$$getInstance$$() {
  if($AdfEditingAgent$$.$_instance$ == $JSCompiler_alias_VOID$$) {
    if($AdfPage$$.$PAGE$.$isAttachmentMode$()) {
      $AdfEditingAgent$$.$_instance$ = new $AdfGeckoEditingAgent$$
    }else {
      switch($AdfAgent$$.$AGENT$.$getPlatform$()) {
        case $AdfAgent$$.$GECKO_PLATFORM$:
          $AdfEditingAgent$$.$_instance$ = new $AdfGeckoEditingAgent$$;
          break;
        case $AdfAgent$$.$IE_PLATFORM$:
          11 <= $AdfAgent$$.$AGENT$.$getVersion$() ? $AdfEditingAgent$$.$_instance$ = new $AdfIE11EditingAgent$$ : $AdfEditingAgent$$.$_instance$ = new $AdfIEEditingAgent$$;
          break;
        case $AdfAgent$$.$WEBKIT_PLATFORM$:
          $AdfEditingAgent$$.$_instance$ = new $AdfSafariEditingAgent$$;
          break;
        default:
          $AdfEditingAgent$$.$_instance$ = new $AdfEditingAgent$$
      }
    }
  }
  return $AdfEditingAgent$$.$_instance$
};
$goog$exportSymbol$$("AdfEditingAgent.getInstance", $AdfEditingAgent$$.$getInstance$);
$AdfEditingAgent$$.prototype.$toBrowserSpecificCommand$ = $JSCompiler_identityFn$$();
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.toBrowserSpecificCommand", {$toBrowserSpecificCommand$:$AdfEditingAgent$$.prototype.$toBrowserSpecificCommand$});
$AdfEditingAgent$$.prototype.$getContentWindow$ = function $$AdfEditingAgent$$$$$getContentWindow$$($inlineFrame$$) {
  $AdfAssert$$.$assertDomElement$($inlineFrame$$, "IFRAME");
  $AdfAssert$$.assert($inlineFrame$$.contentWindow, "Unexpected null contentWindow.");
  return $inlineFrame$$.contentWindow
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getContentWindow", {$getContentWindow$:$AdfEditingAgent$$.prototype.$getContentWindow$});
$AdfEditingAgent$$.prototype.$getColor$ = function $$AdfEditingAgent$$$$$getColor$$($value$$86$$) {
  var $converter$$1$$ = $JSCompiler_alias_NULL$$, $converter$$1$$ = $value$$86$$.indexOf && 0 === $value$$86$$.indexOf("#") ? new TrColorConverter(["#RRGGBB"], $JSCompiler_alias_FALSE$$) : new TrColorConverter(["'rgb'(r, g, b)", "'rgb'(r,g,b)"], $JSCompiler_alias_FALSE$$);
  try {
    $value$$86$$ = $converter$$1$$.getAsObject($value$$86$$)
  }catch($e$$36$$) {
    $value$$86$$ = $JSCompiler_alias_NULL$$
  }
  return $value$$86$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getColor", {$getColor$:$AdfEditingAgent$$.prototype.$getColor$});
$AdfEditingAgent$$.prototype.$getInlineFrameDocument$ = function $$AdfEditingAgent$$$$$getInlineFrameDocument$$($contentWindow_inlineFrame$$1$$) {
  $AdfAssert$$.$assertDomElement$($contentWindow_inlineFrame$$1$$, "IFRAME");
  $contentWindow_inlineFrame$$1$$ = this.$getContentWindow$($contentWindow_inlineFrame$$1$$);
  $AdfAssert$$.assert($contentWindow_inlineFrame$$1$$, "Unexpected null contentWindow.");
  $AdfAssert$$.assert($contentWindow_inlineFrame$$1$$.document, "Unexpected null contentWindow document.");
  return $contentWindow_inlineFrame$$1$$.document
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getInlineFrameDocument", {$getInlineFrameDocument$:$AdfEditingAgent$$.prototype.$getInlineFrameDocument$});
$AdfEditingAgent$$.prototype.execCommand = function $$AdfEditingAgent$$$$execCommand$($JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$, $component$$inline_343_inlineFrame$$2_inputComp$$inline_348$$, $command$$1_editingAgent$$inline_345$$, $currentLinkURL_htmlFragment_value$$87$$) {
  var $contNode$$inline_346_doc$$6$$;
  "insert" != $command$$1_editingAgent$$inline_345$$ && ($AdfAssert$$.$assertDomElement$($component$$inline_343_inlineFrame$$2_inputComp$$inline_348$$, "IFRAME"), $contNode$$inline_346_doc$$6$$ = $AdfEditingAgent$$.$getInstance$().$getInlineFrameDocument$($component$$inline_343_inlineFrame$$2_inputComp$$inline_348$$));
  if($currentLinkURL_htmlFragment_value$$87$$ == $JSCompiler_alias_NULL$$) {
    switch($command$$1_editingAgent$$inline_345$$) {
      case "createlink":
        $currentLinkURL_htmlFragment_value$$87$$ = $JSCompiler_StaticMethods__getLinkURLForSelection$$(this, $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$, $component$$inline_343_inlineFrame$$2_inputComp$$inline_348$$);
        if("popup" === $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$.getToolbarDisplay()) {
          $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$ = $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$.$getPeer$();
          $component$$inline_343_inlineFrame$$2_inputComp$$inline_348$$ = $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$.$getComponent$();
          $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$ = $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$.$_lastSelectionRange$;
          $command$$1_editingAgent$$inline_345$$ = $AdfEditingAgent$$.$getInstance$();
          if(!$JSCompiler_StaticMethods__emptySelection$$($JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$)) {
            if($contNode$$inline_346_doc$$6$$ = $JSCompiler_StaticMethods__getToolbarPopupInputContainer$$($component$$inline_343_inlineFrame$$2_inputComp$$inline_348$$), $AdfDomUtils$$.$isVisible$($contNode$$inline_346_doc$$6$$)) {
              $AdfDomUtils$$.setVisible($contNode$$inline_346_doc$$6$$, $JSCompiler_alias_FALSE$$)
            }else {
              var $dtComp$$inline_347_label$$8$$ = $JSCompiler_StaticMethods__getToolbarPopupDisplayedTextComp$$($component$$inline_343_inlineFrame$$2_inputComp$$inline_348$$);
              $component$$inline_343_inlineFrame$$2_inputComp$$inline_348$$ = $JSCompiler_StaticMethods__getToolbarPopupURLComp$$($component$$inline_343_inlineFrame$$2_inputComp$$inline_348$$);
              $dtComp$$inline_347_label$$8$$.setValue($command$$1_editingAgent$$inline_345$$.$getSelectionRangeString$($JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$));
              $component$$inline_343_inlineFrame$$2_inputComp$$inline_348$$.setValue($currentLinkURL_htmlFragment_value$$87$$);
              $AdfDomUtils$$.setVisible($contNode$$inline_346_doc$$6$$, $JSCompiler_alias_TRUE$$)
            }
          }
          return
        }
        $dtComp$$inline_347_label$$8$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$().$getTranslatedString$("af_richTextEditor.LABEL_SPECIFY_THE_URL");
        $currentLinkURL_htmlFragment_value$$87$$ = prompt($dtComp$$inline_347_label$$8$$, $currentLinkURL_htmlFragment_value$$87$$);
        if($currentLinkURL_htmlFragment_value$$87$$ == $JSCompiler_alias_NULL$$ || "" == $currentLinkURL_htmlFragment_value$$87$$) {
          return
        }
    }
  }
  switch($command$$1_editingAgent$$inline_345$$) {
    case "insert":
      $currentLinkURL_htmlFragment_value$$87$$ == $JSCompiler_alias_NULL$$ && ($currentLinkURL_htmlFragment_value$$87$$ = "");
      this.$insertHtmlAtSelection$($component$$inline_343_inlineFrame$$2_inputComp$$inline_348$$, $currentLinkURL_htmlFragment_value$$87$$);
      break;
    case "moderichtext":
      $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$.$getPeer$().$setCodeEditingMode$($JSCompiler_alias_FALSE$$);
      break;
    case "modecode":
      $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$.$getPeer$().$setCodeEditingMode$($JSCompiler_alias_TRUE$$);
      break;
    case "undo":
      this.$ExecuteUndo$($JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$, $component$$inline_343_inlineFrame$$2_inputComp$$inline_348$$, $contNode$$inline_346_doc$$6$$);
      break;
    case "redo":
      this.$ExecuteRedo$($JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$, $component$$inline_343_inlineFrame$$2_inputComp$$inline_348$$, $contNode$$inline_346_doc$$6$$);
      break;
    case "createlink":
      this.$CreateLink$($JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_341_component$$178_selRange$$inline_344$$, $contNode$$inline_346_doc$$6$$, $currentLinkURL_htmlFragment_value$$87$$);
      break;
    default:
      $JSCompiler_StaticMethods__executeCommand$$(this, $contNode$$inline_346_doc$$6$$, $command$$1_editingAgent$$inline_345$$, $currentLinkURL_htmlFragment_value$$87$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.execCommand", {execCommand:$AdfEditingAgent$$.prototype.execCommand});
$AdfEditingAgent$$.prototype.$isEmptySelection$ = function $$AdfEditingAgent$$$$$isEmptySelection$$($inlineFrame$$3$$) {
  $AdfAssert$$.$assertDomElement$($inlineFrame$$3$$, "IFRAME");
  doc = $AdfEditingAgent$$.$getInstance$().$getInlineFrameDocument$($inlineFrame$$3$$);
  return doc.getSelection && "" == doc.getSelection() ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.isEmptySelection", {$isEmptySelection$:$AdfEditingAgent$$.prototype.$isEmptySelection$});
$AdfEditingAgent$$.prototype.queryCommandEnabled = function $$AdfEditingAgent$$$$queryCommandEnabled$($component$$179$$, $inlineFrame$$4$$, $command$$2$$) {
  $AdfAssert$$.$assertString$($command$$2$$);
  var $result$$4$$ = $JSCompiler_alias_FALSE$$;
  switch($command$$2$$) {
    case "insert":
    ;
    case "moderichtext":
    ;
    case "modecode":
      $result$$4$$ = $JSCompiler_alias_TRUE$$;
      break;
    case "undo":
      $result$$4$$ = this.$QueryUndoEnabled$($component$$179$$, $inlineFrame$$4$$);
      break;
    case "redo":
      $result$$4$$ = this.$QueryRedoEnabled$($component$$179$$, $inlineFrame$$4$$);
      break;
    default:
      $result$$4$$ = $JSCompiler_StaticMethods__queryCommandEnabled$$(this, $inlineFrame$$4$$, $command$$2$$)
  }
  return $result$$4$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.queryCommandEnabled", {queryCommandEnabled:$AdfEditingAgent$$.prototype.queryCommandEnabled});
$AdfEditingAgent$$.prototype.$setInlineFrameContentEditable$ = function $$AdfEditingAgent$$$$$setInlineFrameContentEditable$$($doc$$7_inlineFrame$$5$$) {
  $AdfAssert$$.$assertDomElement$($doc$$7_inlineFrame$$5$$, "IFRAME");
  $doc$$7_inlineFrame$$5$$ = this.$getInlineFrameDocument$($doc$$7_inlineFrame$$5$$);
  this.$useContentEditable$() ? $doc$$7_inlineFrame$$5$$.body.contentEditable = $JSCompiler_alias_TRUE$$ : $doc$$7_inlineFrame$$5$$.designMode = "on";
  return $JSCompiler_alias_TRUE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.setInlineFrameContentEditable", {$setInlineFrameContentEditable$:$AdfEditingAgent$$.prototype.$setInlineFrameContentEditable$});
$AdfEditingAgent$$.prototype.$useContentEditable$ = $JSCompiler_returnArg$$($JSCompiler_alias_FALSE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.useContentEditable", {$useContentEditable$:$AdfEditingAgent$$.prototype.$useContentEditable$});
$AdfEditingAgent$$.prototype.$isDesignMode$ = function $$AdfEditingAgent$$$$$isDesignMode$$($doc$$8_inlineFrame$$6_mode$$8$$) {
  $doc$$8_inlineFrame$$6_mode$$8$$ = this.$getInlineFrameDocument$($doc$$8_inlineFrame$$6_mode$$8$$);
  if(this.$useContentEditable$()) {
    return $doc$$8_inlineFrame$$6_mode$$8$$.body.contentEditable == $JSCompiler_alias_TRUE$$
  }
  ($doc$$8_inlineFrame$$6_mode$$8$$ = $doc$$8_inlineFrame$$6_mode$$8$$.designMode) && ($doc$$8_inlineFrame$$6_mode$$8$$ = $doc$$8_inlineFrame$$6_mode$$8$$.toLowerCase());
  return"on" == $doc$$8_inlineFrame$$6_mode$$8$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.isDesignMode", {$isDesignMode$:$AdfEditingAgent$$.prototype.$isDesignMode$});
$AdfEditingAgent$$.prototype.$isDesignModeReloadingFrame$ = $JSCompiler_returnArg$$($JSCompiler_alias_FALSE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.isDesignModeReloadingFrame", {$isDesignModeReloadingFrame$:$AdfEditingAgent$$.prototype.$isDesignModeReloadingFrame$});
$AdfEditingAgent$$.prototype.queryCommandValue = function $$AdfEditingAgent$$$$queryCommandValue$($inlineFrame$$7$$, $commandIdentifier$$) {
  $commandIdentifier$$ = this.$toBrowserSpecificCommand$($commandIdentifier$$);
  var $result$$5$$ = $JSCompiler_alias_FALSE$$;
  try {
    $result$$5$$ = this.$getInlineFrameDocument$($inlineFrame$$7$$).queryCommandValue($commandIdentifier$$)
  }catch($e$$37$$) {
    $AdfLogger$$.$LOGGER$.severe("queryCommandValue: command not supported (", $commandIdentifier$$, ").", $e$$37$$)
  }
  return $result$$5$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.queryCommandValue", {queryCommandValue:$AdfEditingAgent$$.prototype.queryCommandValue});
$AdfEditingAgent$$.prototype.queryCommandState = function $$AdfEditingAgent$$$$queryCommandState$($inlineFrame$$8$$, $commandIdentifier$$1$$) {
  $AdfAssert$$.$assertString$($commandIdentifier$$1$$);
  if(!("indent" == $commandIdentifier$$1$$ || "outdent" == $commandIdentifier$$1$$)) {
    if("forecolor" == $commandIdentifier$$1$$ || "backcolor" == $commandIdentifier$$1$$ || "fontsize" == $commandIdentifier$$1$$ || "fontname" == $commandIdentifier$$1$$) {
      return this.queryCommandValue($inlineFrame$$8$$, $commandIdentifier$$1$$)
    }
    var $result$$6$$ = $JSCompiler_alias_FALSE$$;
    $commandIdentifier$$1$$ = this.$toBrowserSpecificCommand$($commandIdentifier$$1$$);
    try {
      $result$$6$$ = this.$getInlineFrameDocument$($inlineFrame$$8$$).queryCommandState($commandIdentifier$$1$$)
    }catch($e$$38$$) {
      $AdfLogger$$.$LOGGER$.severe("queryCommandState: command not supported (", $commandIdentifier$$1$$, ").", $e$$38$$)
    }
    return $result$$6$$
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.queryCommandState", {queryCommandState:$AdfEditingAgent$$.prototype.queryCommandState});
$AdfEditingAgent$$.prototype.$setRTL$ = function $$AdfEditingAgent$$$$$setRTL$$($bodyNode_doc$$9$$) {
  $AdfAssert$$.assert($bodyNode_doc$$9$$);
  $bodyNode_doc$$9$$ = $bodyNode_doc$$9$$.body;
  $AdfAssert$$.$assertDomElement$($bodyNode_doc$$9$$, "BODY");
  $bodyNode_doc$$9$$.setAttribute("dir", $AdfPage$$.$PAGE$.$getLocaleContext$().$isRightToLeft$() ? "rtl" : "ltr")
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.setRTL", {$setRTL$:$AdfEditingAgent$$.prototype.$setRTL$});
$AdfEditingAgent$$.prototype.$queryCommandIndeterminate$ = function $$AdfEditingAgent$$$$$queryCommandIndeterminate$$($inlineFrame$$9$$, $commandIdentifier$$2$$) {
  $commandIdentifier$$2$$ = this.$toBrowserSpecificCommand$($commandIdentifier$$2$$);
  var $result$$7$$ = $JSCompiler_alias_FALSE$$;
  try {
    $result$$7$$ = this.$getInlineFrameDocument$($inlineFrame$$9$$).queryCommandIndeterm($commandIdentifier$$2$$)
  }catch($e$$39$$) {
    $AdfLogger$$.$LOGGER$.severe("queryCommandIndeterminate: command not supported (", $commandIdentifier$$2$$, ").", $e$$39$$)
  }
  return $result$$7$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.queryCommandIndeterminate", {$queryCommandIndeterminate$:$AdfEditingAgent$$.prototype.$queryCommandIndeterminate$});
$AdfEditingAgent$$.prototype.$getFocusBlurElement$ = $JSCompiler_identityFn$$();
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getFocusBlurElement", {$getFocusBlurElement$:$AdfEditingAgent$$.prototype.$getFocusBlurElement$});
$AdfEditingAgent$$.prototype.$getSelectionRange$ = function $$AdfEditingAgent$$$$$getSelectionRange$$($inlineFrame$$11$$) {
  return this.$getInlineFrameDocument$($inlineFrame$$11$$).selection.createRange()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getSelectionRange", {$getSelectionRange$:$AdfEditingAgent$$.prototype.$getSelectionRange$});
$AdfEditingAgent$$.prototype.$getInlineFrameContent$ = function $$AdfEditingAgent$$$$$getInlineFrameContent$$($inlineFrame$$12$$) {
  return this.$getInlineFrameDocument$($inlineFrame$$12$$).body.innerHTML
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getInlineFrameContent", {$getInlineFrameContent$:$AdfEditingAgent$$.prototype.$getInlineFrameContent$});
$AdfEditingAgent$$.prototype.$setInlineFrameContent$ = function $$AdfEditingAgent$$$$$setInlineFrameContent$$($inlineFrame$$13$$, $newContent$$) {
  this.$getInlineFrameDocument$($inlineFrame$$13$$).body.innerHTML = $newContent$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.setInlineFrameContent", {$setInlineFrameContent$:$AdfEditingAgent$$.prototype.$setInlineFrameContent$});
$AdfEditingAgent$$.prototype.$getDefaultContent$ = $JSCompiler_returnArg$$("");
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getDefaultContent", {$getDefaultContent$:$AdfEditingAgent$$.prototype.$getDefaultContent$});
$AdfEditingAgent$$.prototype.setSelectionRange = function $$AdfEditingAgent$$$$setSelectionRange$($inlineFrame$$14$$, $range$$5$$) {
  $range$$5$$.select()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.setSelectionRange", {setSelectionRange:$AdfEditingAgent$$.prototype.setSelectionRange});
$AdfEditingAgent$$.prototype.$insertHtmlAtSelection$ = function $$AdfEditingAgent$$$$$insertHtmlAtSelection$$($inlineFrame$$15$$, $htmlFragment$$1$$) {
  if("TEXTAREA" == $inlineFrame$$15$$.nodeName || "INPUT" == $inlineFrame$$15$$.nodeName) {
    var $newStart_selectionRange$$ = $inlineFrame$$15$$.selectionStart + $htmlFragment$$1$$.length;
    $inlineFrame$$15$$.value = $inlineFrame$$15$$.value.substr(0, $inlineFrame$$15$$.selectionStart) + $htmlFragment$$1$$ + $inlineFrame$$15$$.value.substr($inlineFrame$$15$$.selectionEnd);
    $inlineFrame$$15$$.selectionStart = $newStart_selectionRange$$;
    $inlineFrame$$15$$.selectionEnd = $newStart_selectionRange$$
  }else {
    if($newStart_selectionRange$$ = this.$getSelectionRange$($inlineFrame$$15$$), $newStart_selectionRange$$ == $JSCompiler_alias_NULL$$) {
      $AdfLogger$$.$LOGGER$.severe("Unexpected null selection for insert command.")
    }else {
      0 < $newStart_selectionRange$$.toString().length && $newStart_selectionRange$$.deleteContents();
      $newStart_selectionRange$$.cloneRange();
      var $div_nodes$$ = document.createElement("div");
      $div_nodes$$.innerHTML = $htmlFragment$$1$$;
      for(var $div_nodes$$ = $div_nodes$$.childNodes, $lastNode$$ = $JSCompiler_alias_NULL$$, $i$$56$$ = $div_nodes$$.length - 1;0 <= $i$$56$$;$i$$56$$--) {
        var $newNode$$1$$ = $div_nodes$$[$i$$56$$];
        $lastNode$$ == $JSCompiler_alias_NULL$$ && ($lastNode$$ = $newNode$$1$$);
        $newStart_selectionRange$$.insertNode($newNode$$1$$)
      }
      $lastNode$$ != $JSCompiler_alias_NULL$$ && ($newStart_selectionRange$$.selectNode($lastNode$$), $newStart_selectionRange$$.setStartAfter($lastNode$$))
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.insertHtmlAtSelection", {$insertHtmlAtSelection$:$AdfEditingAgent$$.prototype.$insertHtmlAtSelection$});
$AdfEditingAgent$$.prototype.$handleTab$ = $JSCompiler_emptyFn$$();
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.handleTab", {$handleTab$:$AdfEditingAgent$$.prototype.$handleTab$});
$AdfEditingAgent$$.prototype.$updateValueHistory$ = $JSCompiler_emptyFn$$();
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.updateValueHistory", {$updateValueHistory$:$AdfEditingAgent$$.prototype.$updateValueHistory$});
$AdfEditingAgent$$.prototype.$ExecuteUndo$ = function $$AdfEditingAgent$$$$$ExecuteUndo$$($component$$181$$, $inlineFrame$$18$$, $doc$$10$$) {
  $JSCompiler_StaticMethods__executeCommand$$(this, $doc$$10$$, "undo", $JSCompiler_alias_NULL$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.ExecuteUndo", {$ExecuteUndo$:$AdfEditingAgent$$.prototype.$ExecuteUndo$});
$AdfEditingAgent$$.prototype.$ExecuteRedo$ = function $$AdfEditingAgent$$$$$ExecuteRedo$$($component$$182$$, $inlineFrame$$19$$, $doc$$11$$) {
  $JSCompiler_StaticMethods__executeCommand$$(this, $doc$$11$$, "redo", $JSCompiler_alias_NULL$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.ExecuteRedo", {$ExecuteRedo$:$AdfEditingAgent$$.prototype.$ExecuteRedo$});
$AdfEditingAgent$$.prototype.$CreateLink$ = function $$AdfEditingAgent$$$$$CreateLink$$($component$$183$$, $doc$$12$$, $value$$88$$) {
  $JSCompiler_StaticMethods__executeCommand$$(this, $doc$$12$$, "createlink", $value$$88$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.CreateLink", {$CreateLink$:$AdfEditingAgent$$.prototype.$CreateLink$});
$AdfEditingAgent$$.prototype.$QueryUndoEnabled$ = function $$AdfEditingAgent$$$$$QueryUndoEnabled$$($component$$184$$, $inlineFrame$$20$$) {
  return $JSCompiler_StaticMethods__queryCommandEnabled$$(this, $inlineFrame$$20$$, "undo")
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.QueryUndoEnabled", {$QueryUndoEnabled$:$AdfEditingAgent$$.prototype.$QueryUndoEnabled$});
$AdfEditingAgent$$.prototype.$QueryRedoEnabled$ = function $$AdfEditingAgent$$$$$QueryRedoEnabled$$($component$$185$$, $inlineFrame$$21$$) {
  return $JSCompiler_StaticMethods__queryCommandEnabled$$(this, $inlineFrame$$21$$, "redo")
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.QueryRedoEnabled", {$QueryRedoEnabled$:$AdfEditingAgent$$.prototype.$QueryRedoEnabled$});
$AdfEditingAgent$$.prototype.$IsNodeWrappingRange$ = function $$AdfEditingAgent$$$$$IsNodeWrappingRange$$($range$$6$$, $node$$19$$) {
  var $isNodeEndSameOrAfterRange_nodeRange$$ = $node$$19$$.ownerDocument.createRange();
  try {
    $isNodeEndSameOrAfterRange_nodeRange$$.selectNode($node$$19$$)
  }catch($e$$40$$) {
    return $AdfLogger$$.$LOGGER$.$logErrorAsInfo$($e$$40$$, "Unable to select node in range"), $JSCompiler_alias_FALSE$$
  }
  var $isNodeStartSameOrBeforeRange$$ = -1 != $range$$6$$.compareBoundaryPoints(Range.START_TO_START, $isNodeEndSameOrAfterRange_nodeRange$$), $isNodeEndSameOrAfterRange_nodeRange$$ = 1 != $range$$6$$.compareBoundaryPoints(Range.END_TO_END, $isNodeEndSameOrAfterRange_nodeRange$$);
  return $isNodeStartSameOrBeforeRange$$ && $isNodeEndSameOrAfterRange_nodeRange$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.IsNodeWrappingRange", {$IsNodeWrappingRange$:$AdfEditingAgent$$.prototype.$IsNodeWrappingRange$});
function $JSCompiler_StaticMethods__executeCommand$$($JSCompiler_StaticMethods__executeCommand$self_browserSpecificCommand$$, $doc$$13$$, $command$$3$$, $value$$89$$) {
  $JSCompiler_StaticMethods__executeCommand$self_browserSpecificCommand$$ = $JSCompiler_StaticMethods__executeCommand$self_browserSpecificCommand$$.$toBrowserSpecificCommand$($command$$3$$);
  try {
    $doc$$13$$.execCommand($JSCompiler_StaticMethods__executeCommand$self_browserSpecificCommand$$, $JSCompiler_alias_NULL$$, $value$$89$$)
  }catch($e$$41$$) {
    $AdfLogger$$.$LOGGER$.severe("execCommand[", $command$$3$$, ",", $value$$89$$, "] failed with the following exception: ", $e$$41$$)
  }
}
function $JSCompiler_StaticMethods__queryCommandEnabled$$($JSCompiler_StaticMethods__queryCommandEnabled$self$$, $doc$$14_inlineFrame$$22$$, $command$$4$$) {
  var $result$$8$$ = $JSCompiler_alias_FALSE$$;
  $doc$$14_inlineFrame$$22$$ = $JSCompiler_StaticMethods__queryCommandEnabled$self$$.$getInlineFrameDocument$($doc$$14_inlineFrame$$22$$);
  $command$$4$$ = $JSCompiler_StaticMethods__queryCommandEnabled$self$$.$toBrowserSpecificCommand$($command$$4$$);
  try {
    $result$$8$$ = $doc$$14_inlineFrame$$22$$.queryCommandEnabled($command$$4$$)
  }catch($e$$42$$) {
    $AdfLogger$$.$LOGGER$.severe("queryCommandEnabled failed with the following exception: [", $command$$4$$, "]: ", $e$$42$$)
  }
  return $result$$8$$
}
function $JSCompiler_StaticMethods__getLinkURLForSelection$$($JSCompiler_StaticMethods__getLinkURLForSelection$self$$, $component$$188_selectionRange$$1$$, $inlineFrame$$23_links$$) {
  $AdfAssert$$.$assertDomElement$($inlineFrame$$23_links$$, "IFRAME");
  $inlineFrame$$23_links$$ = $JSCompiler_StaticMethods__getLinkURLForSelection$self$$.$getInlineFrameDocument$($inlineFrame$$23_links$$).getElementsByTagName("a");
  $component$$188_selectionRange$$1$$ = $component$$188_selectionRange$$1$$.$getPeer$().$getSelectionRange$($component$$188_selectionRange$$1$$);
  for(var $linkURLForSelection$$ = "about:blank", $i$$57$$ = 0;$i$$57$$ < $inlineFrame$$23_links$$.length;$i$$57$$++) {
    if($JSCompiler_StaticMethods__getLinkURLForSelection$self$$.$IsNodeWrappingRange$($component$$188_selectionRange$$1$$, $inlineFrame$$23_links$$[$i$$57$$])) {
      $linkURLForSelection$$ = $inlineFrame$$23_links$$[$i$$57$$].href;
      break
    }
  }
  return $linkURLForSelection$$
}
$AdfEditingAgent$$.prototype.$getSelectionRangeString$ = function $$AdfEditingAgent$$$$$getSelectionRangeString$$($selectionRange$$2$$) {
  return $selectionRange$$2$$ ? $selectionRange$$2$$.toString() : ""
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getSelectionRangeString", {$getSelectionRangeString$:$AdfEditingAgent$$.prototype.$getSelectionRangeString$});
