var $AdfDhtmlRichTextEditorPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfDhtmlRichTextEditorBasePeer$$, "AdfDhtmlRichTextEditorPeer", !1);
$goog$exportSymbol$$("AdfDhtmlRichTextEditorPeer", $AdfDhtmlRichTextEditorPeer$$);
$AdfDhtmlRichTextEditorPeer$$.$InitSubclass$ = function $$AdfDhtmlRichTextEditorPeer$$$$InitSubclass$$() {
  $AdfDhtmlRichTextEditorBasePeer$$.$InitSubclass$.call(this);
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfActionEvent$$.$ACTION_EVENT_TYPE$, $AdfUIInputEvent$$.$CLICK_EVENT_TYPE$, $AdfUIInputEvent$$.$MOUSE_DOWN_EVENT_TYPE$, $AdfUIInputEvent$$.$MOUSE_UP_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_UP_EVENT_TYPE$);
  this.$InitConstants$();
};
$goog$exportSymbol$$("AdfDhtmlRichTextEditorPeer.InitSubclass", $AdfDhtmlRichTextEditorPeer$$.$InitSubclass$);
$AdfDhtmlRichTextEditorPeer$$.$InitConstants$ = function $$AdfDhtmlRichTextEditorPeer$$$$InitConstants$$() {
  $AdfDhtmlRichTextEditorBasePeer$$.$InitConstants$.call(this);
  this.$_TOOLBAR_POPUP_CONTAINER_ID$ = "_tbPopCont";
  this.$_TOOLBAR_POPUP_INPUT_CONTAINER_ID$ = "_tbPopInpCont";
  this.$_TOOLBAR_POPUP_LINK_INPUT_ID$ = "_tbPopLnkInput";
  this.$_TOOLBAR_POPUP_LINK_SELECTED_INPUT_ID$ = "_tbPopLnkSelectedInput";
  this.$_CONTENT_INPUT_CONTAINER_SUBID$ = "_cic";
};
$goog$exportSymbol$$("AdfDhtmlRichTextEditorPeer.InitConstants", $AdfDhtmlRichTextEditorPeer$$.$InitConstants$);
$AdfDhtmlRichTextEditorPeer$$.$HandleTimerUpdate$ = function $$AdfDhtmlRichTextEditorPeer$$$$HandleTimerUpdate$$($clientId$$417_component$$1973_peer$$170$$) {
  if ($clientId$$417_component$$1973_peer$$170$$ = $AdfPage$$.$PAGE$.$findComponent$($clientId$$417_component$$1973_peer$$170$$)) {
    $clientId$$417_component$$1973_peer$$170$$ = $clientId$$417_component$$1973_peer$$170$$.$getPeer$(), $clientId$$417_component$$1973_peer$$170$$.$UpdateValue$(), $JSCompiler_StaticMethods__handleContextChangedForCommands$$($clientId$$417_component$$1973_peer$$170$$);
  }
};
$goog$exportSymbol$$("AdfDhtmlRichTextEditorPeer.HandleTimerUpdate", $AdfDhtmlRichTextEditorPeer$$.$HandleTimerUpdate$);
$AdfDhtmlRichTextEditorPeer$$.prototype.Init = function $$AdfDhtmlRichTextEditorPeer$$$$Init$($component$$1974$$) {
  $AdfDhtmlRichTextEditorPeer$$.$superclass$.Init.call(this, $component$$1974$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.Init", {Init:$AdfDhtmlRichTextEditorPeer$$.prototype.Init});
$AdfDhtmlRichTextEditorPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlRichTextEditorPeer$$$$$InitDomElement$$($component$$1975$$, $domElement$$432$$) {
  var $readOnly$$7_rteContentField$$1$$ = $component$$1975$$.getReadOnly(), $clientId$$418$$ = $component$$1975$$.$getClientId$(), $agent$$563$$ = $AdfAgent$$.$AGENT$;
  if (!$readOnly$$7_rteContentField$$1$$) {
    var $fieldSubId$$1_sourceFieldSubId$$2$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$418$$, $AdfDhtmlRichTextEditorPeer$$.$_CONTENT_FIELD_SUB_ID$);
    $agent$$563$$.$setExpandoProperty$($domElement$$432$$, $AdfDhtmlRichTextEditorPeer$$.$_FIELD_ID_ATTR_NAME$, $fieldSubId$$1_sourceFieldSubId$$2$$);
    $fieldSubId$$1_sourceFieldSubId$$2$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$418$$, $AdfDhtmlRichTextEditorPeer$$.$_SOURCE_FIELD_SUB_ID$);
    $agent$$563$$.$setExpandoProperty$($domElement$$432$$, $AdfDhtmlRichTextEditorPeer$$.$_SOURCE_FIELD_ID_ATTR_NAME$, $fieldSubId$$1_sourceFieldSubId$$2$$);
    $AdfPage$$.$PAGE$.$registerLoadingComponent$($component$$1975$$);
  }
  $AdfDhtmlRichTextEditorPeer$$.$superclass$.$InitDomElement$.call(this, $component$$1975$$, $domElement$$432$$);
  this.$_isTouch$ = $agent$$563$$.$isTouchFirstDevice$();
  $readOnly$$7_rteContentField$$1$$ ? ($readOnly$$7_rteContentField$$1$$ = $JSCompiler_StaticMethods__getReadOnlyContentField$$($component$$1975$$), $readOnly$$7_rteContentField$$1$$.innerHTML = $readOnly$$7_rteContentField$$1$$.textContent) : (this.$_modeButtonRichTextClientId$ = $clientId$$418$$ + "_afrModeRichText", this.$_modeButtonCodeClientId$ = $clientId$$418$$ + "_afrModeCode", "popup" === $component$$1975$$.getToolbarDisplay() && (this.$_toolbarPopupListenerInitialized$ = !1), this.$_createIframe$($component$$1975$$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlRichTextEditorPeer$$.prototype.$InitDomElement$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$GetReadyState$ = function $$AdfDhtmlRichTextEditorPeer$$$$$GetReadyState$$() {
  var $component$$1976_iframeDomElement$$1$$ = this.$getComponent$();
  if (($component$$1976_iframeDomElement$$1$$ = this.$_getContentField$($component$$1976_iframeDomElement$$1$$)) && "1" === $component$$1976_iframeDomElement$$1$$.getAttribute("data-afr-rte-loaded")) {
    $AdfLogger$$.$LOGGER$.fine("AdfDhtmlRichTextEditorPeer.GetReadyState: RTE loaded");
    try {
      if ("complete" === $component$$1976_iframeDomElement$$1$$.contentWindow.document.readyState) {
        return $AdfLogger$$.$LOGGER$.fine("AdfDhtmlRichTextEditorPeer.GetReadyState: RTE ready"), $AdfUIComponent$$.$STATE_COMPLETE$;
      }
      $AdfLogger$$.$LOGGER$.fine("AdfDhtmlRichTextEditorPeer.GetReadyState: RTE inner document not yet ready");
      return $AdfUIComponent$$.$STATE_LOADING$;
    } catch ($e$$151$$) {
      return $AdfLogger$$.$LOGGER$.fine("AdfDhtmlRichTextEditor.GetReadyState: exception.", "Nothing more to do"), $AdfUIComponent$$.$STATE_COMPLETE$;
    }
  }
  $AdfLogger$$.$LOGGER$.fine("AdfDhtmlRichTextEditorPeer.GetReadyState: richTextEditor's onload has not fired");
  return $AdfUIComponent$$.$STATE_LOADING$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.GetReadyState", {$GetReadyState$:$AdfDhtmlRichTextEditorPeer$$.prototype.$GetReadyState$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$ResizeNotify$ = function $$AdfDhtmlRichTextEditorPeer$$$$$ResizeNotify$$($cicNode_oldWidth$$34$$, $agent$$564_childNodes$$29_oldHeight$$31$$, $clientId$$419_height$$44_newWidth$$57$$, $newHeight$$42$$) {
  if (this.$_isContainerStretched$() && ($agent$$564_childNodes$$29_oldHeight$$31$$ = $AdfAgent$$.$AGENT$, $clientId$$419_height$$44_newWidth$$57$$ = this.$getComponent$().$getClientId$(), $cicNode_oldWidth$$34$$ = $agent$$564_childNodes$$29_oldHeight$$31$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$419_height$$44_newWidth$$57$$, $AdfDhtmlRichTextEditorPeer$$.$_CONTENT_INPUT_CONTAINER_SUBID$)), $agent$$564_childNodes$$29_oldHeight$$31$$ = $agent$$564_childNodes$$29_oldHeight$$31$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$419_height$$44_newWidth$$57$$, 
  "content")).childNodes, $cicNode_oldWidth$$34$$)) {
    for (var $i$$520$$ = $clientId$$419_height$$44_newWidth$$57$$ = 0, $j$$52$$ = $agent$$564_childNodes$$29_oldHeight$$31$$.length;$i$$520$$ < $j$$52$$;$i$$520$$++) {
      $agent$$564_childNodes$$29_oldHeight$$31$$[$i$$520$$] !== $cicNode_oldWidth$$34$$ && ($clientId$$419_height$$44_newWidth$$57$$ += $agent$$564_childNodes$$29_oldHeight$$31$$[$i$$520$$].offsetHeight);
    }
    $cicNode_oldWidth$$34$$.style.height = $newHeight$$42$$ - $clientId$$419_height$$44_newWidth$$57$$ + "px";
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.ResizeNotify", {$ResizeNotify$:$AdfDhtmlRichTextEditorPeer$$.prototype.$ResizeNotify$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$isEmpty$ = function $$AdfDhtmlRichTextEditorPeer$$$$$isEmpty$$($value$$240$$) {
  $value$$240$$ || ($value$$240$$ = this.$GetSubmittedValue$(this.$getComponent$(), this.$getDomElement$()));
  $value$$240$$ = $AdfStrings$$.trim($value$$240$$);
  return 0 == $value$$240$$.length || $value$$240$$.toUpperCase() == $AdfEditingAgent$$.$getInstance$().$getDefaultContent$().toUpperCase();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.isEmpty", {$isEmpty$:$AdfDhtmlRichTextEditorPeer$$.prototype.$isEmpty$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$Focus$ = function $$AdfDhtmlRichTextEditorPeer$$$$$Focus$$() {
  var $component$$1978_contentField$$1$$ = this.$getComponent$();
  if (this.$isCodeEditingMode$()) {
    $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1978_contentField$$1$$).focus();
  } else {
    $component$$1978_contentField$$1$$ = this.$_getContentField$($component$$1978_contentField$$1$$);
    if ("IFRAME" == $component$$1978_contentField$$1$$.nodeName && $component$$1978_contentField$$1$$ != document.activeElement) {
      try {
        var $containerDiv_isIE11$$ = $component$$1978_contentField$$1$$.parentElement, $isContainerDivTabIdx_isEdge$$ = $containerDiv_isIE11$$.hasAttribute("tabindex");
        $isContainerDivTabIdx_isEdge$$ || $containerDiv_isIE11$$.setAttribute("tabindex", "0");
        $AdfFocusUtils$$.$focusElement$($containerDiv_isIE11$$);
        $isContainerDivTabIdx_isEdge$$ || $containerDiv_isIE11$$.removeAttribute("tabindex");
      } catch ($err$$4$$) {
      }
    }
    var $agent$$565_isChrome$$ = $AdfAgent$$.$AGENT$, $containerDiv_isIE11$$ = $agent$$565_isChrome$$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ && 11 == $agent$$565_isChrome$$.$getVersion$(), $isContainerDivTabIdx_isEdge$$ = $agent$$565_isChrome$$.$getPlatform$() == $AdfAgent$$.$EDGE_PLATFORM$, $agent$$565_isChrome$$ = $agent$$565_isChrome$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$, $editingAgent$$2$$ = $AdfEditingAgent$$.$getInstance$(), $focusElement$$5$$ = $component$$1978_contentField$$1$$;
    if ($agent$$565_isChrome$$ || $isContainerDivTabIdx_isEdge$$) {
      $focusElement$$5$$ = $editingAgent$$2$$.$getFocusBlurElement$($component$$1978_contentField$$1$$);
    }
    $containerDiv_isIE11$$ || $isContainerDivTabIdx_isEdge$$ ? this.$_hadFirstFocus$ && !$JSCompiler_StaticMethods__isComponentHavingFocus$$(this) && $AdfFocusUtils$$.$focusElement$($focusElement$$5$$) : $AdfFocusUtils$$.$focusElement$($focusElement$$5$$);
    this.$StopDialogsFromBeingInactivatedDueToIframes$();
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.Focus", {$Focus$:$AdfDhtmlRichTextEditorPeer$$.prototype.$Focus$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$getSelectionRange$ = function $$AdfDhtmlRichTextEditorPeer$$$$$getSelectionRange$$($component$$1979_inlineFrame$$86$$) {
  var $editingAgent$$3$$ = $AdfEditingAgent$$.$getInstance$();
  $component$$1979_inlineFrame$$86$$ = this.$_getContentField$($component$$1979_inlineFrame$$86$$);
  return $editingAgent$$3$$.$getSelectionRange$($component$$1979_inlineFrame$$86$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.getSelectionRange", {$getSelectionRange$:$AdfDhtmlRichTextEditorPeer$$.prototype.$getSelectionRange$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleCodeEditingModeChange$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleCodeEditingModeChange$$($component$$1980_innerHtml$$) {
  var $richTextField$$2_toolboxComponent$$ = $JSCompiler_StaticMethods__getToolboxComponent$$(this, $component$$1980_innerHtml$$);
  this.$visitChildren$($richTextField$$2_toolboxComponent$$, $AdfDhtmlRichTextEditorPeer$$.$_toolboxVisitChildrenCallback$, this, !0);
  var $editingAgent$$4$$ = $AdfEditingAgent$$.$getInstance$(), $richTextField$$2_toolboxComponent$$ = this.$_getContentField$($component$$1980_innerHtml$$), $codeField$$1$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1980_innerHtml$$);
  this.$isCodeEditingMode$() ? ($component$$1980_innerHtml$$ = this.$getCurrentContent$($component$$1980_innerHtml$$), $codeField$$1$$.value = "" + $component$$1980_innerHtml$$, $richTextField$$2_toolboxComponent$$.blur(), delete this.$_lastSelectionRange$, $richTextField$$2_toolboxComponent$$.style.display = "none", $codeField$$1$$.style.display = "block", $codeField$$1$$.focus()) : ($codeField$$1$$.blur(), $codeField$$1$$.style.display = "none", $richTextField$$2_toolboxComponent$$.style.display = 
  "block", $richTextField$$2_toolboxComponent$$.focus(), $editingAgent$$4$$.$setInlineFrameContent$($richTextField$$2_toolboxComponent$$, $codeField$$1$$.value), this.focus($component$$1980_innerHtml$$), $AdfEditingAgent$$.$getInstance$().$setInlineFrameContentEditable$($richTextField$$2_toolboxComponent$$), this.$_ignoreNextContextChanged$ = !0);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleCodeEditingModeChange", {$HandleCodeEditingModeChange$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleCodeEditingModeChange$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentClick$$($componentEvent$$427_target$$174$$) {
  $AdfDhtmlRichTextEditorPeer$$.$superclass$.$HandleComponentClick$.call(this, $componentEvent$$427_target$$174$$);
  ($componentEvent$$427_target$$174$$ = $componentEvent$$427_target$$174$$.$getNativeEventTarget$()) && "LABEL" == $componentEvent$$427_target$$174$$.nodeName && this.focus(this.$getComponent$());
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentMouseDown$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentMouseDown$$($componentEvent$$428$$) {
  $JSCompiler_StaticMethods__handleClonedEvent$$(this, $componentEvent$$428$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentMouseDown", {$HandleComponentMouseDown$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentMouseDown$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentMouseUp$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentMouseUp$$($componentEvent$$429$$) {
  $JSCompiler_StaticMethods__handleClonedEvent$$(this, $componentEvent$$429$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentMouseUp", {$HandleComponentMouseUp$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentMouseUp$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentKeyDown$$($componentEvent$$430$$) {
  $JSCompiler_StaticMethods__handleClonedEvent$$(this, $componentEvent$$430$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentKeyUp$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentKeyUp$$($componentEvent$$431$$) {
  $JSCompiler_StaticMethods__handleClonedEvent$$(this, $componentEvent$$431$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentKeyUp", {$HandleComponentKeyUp$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentKeyUp$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentAction$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentAction$$($componentEvent$$432$$) {
  this.$_styleBindingActionListener$($componentEvent$$432$$);
  this.$_commandBindingActionListener$($componentEvent$$432$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentAction", {$HandleComponentAction$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentAction$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleContextChanged$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleContextChanged$$() {
  if (this.$_ignoreNextContextChanged$) {
    delete this.$_ignoreNextContextChanged$;
  } else {
    if (1 != this.$isCodeEditingMode$()) {
      $JSCompiler_StaticMethods__saveSelection$$(this);
      $JSCompiler_StaticMethods__handleContextChangedForCommands$$(this);
      var $agent$$inline_3818$$ = $AdfAgent$$.$AGENT$;
      if (void 0 != this.$_styleObservers$) {
        var $length$$inline_3819$$ = this.$_styleObservers$.length, $oldStyleValues$$inline_3820$$ = this.$_oldStyleValues$;
        void 0 == $oldStyleValues$$inline_3820$$ && ($oldStyleValues$$inline_3820$$ = {});
        for (var $cached$$inline_3821$$ = {}, $i$$inline_3822$$ = 0;$i$$inline_3822$$ < $length$$inline_3819$$;$i$$inline_3822$$++) {
          var $observerObj$$inline_3823$$ = this.$_styleObservers$[$i$$inline_3822$$], $styleKey$$inline_3824$$ = $observerObj$$inline_3823$$.$styleKey$, $listenerComponent$$inline_3825$$ = $AdfPage$$.$PAGE$.$findComponent$($observerObj$$inline_3823$$.$componentId$);
          $AdfAssert$$.assert($listenerComponent$$inline_3825$$);
          var $value$$inline_3826$$ = null;
          void 0 == $cached$$inline_3821$$[$styleKey$$inline_3824$$] ? ($value$$inline_3826$$ = $JSCompiler_StaticMethods__getSelectionStyling$$(this, $styleKey$$inline_3824$$), null != $value$$inline_3826$$ && ($cached$$inline_3821$$[$styleKey$$inline_3824$$] = $value$$inline_3826$$)) : $value$$inline_3826$$ = $cached$$inline_3821$$[$styleKey$$inline_3824$$];
          if ($oldStyleValues$$inline_3820$$[$styleKey$$inline_3824$$] !== $value$$inline_3826$$ && null != $value$$inline_3826$$) {
            var $commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$ = !1;
            if ($styleKey$$inline_3824$$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_COLOR_BACKGROUND$ || $styleKey$$inline_3824$$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_COLOR_FOREGROUND$) {
              $value$$inline_3826$$ = $AdfEditingAgent$$.$getInstance$().$getColor$($value$$inline_3826$$);
            } else {
              if ($styleKey$$inline_3824$$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_SIZE$) {
                $value$$inline_3826$$ = $JSCompiler_StaticMethods__getOneThroughSevenFontSize$$($value$$inline_3826$$), 0 < $value$$inline_3826$$ && 8 > $value$$inline_3826$$ ? $value$$inline_3826$$ += "" : ($value$$inline_3826$$ = "2", $commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$ = !0);
              } else {
                if ($styleKey$$inline_3824$$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_NAME$ && $listenerComponent$$inline_3825$$ instanceof AdfRichSelectOneChoice) {
                  var $selectItems$$inline_3828$$ = $listenerComponent$$inline_3825$$.$getSelectItems$(), $selectItemsLength$$inline_3829$$ = $selectItems$$inline_3828$$.length, $matched$$inline_3830$$ = !1;
                  null != $value$$inline_3826$$ && $agent$$inline_3818$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ && ($value$$inline_3826$$ = ("" + $value$$inline_3826$$).replace(/['"]+/g, ""), $value$$inline_3826$$ = ("" + $value$$inline_3826$$).replace(/, /gi, ","));
                  for (var $bestMatch$$inline_3832_j$$inline_3831$$ = 0;$bestMatch$$inline_3832_j$$inline_3831$$ < $selectItemsLength$$inline_3829$$;$bestMatch$$inline_3832_j$$inline_3831$$++) {
                    if ($selectItems$$inline_3828$$[$bestMatch$$inline_3832_j$$inline_3831$$].getLabel() == $value$$inline_3826$$) {
                      $value$$inline_3826$$ = $selectItems$$inline_3828$$[$bestMatch$$inline_3832_j$$inline_3831$$].getValue();
                      $matched$$inline_3830$$ = !0;
                      break;
                    }
                  }
                  if (!$matched$$inline_3830$$) {
                    for (var $bestMatch$$inline_3832_j$$inline_3831$$ = Number.MAX_VALUE, $match$$inline_3833$$, $matchedValue$$inline_3834$$, $k$$inline_3835$$ = 0;$k$$inline_3835$$ < $selectItemsLength$$inline_3829$$;$k$$inline_3835$$++) {
                      -1 < ($match$$inline_3833$$ = $selectItems$$inline_3828$$[$k$$inline_3835$$].getValue().search($value$$inline_3826$$)) && ($match$$inline_3833$$ < $bestMatch$$inline_3832_j$$inline_3831$$ && ($bestMatch$$inline_3832_j$$inline_3831$$ = $match$$inline_3833$$, $matchedValue$$inline_3834$$ = $selectItems$$inline_3828$$[$k$$inline_3835$$].getValue()), $matched$$inline_3830$$ = !0);
                    }
                    if (!$matched$$inline_3830$$) {
                      for ($k$$inline_3835$$ = 1;$k$$inline_3835$$ < $selectItemsLength$$inline_3829$$;$k$$inline_3835$$++) {
                        -1 < ($match$$inline_3833$$ = $value$$inline_3826$$.search($selectItems$$inline_3828$$[$k$$inline_3835$$].getLabel())) && ($match$$inline_3833$$ < $bestMatch$$inline_3832_j$$inline_3831$$ && ($bestMatch$$inline_3832_j$$inline_3831$$ = $match$$inline_3833$$, $matchedValue$$inline_3834$$ = $selectItems$$inline_3828$$[$k$$inline_3835$$].getValue()), $matched$$inline_3830$$ = !0);
                      }
                    }
                    $value$$inline_3826$$ = $matched$$inline_3830$$ ? $matchedValue$$inline_3834$$ : $selectItems$$inline_3828$$[0].getValue();
                  }
                }
              }
            }
            $commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$ || ($commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$ = $styleKey$$inline_3824$$, $AdfAssert$$.$assertString$($commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$), $commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$ = 
            $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$], $AdfAssert$$.$assertString$($commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$), $AdfEditingAgent$$.$getInstance$().$queryCommandIndeterminate$(this.$_getContentField$(this.$getComponent$()), $commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$));
            $commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$ = $listenerComponent$$inline_3825$$.$getProperty$($observerObj$$inline_3823$$.propertyName);
            $AdfUIUtils$$.$compareValues$($commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$, $value$$inline_3826$$) || ("value" == $observerObj$$inline_3823$$.propertyName && ($commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$ = $styleKey$$inline_3824$$, $AdfAssert$$.$assertString$($commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$), 
            void 0 == this.$_ignoreEvents$[$commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$] && (this.$_ignoreEvents$[$commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$] = 0), this.$_ignoreEvents$[$commandIdentifier$$inline_6034_indeterminateValue$$inline_3827_oldValue$$inline_3836_styleKey$$inline_6033_styleKey$$inline_6037$$]++), $listenerComponent$$inline_3825$$.setProperty($observerObj$$inline_3823$$.propertyName, 
            $value$$inline_3826$$, !1, !1), $styleKey$$inline_3824$$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_SIZE$ && $AdfPage$$.$PAGE$.$clearMessages$($listenerComponent$$inline_3825$$.$getClientId$()));
          }
        }
        this.$_oldStyleValues$ = $cached$$inline_3821$$;
      }
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleContextChanged", {$HandleContextChanged$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleContextChanged$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$StopDialogsFromBeingInactivatedDueToIframes$ = function $$AdfDhtmlRichTextEditorPeer$$$$$StopDialogsFromBeingInactivatedDueToIframes$$() {
  var $cancelNeeded$$ = !0, $activeTagName$$1$$, $activeElement$$12$$ = $AdfAgent$$.$AGENT$.$getDomDocument$().activeElement;
  $activeElement$$12$$ && ($activeTagName$$1$$ = $activeElement$$12$$.tagName);
  "IFRAME" == $activeTagName$$1$$ && ($cancelNeeded$$ = !1);
  $cancelNeeded$$ && $AdfPage$$.$PAGE$.$getAutoDismissalManager$().$cancelBlurTimeout$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.StopDialogsFromBeingInactivatedDueToIframes", {$StopDialogsFromBeingInactivatedDueToIframes$:$AdfDhtmlRichTextEditorPeer$$.prototype.$StopDialogsFromBeingInactivatedDueToIframes$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$GetSubmittedValue$ = function $$AdfDhtmlRichTextEditorPeer$$$$$GetSubmittedValue$$($component$$1981$$, $domElement$$433$$) {
  if (this.$_isTouch$ && this.$WasSubmitted$($component$$1981$$)) {
    var $lastValue$$8_richTextField$$3$$ = this.$_getContentField$($component$$1981$$), $domNode$$86_newValue$$133$$ = this.$getCurrentContent$($component$$1981$$), $lastValue$$8_richTextField$$3$$ = $AdfDhtmlInputBasePeer$$.$getLastValue$($lastValue$$8_richTextField$$3$$);
    $lastValue$$8_richTextField$$3$$ != $domNode$$86_newValue$$133$$ && void 0 !== $lastValue$$8_richTextField$$3$$ && this.$UpdateValue$();
  }
  if ($component$$1981$$.getReadOnly()) {
    return $domNode$$86_newValue$$133$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1981$$, $domElement$$433$$), $domNode$$86_newValue$$133$$.innerHTML;
  }
  $domNode$$86_newValue$$133$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1981$$);
  return $domNode$$86_newValue$$133$$.value;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.GetSubmittedValue", {$GetSubmittedValue$:$AdfDhtmlRichTextEditorPeer$$.prototype.$GetSubmittedValue$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$UpdateValue$ = function $$AdfDhtmlRichTextEditorPeer$$$$$UpdateValue$$() {
  var $component$$1982$$ = this.$getComponent$(), $richTextField$$4$$ = this.$_getContentField$($component$$1982$$);
  this.$_keyTimer$ && (clearTimeout(this.$_keyTimer$), delete this.$_keyTimer$);
  if ("none" != $richTextField$$4$$.style.display) {
    var $contentNode$$89$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1982$$), $editingAgent$$5$$ = $AdfEditingAgent$$.$getInstance$(), $newValue$$134$$ = this.$getCurrentContent$($component$$1982$$), $iOSKeyboardHackElem$$ = $newValue$$134$$.indexOf($AdfDhtmlRichTextEditorPeer$$.$_getDummyInputField$($editingAgent$$5$$, $richTextField$$4$$).outerHTML);
    $contentNode$$89$$.value = -1 == $iOSKeyboardHackElem$$ ? $newValue$$134$$ : $newValue$$134$$.slice(0, $iOSKeyboardHackElem$$);
    $editingAgent$$5$$.$updateValueHistory$($component$$1982$$, $richTextField$$4$$, $newValue$$134$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.UpdateValue", {$UpdateValue$:$AdfDhtmlRichTextEditorPeer$$.prototype.$UpdateValue$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$AddStyleBinding$ = function $$AdfDhtmlRichTextEditorPeer$$$$$AddStyleBinding$$($componentId$$53_styleObserver$$, $propertyName$$52$$, $styleKey$$1$$, $eventType$$52$$) {
  $AdfAssert$$.$assertString$($componentId$$53_styleObserver$$);
  $AdfAssert$$.$assertString$($propertyName$$52$$);
  $AdfAssert$$.$assertString$($styleKey$$1$$);
  $AdfAssert$$.$assertStringOrNull$($eventType$$52$$);
  void 0 == $eventType$$52$$ && ($eventType$$52$$ = $AdfActionEvent$$.$ACTION_EVENT_TYPE$);
  var $bindComponent$$2$$ = $AdfPage$$.$PAGE$.$findComponent$($componentId$$53_styleObserver$$);
  $componentId$$53_styleObserver$$ = {$componentId$:$componentId$$53_styleObserver$$, propertyName:$propertyName$$52$$, $styleKey$:$styleKey$$1$$, $eventType$:$eventType$$52$$};
  this.$_styleObservers$ || (this.$_styleObservers$ = []);
  this.$_styleObservers$.push($componentId$$53_styleObserver$$);
  $eventType$$52$$ == $AdfActionEvent$$.$ACTION_EVENT_TYPE$ && $bindComponent$$2$$.$isDescendant$(this.$getComponent$()) || $bindComponent$$2$$.addEventListener($eventType$$52$$, this.$_styleBindingActionListener$, this);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.AddStyleBinding", {$AddStyleBinding$:$AdfDhtmlRichTextEditorPeer$$.prototype.$AddStyleBinding$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$RemoveStyleBindings$ = function $$AdfDhtmlRichTextEditorPeer$$$$$RemoveStyleBindings$$($component$$1983$$) {
  var $observers$$5$$ = this.$_styleObservers$;
  if (void 0 != $observers$$5$$) {
    for (var $length$$75$$ = $observers$$5$$.length, $listener$$112$$ = this.$_styleBindingActionListener$, $i$$521$$ = 0;$i$$521$$ < $length$$75$$;$i$$521$$++) {
      var $observer$$5$$ = $observers$$5$$[$i$$521$$], $boundComponent$$2$$ = $AdfPage$$.$PAGE$.$findComponent$($observer$$5$$.$componentId$);
      void 0 != $boundComponent$$2$$ && ($observer$$5$$.$eventType$ == $AdfActionEvent$$.$ACTION_EVENT_TYPE$ && $boundComponent$$2$$.$isDescendant$($component$$1983$$) || $boundComponent$$2$$.removeEventListener($observer$$5$$.$eventType$, $listener$$112$$, this));
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.RemoveStyleBindings", {$RemoveStyleBindings$:$AdfDhtmlRichTextEditorPeer$$.prototype.$RemoveStyleBindings$});
$AdfDhtmlRichTextEditorPeer$$.$_toolboxVisitChildrenCallback$ = function $$AdfDhtmlRichTextEditorPeer$$$$_toolboxVisitChildrenCallback$$($component$$1984_domElement$$434$$) {
  var $result$$23$$ = 0, $codeEditingMode$$ = this.$isCodeEditingMode$();
  if ($component$$1984_domElement$$434$$ instanceof AdfRichCommandToolbarButton) {
    var $clientId$$420$$ = $component$$1984_domElement$$434$$.$getClientId$();
    $clientId$$420$$ != this.$_modeButtonRichTextClientId$ && $clientId$$420$$ != this.$_modeButtonCodeClientId$ && ($component$$1984_domElement$$434$$.setProperty("selected", !1, !1, $AdfUIComponent$$.$PROPAGATE_IF_KNOWN_PROPERTY$), $component$$1984_domElement$$434$$.setProperty("disabled", $codeEditingMode$$, !1, $AdfUIComponent$$.$PROPAGATE_IF_KNOWN_PROPERTY$), $result$$23$$ = 1);
  } else {
    $component$$1984_domElement$$434$$ instanceof AdfRichSelectOneChoice || $component$$1984_domElement$$434$$ instanceof AdfRichInputNumberSpinbox || $component$$1984_domElement$$434$$ instanceof AdfRichInputColor ? ($component$$1984_domElement$$434$$.setProperty("disabled", $codeEditingMode$$, !1, $AdfUIComponent$$.$PROPAGATE_IF_KNOWN_PROPERTY$), $result$$23$$ = 1) : $component$$1984_domElement$$434$$ instanceof AdfRichPanelGroupLayout && ($component$$1984_domElement$$434$$ = $AdfRichUIPeer$$.$getDomElementForComponent$($component$$1984_domElement$$434$$), 
    $codeEditingMode$$ ? $AdfDomUtils$$.$addCSSClassName$($component$$1984_domElement$$434$$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$) : $AdfDomUtils$$.$removeCSSClassName$($component$$1984_domElement$$434$$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$), $result$$23$$ = 1);
  }
  return $result$$23$$;
};
$JSCompiler_prototypeAlias$$ = $AdfDhtmlRichTextEditorPeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_handleMouseUp$ = function $$JSCompiler_prototypeAlias$$$$_handleMouseUp$$($event$$287_target$$175$$) {
  this.$HandleContextChanged$();
  var $agentName$$9$$ = navigator.userAgent.toLowerCase();
  $event$$287_target$$175$$ = $event$$287_target$$175$$.target;
  -1 != $agentName$$9$$.indexOf("chrome") && "html" == $event$$287_target$$175$$.nodeName.toLowerCase() ? $event$$287_target$$175$$.getElementsByTagName("body")[0].focus() : -1 != $agentName$$9$$.indexOf("edge") && "body" == $event$$287_target$$175$$.nodeName.toLowerCase() && $event$$287_target$$175$$.focus();
};
$JSCompiler_prototypeAlias$$.$_handleKeyDown$ = function $$JSCompiler_prototypeAlias$$$$_handleKeyDown$$($evt$$142$$) {
  var $cancelEvent$$6_isIE$$9$$ = $AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$, $isGecko$$3_isToolbarPopupVisible_keyCode$$96$$ = $AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$GECKO_PLATFORM$, $component$$1985_equals_key_toolBarComp_value$$241$$ = 187, $editMode_equals_key_2$$ = $component$$1985_equals_key_toolBarComp_value$$241$$, $minus_key_toolbarElement$$ = 189;
  if ($cancelEvent$$6_isIE$$9$$) {
    var $methodCall_time$$5$$ = this.$_keyTimer$;
    $methodCall_time$$5$$ && clearTimeout($methodCall_time$$5$$);
    $methodCall_time$$5$$ = "AdfDhtmlRichTextEditorPeer.HandleTimerUpdate('" + this.$getComponent$().$getClientId$() + "')";
    this.$_keyTimer$ = setTimeout($methodCall_time$$5$$, 3E3);
  }
  $isGecko$$3_isToolbarPopupVisible_keyCode$$96$$ && ($component$$1985_equals_key_toolBarComp_value$$241$$ = 61, $editMode_equals_key_2$$ = 107, $minus_key_toolbarElement$$ = 109);
  $isGecko$$3_isToolbarPopupVisible_keyCode$$96$$ = $evt$$142$$.keyCode;
  if (9 == $isGecko$$3_isToolbarPopupVisible_keyCode$$96$$) {
    $evt$$142$$.shiftKey && (this.$_mouseDownOrTabBack$ = !0), $component$$1985_equals_key_toolBarComp_value$$241$$ = this.$getComponent$(), $editMode_equals_key_2$$ = $component$$1985_equals_key_toolBarComp_value$$241$$.getEditMode(), $minus_key_toolbarElement$$ = $JSCompiler_StaticMethods__getToolbarPopupNode$$($component$$1985_equals_key_toolBarComp_value$$241$$), $isGecko$$3_isToolbarPopupVisible_keyCode$$96$$ = "popup" === $component$$1985_equals_key_toolBarComp_value$$241$$.getToolbarDisplay() && 
    $AdfDomUtils$$.$isVisible$($minus_key_toolbarElement$$), "wysiwyg" == $editMode_equals_key_2$$ ? $isGecko$$3_isToolbarPopupVisible_keyCode$$96$$ ? ($AdfAgent$$.$AGENT$.preventDefault($evt$$142$$), $evt$$142$$.shiftKey ? $AdfFocusUtils$$.$focusElement$($AdfFocusUtils$$.$getLastTabStop$($minus_key_toolbarElement$$)) : $AdfFocusUtils$$.$focusNextTabStop$(this.$_getContentField$($component$$1985_equals_key_toolBarComp_value$$241$$))) : ($AdfEditingAgent$$.$getInstance$().$handleTab$(this.$_getContentField$($component$$1985_equals_key_toolBarComp_value$$241$$), 
    $evt$$142$$), $cancelEvent$$6_isIE$$9$$ && ($evt$$142$$.shiftKey ? this.$_tabBack$ = !0 : this.$_tabForward$ = !0)) : $isGecko$$3_isToolbarPopupVisible_keyCode$$96$$ && ($AdfAgent$$.$AGENT$.preventDefault($evt$$142$$), $evt$$142$$.shiftKey ? $AdfFocusUtils$$.$focusElement$($AdfFocusUtils$$.$getLastFocusableDescendant$($minus_key_toolbarElement$$)) : $AdfFocusUtils$$.$focusNextTabStop$($JSCompiler_StaticMethods__getSourceCodeField$$($component$$1985_equals_key_toolBarComp_value$$241$$)));
  } else {
    if ($evt$$142$$.ctrlKey) {
      $cancelEvent$$6_isIE$$9$$ = !0;
      if ($evt$$142$$.altKey) {
        switch($isGecko$$3_isToolbarPopupVisible_keyCode$$96$$) {
          case $component$$1985_equals_key_toolBarComp_value$$241$$:
          ;
          case $editMode_equals_key_2$$:
            this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_SUPERSCRIPT$);
            break;
          case $minus_key_toolbarElement$$:
            this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_SUBSCRIPT$);
            break;
          case 121:
            ($component$$1985_equals_key_toolBarComp_value$$241$$ = $AdfPage$$.$PAGE$.$findComponent$(this.$getComponent$().$getClientId$() + "_afrToolbox")) && $component$$1985_equals_key_toolBarComp_value$$241$$.focus();
            break;
          default:
            $cancelEvent$$6_isIE$$9$$ = !1;
        }
      } else {
        if ($evt$$142$$.shiftKey) {
          switch($isGecko$$3_isToolbarPopupVisible_keyCode$$96$$) {
            case 72:
              this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$COMMAND_UNLINK$);
              break;
            case 77:
              this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_OUTDENT$);
              break;
            case 83:
              this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$COMMAND_CLEAR_STYLING$);
              break;
            case 87:
              this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_COLOR_FOREGROUND$);
              break;
            default:
              $cancelEvent$$6_isIE$$9$$ = !1;
          }
        } else {
          switch($isGecko$$3_isToolbarPopupVisible_keyCode$$96$$) {
            case 53:
              this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_STRIKETHROUGH$);
              break;
            case 66:
              this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_BOLD$);
              break;
            case 69:
              this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_JUSTIFY_CENTER$);
              break;
            case 72:
              window.setTimeout(this.$createCallback$(this.$_cmdCreateLink$), 0);
              break;
            case 73:
              this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_ITALIC$);
              break;
            case 74:
              this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_JUSTIFY_FULL$);
              break;
            case 76:
              this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_JUSTIFY_LEFT$);
              break;
            case 77:
              this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_INDENT$);
              break;
            case 82:
              this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_JUSTIFY_RIGHT$);
              break;
            case 85:
              this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_UNDERLINE$);
              break;
            case 87:
              this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_COLOR_BACKGROUND$);
              break;
            case 219:
              $component$$1985_equals_key_toolBarComp_value$$241$$ = $JSCompiler_StaticMethods__getOneThroughSevenFontSize$$($JSCompiler_StaticMethods__queryCommandValue$$(this));
              1 < $component$$1985_equals_key_toolBarComp_value$$241$$ && this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_SIZE$, +$component$$1985_equals_key_toolBarComp_value$$241$$ - 1);
              break;
            case 221:
              $component$$1985_equals_key_toolBarComp_value$$241$$ = $JSCompiler_StaticMethods__getOneThroughSevenFontSize$$($JSCompiler_StaticMethods__queryCommandValue$$(this));
              7 > $component$$1985_equals_key_toolBarComp_value$$241$$ && this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_SIZE$, +$component$$1985_equals_key_toolBarComp_value$$241$$ + 1);
              break;
            default:
              $cancelEvent$$6_isIE$$9$$ = !1;
          }
        }
      }
      $cancelEvent$$6_isIE$$9$$ && $AdfAgent$$.$AGENT$.$eatEvent$($evt$$142$$);
    }
  }
};
$JSCompiler_prototypeAlias$$.$_cmdCreateLink$ = function $$JSCompiler_prototypeAlias$$$$_cmdCreateLink$$() {
  return this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$COMMAND_LINK$);
};
function $JSCompiler_StaticMethods__saveSelection$$($JSCompiler_StaticMethods__saveSelection$self_component$$1986$$) {
  var $editingAgent$$6$$ = $AdfEditingAgent$$.$getInstance$(), $range$$17$$ = $editingAgent$$6$$.$getSelectionRange$($JSCompiler_StaticMethods__saveSelection$self_component$$1986$$.$_getContentField$($JSCompiler_StaticMethods__saveSelection$self_component$$1986$$.$getComponent$()));
  $JSCompiler_StaticMethods__saveSelection$self_component$$1986$$.$_isTouch$ ? null != $range$$17$$ && ($JSCompiler_StaticMethods__saveSelection$self_component$$1986$$.$_lastSelectionRange$ = $range$$17$$) : $JSCompiler_StaticMethods__saveSelection$self_component$$1986$$.$_lastSelectionRange$ = $range$$17$$;
  $JSCompiler_StaticMethods__saveSelection$self_component$$1986$$ = $JSCompiler_StaticMethods__saveSelection$self_component$$1986$$.$getComponent$();
  if ("popup" === $JSCompiler_StaticMethods__saveSelection$self_component$$1986$$.getToolbarDisplay()) {
    var $contNode$$1$$ = $JSCompiler_StaticMethods__getToolbarPopupInputContainer$$($JSCompiler_StaticMethods__saveSelection$self_component$$1986$$);
    $AdfDomUtils$$.$isVisible$($contNode$$1$$) && $JSCompiler_StaticMethods__getToolbarPopupDisplayedTextComp$$($JSCompiler_StaticMethods__saveSelection$self_component$$1986$$).setValue($editingAgent$$6$$.$getSelectionRangeString$($range$$17$$));
  }
}
function $JSCompiler_StaticMethods__handleClonedEvent$$($JSCompiler_StaticMethods__handleClonedEvent$self$$, $componentEvent$$433$$) {
  var $evt$$143$$ = $componentEvent$$433$$.$getNativeEvent$();
  if (null != $JSCompiler_StaticMethods__handleClonedEvent$self$$.$_clonedEventMap$ && null != $JSCompiler_StaticMethods__handleClonedEvent$self$$.$_clonedEventMap$[$evt$$143$$]) {
    var $originalEvent$$1$$ = $JSCompiler_StaticMethods__handleClonedEvent$self$$.$_clonedEventMap$[$evt$$143$$];
    $componentEvent$$433$$.cancel = function $$componentEvent$$433$$$cancel$() {
      $AdfDomUIInputEvent$$.$superclass$.cancel.call($componentEvent$$433$$);
      $AdfAgent$$.$AGENT$.preventDefault($evt$$143$$);
      $AdfAgent$$.$AGENT$.preventDefault($originalEvent$$1$$);
      delete $JSCompiler_StaticMethods__handleClonedEvent$self$$.$_clonedEventMap$[$evt$$143$$];
    };
  }
}
function $JSCompiler_StaticMethods__handleContextChangedForCommands$$($JSCompiler_StaticMethods__handleContextChangedForCommands$self$$) {
  if (void 0 != $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$.$_commandObservers$) {
    var $component$$1987$$ = $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$.$getComponent$(), $contentField$$2$$ = $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$.$_getContentField$($component$$1987$$), $editingAgent$$7$$ = $AdfEditingAgent$$.$getInstance$(), $commandObservers$$1$$ = $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$.$_commandObservers$, $length$$76$$ = $commandObservers$$1$$.length, $oldCommandValues$$1$$ = $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$.$_oldCommandValues$;
    void 0 == $oldCommandValues$$1$$ && ($oldCommandValues$$1$$ = {});
    for (var $cached$$1$$ = {}, $i$$522$$ = 0;$i$$522$$ < $length$$76$$;$i$$522$$++) {
      var $listenerComponent$$2_observerObj$$4$$ = $commandObservers$$1$$[$i$$522$$], $commandKey$$2$$ = $listenerComponent$$2_observerObj$$4$$.$command$, $listenerComponent$$2_observerObj$$4$$ = $AdfPage$$.$PAGE$.$findComponent$($listenerComponent$$2_observerObj$$4$$.$componentId$);
      $AdfAssert$$.assert($listenerComponent$$2_observerObj$$4$$);
      if (void 0 === $cached$$1$$[$commandKey$$2$$]) {
        var $JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3838_currentLinkURL$$inline_3842_execCommandKey$$ = $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$commandKey$$2$$];
        $cached$$1$$[$commandKey$$2$$] = null == $JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3838_currentLinkURL$$inline_3842_execCommandKey$$ ? null : $editingAgent$$7$$.queryCommandEnabled($component$$1987$$, $contentField$$2$$, $JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3838_currentLinkURL$$inline_3842_execCommandKey$$);
      }
      if ($commandKey$$2$$ === $AdfDhtmlRichTextEditorPeer$$.$COMMAND_LINK$ && "popup" === $component$$1987$$.getToolbarDisplay()) {
        var $JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3838_currentLinkURL$$inline_3842_execCommandKey$$ = $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$, $component$$inline_3839$$ = $JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3838_currentLinkURL$$inline_3842_execCommandKey$$.$getComponent$(), $contNode$$inline_3840_inputComp$$inline_3841$$ = $JSCompiler_StaticMethods__getToolbarPopupInputContainer$$($component$$inline_3839$$);
        $AdfDomUtils$$.$isVisible$($contNode$$inline_3840_inputComp$$inline_3841$$) && ($contNode$$inline_3840_inputComp$$inline_3841$$ = $JSCompiler_StaticMethods__getToolbarPopupURLComp$$($component$$inline_3839$$), $JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3838_currentLinkURL$$inline_3842_execCommandKey$$ = $JSCompiler_StaticMethods__getLinkURLForSelection$$($AdfEditingAgent$$.$getInstance$(), $component$$inline_3839$$, $JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3838_currentLinkURL$$inline_3842_execCommandKey$$.$_getContentField$($component$$inline_3839$$)), 
        $contNode$$inline_3840_inputComp$$inline_3841$$.setValue($JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3838_currentLinkURL$$inline_3842_execCommandKey$$));
      }
      if ($oldCommandValues$$1$$[$commandKey$$2$$] !== $cached$$1$$[$commandKey$$2$$]) {
        switch($commandKey$$2$$) {
          case $AdfDhtmlRichTextEditorPeer$$.$COMMAND_INSERT$:
          ;
          case $AdfDhtmlRichTextEditorPeer$$.$COMMAND_MODE_RICH_TEXT$:
          ;
          case $AdfDhtmlRichTextEditorPeer$$.$COMMAND_MODE_CODE$:
            break;
          default:
            $listenerComponent$$2_observerObj$$4$$.setProperty("disabled", !$cached$$1$$[$commandKey$$2$$], !1, !1);
        }
      }
    }
    $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$.$_oldCommandValues$ = $cached$$1$$;
  }
}
function $JSCompiler_StaticMethods__getOneThroughSevenFontSize$$($result$$24_value$$244$$) {
  var $rawValue$$1$$ = "" + $result$$24_value$$244$$, $pxIndex$$1$$ = $rawValue$$1$$.indexOf("px");
  -1 != $pxIndex$$1$$ ? ($result$$24_value$$244$$ = parseInt($rawValue$$1$$.substring(0, $pxIndex$$1$$)), $result$$24_value$$244$$ = 10 >= $result$$24_value$$244$$ ? 1 : 13 >= $result$$24_value$$244$$ ? 2 : 16 >= $result$$24_value$$244$$ ? 3 : 18 >= $result$$24_value$$244$$ ? 4 : 24 >= $result$$24_value$$244$$ ? 5 : 32 >= $result$$24_value$$244$$ ? 6 : 7) : $result$$24_value$$244$$ = parseInt($result$$24_value$$244$$) || 2;
  return $result$$24_value$$244$$;
}
$JSCompiler_prototypeAlias$$.$_createIframe$ = function $$JSCompiler_prototypeAlias$$$$_createIframe$$($component$$1988_src$$12$$) {
  var $agent$$567$$ = $AdfAgent$$.$AGENT$, $contentField$$3$$ = this.$_getContentField$($component$$1988_src$$12$$), $page$$200$$ = $AdfPage$$.$PAGE$, $iframe$$3$$ = this.$getDomDocument$().createElement("IFRAME");
  $iframe$$3$$.frameBorder = "0";
  var $cssText$$4$$ = $contentField$$3$$.style.cssText;
  0 < $cssText$$4$$.length && ($iframe$$3$$.style.cssText = $cssText$$4$$);
  $iframe$$3$$.className = $contentField$$3$$.className;
  $iframe$$3$$.id = $contentField$$3$$.id;
  $iframe$$3$$.title = $page$$200$$.$getLookAndFeel$().$getTranslatedString$("af_richTextEditor.IFRAME_TITLE");
  "lazy" == $component$$1988_src$$12$$.getContentDelivery() ? $iframe$$3$$.src = $page$$200$$.$getLazyFetchURI$($component$$1988_src$$12$$.$getClientId$()) : ($component$$1988_src$$12$$ = $contentField$$3$$.getAttribute("src")) && "" != $component$$1988_src$$12$$ && ($iframe$$3$$.src = $component$$1988_src$$12$$);
  this.$_loadCallback$ = this.$createCallback$(this.$_handleLoad$);
  $agent$$567$$.$addBubbleEventListener$($iframe$$3$$, "load", this.$_loadCallback$);
  $contentField$$3$$.parentNode.replaceChild($iframe$$3$$, $contentField$$3$$);
  $agent$$567$$.$elementsRemoved$($contentField$$3$$);
  $agent$$567$$.$elementsAdded$($iframe$$3$$);
};
function $JSCompiler_StaticMethods__makeEditable$$($JSCompiler_StaticMethods__makeEditable$self$$, $component$$1989$$) {
  var $contentField$$4$$ = $JSCompiler_StaticMethods__makeEditable$self$$.$_getContentField$($component$$1989$$);
  $AdfAssert$$.$assertDomElement$($contentField$$4$$);
  $AdfEditingAgent$$.$getInstance$().$setInlineFrameContentEditable$($contentField$$4$$);
  $JSCompiler_StaticMethods__makeEditable$self$$.$_addContextChangeListeners$($contentField$$4$$);
}
function $JSCompiler_StaticMethods__setInlineFrameContent$$($JSCompiler_StaticMethods__setInlineFrameContent$self_inlineFrameBody$$2$$, $inlineFrame$$87_inlineFrameDocument$$1$$, $content$$27$$) {
  $AdfAssert$$.$assertDomElement$($inlineFrame$$87_inlineFrameDocument$$1$$, "IFRAME");
  $AdfAssert$$.$assertString$($content$$27$$);
  var $editingAgent$$8$$ = $AdfEditingAgent$$.$getInstance$();
  $inlineFrame$$87_inlineFrameDocument$$1$$ = $editingAgent$$8$$.$getInlineFrameDocument$($inlineFrame$$87_inlineFrameDocument$$1$$);
  $editingAgent$$8$$.$setRTL$($inlineFrame$$87_inlineFrameDocument$$1$$);
  $JSCompiler_StaticMethods__setInlineFrameStyle$$($JSCompiler_StaticMethods__setInlineFrameContent$self_inlineFrameBody$$2$$, $inlineFrame$$87_inlineFrameDocument$$1$$);
  $JSCompiler_StaticMethods__setInlineFrameContent$self_inlineFrameBody$$2$$ = $inlineFrame$$87_inlineFrameDocument$$1$$.body;
  "" == $content$$27$$ && ($content$$27$$ = $editingAgent$$8$$.$getDefaultContent$());
  $JSCompiler_StaticMethods__setInlineFrameContent$self_inlineFrameBody$$2$$.innerHTML = $content$$27$$;
}
function $JSCompiler_StaticMethods__setInlineFrameStyle$$($JSCompiler_StaticMethods__setInlineFrameStyle$self$$, $inlineFrameDocument$$2$$) {
  var $inlineFrameBodyStyle$$ = $inlineFrameDocument$$2$$.body.style, $inlineFrameBodyInlineStyle$$ = $JSCompiler_StaticMethods__setInlineFrameStyle$self$$.$_inlineFrameBodyInlineStyle$;
  if (null == $inlineFrameBodyInlineStyle$$) {
    var $isIE$$10$$ = $AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$, $page$$201$$ = $AdfPage$$.$PAGE$, $inlineFrameBodyInlineStyle$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$().$getSkinProperty$("af|richTextEditor-tr-field-inline-style");
    $isIE$$10$$ && void 0 == $inlineFrameBodyInlineStyle$$ ? $page$$201$$.$scheduleTimer$($JSCompiler_StaticMethods__setInlineFrameStyle$self$$, $JSCompiler_StaticMethods__setInlineFrameStyle$self$$.$_updateInlineFrameStyle$, $inlineFrameBodyInlineStyle$$, 0, {isSynchronized:!0}) : $JSCompiler_StaticMethods__setInlineFrameStyle$self$$.$_updateInlineFrameStyle$($inlineFrameBodyInlineStyle$$);
    $inlineFrameBodyStyle$$.cssText = $JSCompiler_StaticMethods__setInlineFrameStyle$self$$.$_inlineFrameBodyInlineStyle$;
  } else {
    $inlineFrameBodyStyle$$.cssText = $inlineFrameBodyInlineStyle$$;
  }
}
$JSCompiler_prototypeAlias$$.$_updateInlineFrameStyle$ = function $$JSCompiler_prototypeAlias$$$$_updateInlineFrameStyle$$($inlineFrameBodyInlineStyle$$1$$) {
  void 0 == $inlineFrameBodyInlineStyle$$1$$ && ($inlineFrameBodyInlineStyle$$1$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$().$getSkinProperty$("af|richTextEditor-tr-field-inline-style"));
  this.$_inlineFrameBodyInlineStyle$ = $inlineFrameBodyInlineStyle$$1$$ = $inlineFrameBodyInlineStyle$$1$$.replace(/ /g, ";").replace(/\+/g, " ").replace(/_/g, ":");
};
function $JSCompiler_StaticMethods__getToolboxComponent$$($JSCompiler_StaticMethods__getToolboxComponent$self$$, $component$$1990$$) {
  var $toolboxClientId$$ = $JSCompiler_StaticMethods__getToolboxComponent$self$$.$_toolboxClientId$;
  null == $toolboxClientId$$ && ($toolboxClientId$$ = $component$$1990$$.$getClientId$() + "_afrToolbox", $JSCompiler_StaticMethods__getToolboxComponent$self$$.$_toolboxClientId$ = $toolboxClientId$$);
  return $AdfPage$$.$PAGE$.$findComponent$($toolboxClientId$$);
}
$JSCompiler_prototypeAlias$$.$_execCommand$ = function $$JSCompiler_prototypeAlias$$$$_execCommand$$($key$$91$$, $value$$245$$) {
  var $agent$$568_editingAgent$$9$$ = $AdfAgent$$.$AGENT$;
  if (1 != this.$isCodeEditingMode$() || $key$$91$$ == $AdfDhtmlRichTextEditorPeer$$.$COMMAND_MODE_RICH_TEXT$ || $key$$91$$ == $AdfDhtmlRichTextEditorPeer$$.$COMMAND_INSERT$) {
    $AdfAssert$$.$assertString$($key$$91$$);
    var $command$$15$$ = $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$key$$91$$];
    $AdfAssert$$.$assertString$($command$$15$$);
    var $component$$1991$$ = this.$getComponent$(), $element$$291$$;
    $key$$91$$ == $AdfDhtmlRichTextEditorPeer$$.$COMMAND_INSERT$ && 1 == this.$isCodeEditingMode$() ? $element$$291$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1991$$) : ($element$$291$$ = this.$_getContentField$($component$$1991$$), $AdfAssert$$.$assertDomElement$($element$$291$$, "IFRAME"), this.$_isTouch$ && $agent$$568_editingAgent$$9$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ && $element$$291$$.focus(), null != this.$_lastSelectionRange$ && $AdfEditingAgent$$.$getInstance$().setSelectionRange(this.$_getContentField$(this.$getComponent$()), 
    this.$_lastSelectionRange$));
    $agent$$568_editingAgent$$9$$ = $AdfEditingAgent$$.$getInstance$();
    if ($agent$$568_editingAgent$$9$$.$isEmptySelection$($element$$291$$)) {
      var $JSCompiler_inline_result$$216_element$$inline_3848$$;
      a: {
        $JSCompiler_inline_result$$216_element$$inline_3848$$ = $element$$291$$;
        var $commands$$inline_3851$$ = [], $editingAgent$$inline_3859_tempCommand$$inline_3852$$, $styles$$inline_3853$$ = [$AdfDhtmlRichTextEditorPeer$$.$STYLE_BOLD$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_ITALIC$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_UNDERLINE$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_STRIKETHROUGH$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_SUPERSCRIPT$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_SUBSCRIPT$], $oldStyleValues$$inline_3854$$ = this.$_oldStyleValues$;
        if (void 0 == $oldStyleValues$$inline_3854$$) {
          $JSCompiler_inline_result$$216_element$$inline_3848$$ = !0;
        } else {
          switch($command$$15$$) {
            case "bold":
            ;
            case "italic":
            ;
            case "underline":
            ;
            case "strikethrough":
            ;
            case "superscript":
            ;
            case "subscript":
              break;
            default:
              $JSCompiler_inline_result$$216_element$$inline_3848$$ = !0;
              break a;
          }
          var $result$$inline_3855$$ = !0, $index$$inline_3856$$;
          for ($index$$inline_3856$$ = 0;$index$$inline_3856$$ < $styles$$inline_3853$$.length;++$index$$inline_3856$$) {
            if ($editingAgent$$inline_3859_tempCommand$$inline_3852$$ = $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$styles$$inline_3853$$[$index$$inline_3856$$]], void 0 != $editingAgent$$inline_3859_tempCommand$$inline_3852$$) {
              if ($editingAgent$$inline_3859_tempCommand$$inline_3852$$ == $command$$15$$) {
                $oldStyleValues$$inline_3854$$[$styles$$inline_3853$$[$index$$inline_3856$$]] && !$JSCompiler_StaticMethods__getSelectionStyling$$(this, $styles$$inline_3853$$[$index$$inline_3856$$]) && ($result$$inline_3855$$ = !1);
              } else {
                var $oldValue$$inline_3857$$ = $oldStyleValues$$inline_3854$$[$styles$$inline_3853$$[$index$$inline_3856$$]], $selectionStyle$$inline_3858$$ = $JSCompiler_StaticMethods__getSelectionStyling$$(this, $styles$$inline_3853$$[$index$$inline_3856$$]);
                void 0 !== $oldValue$$inline_3857$$ && $oldValue$$inline_3857$$ != $selectionStyle$$inline_3858$$ && ($commands$$inline_3851$$[$commands$$inline_3851$$.length] = $editingAgent$$inline_3859_tempCommand$$inline_3852$$);
              }
            }
          }
          $editingAgent$$inline_3859_tempCommand$$inline_3852$$ = $AdfEditingAgent$$.$getInstance$();
          for ($index$$inline_3856$$ = 0;$index$$inline_3856$$ < $commands$$inline_3851$$.length;++$index$$inline_3856$$) {
            $editingAgent$$inline_3859_tempCommand$$inline_3852$$.execCommand($component$$1991$$, $JSCompiler_inline_result$$216_element$$inline_3848$$, $commands$$inline_3851$$[$index$$inline_3856$$], $value$$245$$);
          }
          $JSCompiler_inline_result$$216_element$$inline_3848$$ = $result$$inline_3855$$;
        }
      }
      $JSCompiler_inline_result$$216_element$$inline_3848$$ && $agent$$568_editingAgent$$9$$.execCommand($component$$1991$$, $element$$291$$, $command$$15$$, $value$$245$$);
    } else {
      $agent$$568_editingAgent$$9$$.execCommand($component$$1991$$, $element$$291$$, $command$$15$$, $value$$245$$);
    }
  }
};
function $JSCompiler_StaticMethods__queryCommandValue$$($JSCompiler_StaticMethods__queryCommandValue$self_element$$293$$) {
  var $command$$17_key$$92$$ = $AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_SIZE$;
  $AdfAssert$$.$assertString$($command$$17_key$$92$$);
  $command$$17_key$$92$$ = $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$command$$17_key$$92$$];
  $AdfAssert$$.$assertString$($command$$17_key$$92$$);
  var $component$$1993$$ = $JSCompiler_StaticMethods__queryCommandValue$self_element$$293$$.$getComponent$();
  $JSCompiler_StaticMethods__queryCommandValue$self_element$$293$$ = $JSCompiler_StaticMethods__queryCommandValue$self_element$$293$$.$_getContentField$($component$$1993$$);
  $AdfAssert$$.$assertDomElement$($JSCompiler_StaticMethods__queryCommandValue$self_element$$293$$, "IFRAME");
  return $AdfEditingAgent$$.$getInstance$().queryCommandValue($JSCompiler_StaticMethods__queryCommandValue$self_element$$293$$, $command$$17_key$$92$$);
}
$JSCompiler_prototypeAlias$$.$_styleBindingActionListener$ = function $$JSCompiler_prototypeAlias$$$$_styleBindingActionListener$$($event$$288$$) {
  if (void 0 != this.$_styleObservers$ && !this.$_commandBeingProcessed$) {
    this.$_commandBeingProcessed$ = !0;
    for (var $eventComponentId$$2$$ = $event$$288$$.getSource().$getClientId$(), $observers$$6$$ = this.$_styleObservers$, $length$$78$$ = $observers$$6$$.length, $i$$524$$ = 0;$i$$524$$ < $length$$78$$;$i$$524$$++) {
      var $isIE11$$1_observer$$6_styleKey$$inline_3865$$ = $observers$$6$$[$i$$524$$];
      if ($isIE11$$1_observer$$6_styleKey$$inline_3865$$.$componentId$ == $eventComponentId$$2$$) {
        $event$$288$$.$setPartial$(!0);
        var $JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$;
        $JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$ = $isIE11$$1_observer$$6_styleKey$$inline_3865$$.$styleKey$;
        $AdfAssert$$.$assertString$($JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$);
        void 0 == this.$_ignoreEvents$[$JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$] || 0 == this.$_ignoreEvents$[$JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$] ? $JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$ = !1 : (this.$_ignoreEvents$[$JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$]--, $JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$ = !0);
        $JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$ || ($isIE11$$1_observer$$6_styleKey$$inline_3865$$.$eventType$ == $AdfActionEvent$$.$ACTION_EVENT_TYPE$ ? ($isIE11$$1_observer$$6_styleKey$$inline_3865$$ = $isIE11$$1_observer$$6_styleKey$$inline_3865$$.$styleKey$, $AdfAssert$$.$assertString$($isIE11$$1_observer$$6_styleKey$$inline_3865$$), this.$_execCommand$($isIE11$$1_observer$$6_styleKey$$inline_3865$$, null)) : $isIE11$$1_observer$$6_styleKey$$inline_3865$$.$eventType$ == 
        $AdfValueChangeEvent$$.$VALUE_CHANGE_TYPE$ ? (($JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$ = $event$$288$$.$getNewValue$()) && $JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$.$_class$ && "TrColor" == $JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$.$_class$ && ($JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$ = (new TrColorConverter(["#RRGGBB"], !1)).getAsString($JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$), 
        $isIE11$$1_observer$$6_styleKey$$inline_3865$$.$styleKey$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_COLOR_BACKGROUND$ && (this.$_oldStyleValues$[$isIE11$$1_observer$$6_styleKey$$inline_3865$$.$styleKey$] = $JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$)), this.$_execCommand$($isIE11$$1_observer$$6_styleKey$$inline_3865$$.$styleKey$, $JSCompiler_inline_result$$217_styleKey$$inline_3862_value$$247$$)) : $AdfLogger$$.$LOGGER$.severe("This eventType (", eventType, ") is not supported by richTextEditor."), 
        this.$HandleContextChanged$());
        $isIE11$$1_observer$$6_styleKey$$inline_3865$$ = $AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ && 11 == $AdfAgent$$.$AGENT$.$getVersion$();
        !this.$_hadFirstFocus$ || $isIE11$$1_observer$$6_styleKey$$inline_3865$$ && $JSCompiler_StaticMethods__isComponentHavingFocus$$(this) || this.focus(this.$getComponent$());
        $event$$288$$.cancel();
      }
    }
    this.$UpdateValue$();
    delete this.$_commandBeingProcessed$;
  }
};
function $JSCompiler_StaticMethods__isComponentHavingFocus$$($JSCompiler_StaticMethods__isComponentHavingFocus$self_contentNode$$90$$) {
  var $activeElement$$13_component$$1994$$ = $JSCompiler_StaticMethods__isComponentHavingFocus$self_contentNode$$90$$.$getComponent$();
  $JSCompiler_StaticMethods__isComponentHavingFocus$self_contentNode$$90$$ = $JSCompiler_StaticMethods__isComponentHavingFocus$self_contentNode$$90$$.$isCodeEditingMode$() ? $JSCompiler_StaticMethods__getSourceCodeField$$($activeElement$$13_component$$1994$$) : $JSCompiler_StaticMethods__isComponentHavingFocus$self_contentNode$$90$$.$_getContentField$($activeElement$$13_component$$1994$$);
  return ($activeElement$$13_component$$1994$$ = $AdfAgent$$.$AGENT$.$getDomDocument$().activeElement) && $activeElement$$13_component$$1994$$.id == $JSCompiler_StaticMethods__isComponentHavingFocus$self_contentNode$$90$$.id;
}
$JSCompiler_prototypeAlias$$.$_addContextChangeListeners$ = function $$JSCompiler_prototypeAlias$$$$_addContextChangeListeners$$($doc$$64_field$$3$$) {
  var $component$$1995_sourceCodeField$$ = this.$getComponent$(), $agent$$569$$ = $AdfAgent$$.$AGENT$, $editingAgent$$11$$ = $AdfEditingAgent$$.$getInstance$(), $focusBlurElement$$2$$ = $editingAgent$$11$$.$getFocusBlurElement$($doc$$64_field$$3$$);
  this.$_focusCallback$ = this.$createCallback$(this.$_handleFocus$);
  this.$_blurCallback$ = this.$createCallback$(this.$_handleBlur$);
  if (this.$_isTouch$ && $agent$$569$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$) {
    $agent$$569$$.$addBubbleEventListener$($doc$$64_field$$3$$, "blur", this.$_blurCallback$);
    $AdfAgent$$.$guessOS$() != $AdfAgent$$.$ANDROID_OS$ && $agent$$569$$.$addBubbleEventListener$($doc$$64_field$$3$$, "mouseleave", this.$_blurCallback$);
    var $peer$$172$$ = this;
    this.$_clickCallback$ = this.$createCallback$(this.$_handleClick$);
    $agent$$569$$.$addBubbleEventListener$($focusBlurElement$$2$$, "click", this.$_clickCallback$);
  }
  $agent$$569$$.$addBubbleEventListener$($focusBlurElement$$2$$, "blur", this.$_blurCallback$);
  $agent$$569$$.$addBubbleEventListener$($focusBlurElement$$2$$, "focus", this.$_focusCallback$);
  $component$$1995_sourceCodeField$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1995_sourceCodeField$$);
  this.$_sourceBlurCallback$ = this.$createCallback$(this.$_handleBlur$);
  this.$_sourceFocusCallback$ = this.$createCallback$(this.$_handleFocus$);
  $agent$$569$$.$addBubbleEventListener$($component$$1995_sourceCodeField$$, "blur", this.$_sourceBlurCallback$);
  $agent$$569$$.$addBubbleEventListener$($component$$1995_sourceCodeField$$, "focus", this.$_sourceFocusCallback$);
  $doc$$64_field$$3$$ = $editingAgent$$11$$.$getInlineFrameDocument$($doc$$64_field$$3$$);
  this.$_keyDownCallback$ = this.$createCallback$(this.$_handleKeyDown$);
  $agent$$569$$.$addBubbleEventListener$($doc$$64_field$$3$$, "keydown", this.$_keyDownCallback$);
  $agent$$569$$.$addBubbleEventListener$($component$$1995_sourceCodeField$$, "keydown", this.$_keyDownCallback$);
  this.$_contextChangeCallback$ = this.$createCallback$(this.$HandleContextChanged$);
  this.$_mouseUpCallBack$ = this.$createCallback$(this.$_handleMouseUp$);
  $agent$$569$$.$addBubbleEventListener$($doc$$64_field$$3$$, "mouseup", this.$_mouseUpCallBack$);
  $agent$$569$$.$addBubbleEventListener$($doc$$64_field$$3$$, "keyup", this.$_contextChangeCallback$);
  this.$_dragEndCallback$ = this.$createCallback$(this.$_handleDragEnd$);
  $agent$$569$$.$addBubbleEventListener$($doc$$64_field$$3$$, "dragend", this.$_dragEndCallback$);
  this.$_mouseDownCallback$ = this.$createCallback$(this.$_handleMouseDown$);
  $agent$$569$$.$addBubbleEventListener$(this.$getDomElement$(), "mousedown", this.$_mouseDownCallback$);
  $AdfAgent$$.$AGENT$.$getPlatform$() != $AdfAgent$$.$IE_PLATFORM$ && $agent$$569$$.$addBubbleEventListener$($doc$$64_field$$3$$, "blur", this.$_contextChangeCallback$);
  this.$_isTouch$ && $AdfAgent$$.$guessOS$() != $AdfAgent$$.$WINDOWS_OS$ && ($peer$$172$$ = this, this.$_saveSelectionInterval$ = setInterval(function() {
    $JSCompiler_StaticMethods__saveSelection$$($peer$$172$$);
  }, 500), $agent$$569$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ && 536 > $agent$$569$$.$getVersion$() && (this.$_handleCopyCallback$ = this.$createCallback$(this.$_handleCopy$), this.$getDomDocument$().addEventListener("copy", this.$_handleCopyCallback$, !0), this.$_handlePasteCallback$ = this.$createCallback$(this.$_handlePaste$), this.$getDomDocument$().addEventListener("paste", this.$_handlePasteCallback$, !0)));
  this.$_redistributeEventsToNewTargetCallback$ = this.$createCallback$(this.$_redistributeEventsToNewTarget$);
  $agent$$569$$.$addEventBubbles$($doc$$64_field$$3$$, this.$_redistributeEventsToNewTargetCallback$);
};
$JSCompiler_prototypeAlias$$.$RemoveContextChangeListeners$ = function $$JSCompiler_prototypeAlias$$$$RemoveContextChangeListeners$$($component$$1996_sourceCodeField$$1$$) {
  var $agent$$570$$ = $AdfAgent$$.$AGENT$, $doc$$65_field$$4$$ = this.$_getContentField$($component$$1996_sourceCodeField$$1$$), $editingAgent$$12$$ = $AdfEditingAgent$$.$getInstance$(), $focusBlurElement$$3$$ = $editingAgent$$12$$.$getFocusBlurElement$($doc$$65_field$$4$$);
  this.$_isTouch$ && $agent$$570$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ ? ($agent$$570$$.$removeBubbleEventListener$($doc$$65_field$$4$$, "blur", this.$_blurCallback$), $agent$$570$$.$removeBubbleEventListener$($focusBlurElement$$3$$, "click", this.$_clickCallback$), delete this.$_clickCallback$) : $agent$$570$$.$removeBubbleEventListener$($focusBlurElement$$3$$, "blur", this.$_blurCallback$);
  delete this.$_blurCallback$;
  $agent$$570$$.$removeBubbleEventListener$($focusBlurElement$$3$$, "focus", this.$_focusCallback$);
  delete this.$_focusCallback$;
  $component$$1996_sourceCodeField$$1$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1996_sourceCodeField$$1$$);
  $agent$$570$$.$removeBubbleEventListener$($component$$1996_sourceCodeField$$1$$, "blur", this.$_sourceBlurCallback$);
  delete this.$_sourceBlurCallback$;
  $agent$$570$$.$removeBubbleEventListener$($component$$1996_sourceCodeField$$1$$, "focus", this.$_sourceFocusCallback$);
  delete this.$_sourceFocusCallback$;
  $doc$$65_field$$4$$ = $editingAgent$$12$$.$getInlineFrameDocument$($doc$$65_field$$4$$);
  $agent$$570$$.$removeBubbleEventListener$($doc$$65_field$$4$$, "mouseup", this.$_mouseUpCallBack$);
  delete this.$_mouseUpCallBack$;
  $agent$$570$$.$removeBubbleEventListener$($doc$$65_field$$4$$, "keyup", this.$_contextChangeCallback$);
  $AdfAgent$$.$AGENT$.$getPlatform$() != $AdfAgent$$.$IE_PLATFORM$ && $agent$$570$$.$removeBubbleEventListener$($doc$$65_field$$4$$, "blur", this.$_contextChangeCallback$);
  delete this.$_contextChangeCallback$;
  $agent$$570$$.$removeBubbleEventListener$($doc$$65_field$$4$$, "keydown", this.$_keyDownCallback$);
  delete this.$_keyDownCallback$;
  $agent$$570$$.$removeEventBubbles$($doc$$65_field$$4$$, this.$_redistributeEventsToNewTargetCallback$);
  delete this.$_redistributeEventsToNewTargetCallback$;
  this.$_isTouch$ && this.$_saveSelectionInterval$ && clearInterval(this.$_saveSelectionInterval$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.RemoveContextChangeListeners", {$RemoveContextChangeListeners$:$AdfDhtmlRichTextEditorPeer$$.prototype.$RemoveContextChangeListeners$});
$JSCompiler_prototypeAlias$$ = $AdfDhtmlRichTextEditorPeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_redistributeEventsToNewTarget$ = function $$JSCompiler_prototypeAlias$$$$_redistributeEventsToNewTarget$$($evt$$144$$) {
  var $comp$$18_newEvent$$13$$ = this.$getComponent$();
  $evt$$144$$ || ($evt$$144$$ = this.$_getContentField$($comp$$18_newEvent$$13$$).contentWindow.event);
  var $agent$$571$$ = $AdfAgent$$.$AGENT$;
  if ($agent$$571$$.$isKeyboardEvent$($evt$$144$$) || $agent$$571$$.$isMouseEvent$($evt$$144$$)) {
    $comp$$18_newEvent$$13$$ = $AdfAgent$$.$AGENT$.$cloneEvent$($evt$$144$$, $JSCompiler_StaticMethods__getSourceCodeField$$($comp$$18_newEvent$$13$$)), this.$_clonedEventMap$ || (this.$_clonedEventMap$ = []), this.$_clonedEventMap$[$comp$$18_newEvent$$13$$] = $evt$$144$$, $AdfPage$$.$PAGE$.$_redistribute$($comp$$18_newEvent$$13$$);
  }
};
$JSCompiler_prototypeAlias$$.$_handleFocus$ = function $$JSCompiler_prototypeAlias$$$$_handleFocus$$($evt$$145_i$$525_toolboxComponent$$1$$) {
  var $agent$$572_touchEventListeners$$ = $AdfAgent$$.$AGENT$;
  if (!this.$_commandBeingProcessed$) {
    var $component$$1997$$ = this.$getComponent$(), $oldhadFirstFocus$$ = this.$_hadFirstFocus$;
    this.$_hadFirstFocus$ || (this.$_hadFirstFocus$ = !0);
    var $componentEvent$$434$$ = $AdfAgent$$.$AGENT$.$getComponentEvent$($component$$1997$$, $evt$$145_i$$525_toolboxComponent$$1$$), $field$$5_focusTarget$$ = this.$_getContentField$($component$$1997$$);
    $AdfPage$$.$PAGE$.$__setActiveDomNodeInfo$($field$$5_focusTarget$$, $component$$1997$$.$getClientId$());
    this.$isCodeEditingMode$() ? $field$$5_focusTarget$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1997$$) : ($field$$5_focusTarget$$ = $AdfEditingAgent$$.$getInstance$().$getContentWindow$($field$$5_focusTarget$$), $field$$5_focusTarget$$ = $field$$5_focusTarget$$.document);
    ($componentEvent$$434$$.$getEventPhase$() == $AdfBaseEvent$$.CAPTURING_PHASE || $agent$$572_touchEventListeners$$.$getPlatform$() == $AdfAgent$$.$GECKO_PLATFORM$ && $field$$5_focusTarget$$ == $evt$$145_i$$525_toolboxComponent$$1$$.originalTarget && $componentEvent$$434$$.$getEventPhase$() == $AdfBaseEvent$$.CAPTURING_PHASE) && $componentEvent$$434$$.$nextEventPhase$();
    this.$HandleComponentFocus$($componentEvent$$434$$);
    $oldhadFirstFocus$$ || this.$isCodeEditingMode$() || "inline" !== $component$$1997$$.getToolbarDisplay() || ($evt$$145_i$$525_toolboxComponent$$1$$ = $JSCompiler_StaticMethods__getToolboxComponent$$(this, $component$$1997$$), this.$visitChildren$($evt$$145_i$$525_toolboxComponent$$1$$, $AdfDhtmlRichTextEditorPeer$$.$_toolboxVisitChildrenCallback$, this, !0));
  }
  if (this.$_isTouch$ && $agent$$572_touchEventListeners$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ && $AdfAgent$$.$guessOS$() != $AdfAgent$$.$ANDROID_OS$ && $agent$$572_touchEventListeners$$.$_getTouchEventListeners$ && ($agent$$572_touchEventListeners$$ = $agent$$572_touchEventListeners$$.$_touchEventListeners$)) {
    for ($evt$$145_i$$525_toolboxComponent$$1$$ = 0;$evt$$145_i$$525_toolboxComponent$$1$$ < $agent$$572_touchEventListeners$$.length;$evt$$145_i$$525_toolboxComponent$$1$$++) {
      this.$getDomDocument$().removeEventListener($agent$$572_touchEventListeners$$[$evt$$145_i$$525_toolboxComponent$$1$$].$eventType$, $agent$$572_touchEventListeners$$[$evt$$145_i$$525_toolboxComponent$$1$$].listener, $agent$$572_touchEventListeners$$[$evt$$145_i$$525_toolboxComponent$$1$$].capture);
    }
  }
};
$JSCompiler_prototypeAlias$$.$_handleLoad$ = function $$JSCompiler_prototypeAlias$$$$_handleLoad$$() {
  var $editingAgent$$13_inlineFrameDocument$$3$$ = $AdfEditingAgent$$.$getInstance$(), $component$$1998$$ = this.$getComponent$();
  $AdfAssert$$.$assertObject$($component$$1998$$, "Unexpected unbound peer for load event on iframe.");
  var $contentField$$5$$ = this.$_getContentField$($component$$1998$$);
  $AdfAssert$$.$assertDomElement$($contentField$$5$$);
  var $needsDesignMode$$ = !$component$$1998$$.getDisabled() && !$editingAgent$$13_inlineFrameDocument$$3$$.$isDesignMode$($contentField$$5$$);
  if ($editingAgent$$13_inlineFrameDocument$$3$$.$isDesignModeReloadingFrame$() && $needsDesignMode$$) {
    $JSCompiler_StaticMethods__makeEditable$$(this, $component$$1998$$);
  } else {
    var $hiddenInputElement$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1998$$);
    $AdfAssert$$.$assertDomElement$($hiddenInputElement$$);
    if ("lazy" != $component$$1998$$.getContentDelivery()) {
      $JSCompiler_StaticMethods__setInlineFrameContent$$(this, $contentField$$5$$, $hiddenInputElement$$.value);
    } else {
      var $value$$248$$ = this.$getCurrentContent$($component$$1998$$, !0);
      $hiddenInputElement$$.value = $value$$248$$;
      $editingAgent$$13_inlineFrameDocument$$3$$ = $editingAgent$$13_inlineFrameDocument$$3$$.$getInlineFrameDocument$($contentField$$5$$);
      $JSCompiler_StaticMethods__setInlineFrameStyle$$(this, $editingAgent$$13_inlineFrameDocument$$3$$);
    }
    $needsDesignMode$$ && $JSCompiler_StaticMethods__makeEditable$$(this, $component$$1998$$);
    $component$$1998$$.getReadOnly() || $AdfRichTextEditorBehaviorManager$$.$getInstance$().$registerComponent$($component$$1998$$);
    $contentField$$5$$.setAttribute("data-afr-rte-loaded", "1");
  }
};
$JSCompiler_prototypeAlias$$.$_handleBlur$ = function $$JSCompiler_prototypeAlias$$$$_handleBlur$$() {
  var $agent$$573_touchEventListeners$$1$$ = $AdfAgent$$.$AGENT$;
  if (!this.$_commandBeingProcessed$) {
    var $AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$ = this.$getComponent$(), $contentNode$$91_editingAgent$$inline_3868_inputElement$$inline_3871$$ = this.$_getContentField$($AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$), $inlineFrame$$inline_3869_lastValue$$9$$ = $AdfDhtmlInputBasePeer$$.$getLastValue$($contentNode$$91_editingAgent$$inline_3868_inputElement$$inline_3871$$);
    this.$_tabForward$ ? (delete this.$_tabForward$, $AdfFocusUtils$$.$focusNextTabStop$($AdfPage$$.$PAGE$.$_activeDomNode$)) : this.$_tabBack$ && (delete this.$_tabBack$, $AdfFocusUtils$$.$focusPreviousTabStop$($AdfPage$$.$PAGE$.$_activeDomNode$));
    this.$UpdateValue$();
    this.$_mouseDownOrTabBack$ && delete this.$_mouseDownOrTabBack$;
    var $isValueChanged$$ = !1, $newValue$$136$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$).value;
    $inlineFrame$$inline_3869_lastValue$$9$$ != $newValue$$136$$ && void 0 !== $inlineFrame$$inline_3869_lastValue$$9$$ && ($isValueChanged$$ = !0);
    !$isValueChanged$$ || this.$_mouseDownOrTabBack$ && $AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$.getValid($AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$.$getClientId$()) || (this.$Validate$($AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$, this.$GetSubmittedValue$($AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$, this.$getDomElement$())), $AdfDhtmlInputBasePeer$$.$setLastValue$($contentNode$$91_editingAgent$$inline_3868_inputElement$$inline_3871$$, 
    $newValue$$136$$));
  }
  $AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$ = $AdfAgent$$.$guessOS$();
  if (this.$_isTouch$ && $agent$$573_touchEventListeners$$1$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ && $AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$ != $AdfAgent$$.$ANDROID_OS$ && $AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$ != $AdfAgent$$.$WINDOWS_OS$ && ($contentNode$$91_editingAgent$$inline_3868_inputElement$$inline_3871$$ = $AdfEditingAgent$$.$getInstance$(), $inlineFrame$$inline_3869_lastValue$$9$$ = this.$_getContentField$(this.$getComponent$()), 
  $AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$ = $contentNode$$91_editingAgent$$inline_3868_inputElement$$inline_3871$$.$getFocusBlurElement$($inlineFrame$$inline_3869_lastValue$$9$$), $contentNode$$91_editingAgent$$inline_3868_inputElement$$inline_3871$$ = $AdfDhtmlRichTextEditorPeer$$.$_getDummyInputField$($contentNode$$91_editingAgent$$inline_3868_inputElement$$inline_3871$$, $inlineFrame$$inline_3869_lastValue$$9$$), $AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$.appendChild($contentNode$$91_editingAgent$$inline_3868_inputElement$$inline_3871$$), 
  $contentNode$$91_editingAgent$$inline_3868_inputElement$$inline_3871$$.focus(), $contentNode$$91_editingAgent$$inline_3868_inputElement$$inline_3871$$.blur(), $AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$.removeChild($contentNode$$91_editingAgent$$inline_3868_inputElement$$inline_3871$$), $agent$$573_touchEventListeners$$1$$.$_getTouchEventListeners$ && ($agent$$573_touchEventListeners$$1$$ = $agent$$573_touchEventListeners$$1$$.$_touchEventListeners$))) {
    for ($AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$ = 0;$AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$ < $agent$$573_touchEventListeners$$1$$.length;$AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$++) {
      this.$getDomDocument$().addEventListener($agent$$573_touchEventListeners$$1$$[$AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$].$eventType$, $agent$$573_touchEventListeners$$1$$[$AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$].listener, $agent$$573_touchEventListeners$$1$$[$AdfAgentOS_component$$1999_focusBlurElement$$inline_3870_i$$526$$].capture);
    }
  }
};
$JSCompiler_prototypeAlias$$.$_handleClick$ = function $$JSCompiler_prototypeAlias$$$$_handleClick$$() {
  this.$Focus$();
};
$JSCompiler_prototypeAlias$$.$_handleMouseDown$ = function $$JSCompiler_prototypeAlias$$$$_handleMouseDown$$() {
  this.$_mouseDownOrTabBack$ = !0;
};
$JSCompiler_prototypeAlias$$.$_handleDragEnd$ = function $$JSCompiler_prototypeAlias$$$$_handleDragEnd$$() {
  if ($AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$) {
    var $time$$6$$ = this.$_keyTimer$;
    $time$$6$$ && clearTimeout($time$$6$$);
    $AdfPage$$.$PAGE$.$scheduleTimer$(this, $AdfDhtmlRichTextEditorPeer$$.$HandleTimerUpdate$, this.$getComponent$().$getClientId$(), 0);
  } else {
    this.$_handleContextChanged$();
  }
};
$JSCompiler_prototypeAlias$$.$_handleCopy$ = function $$JSCompiler_prototypeAlias$$$$_handleCopy$$($event$$289_rangeToSelect$$) {
  if ($event$$289_rangeToSelect$$.clipboardData && null != this.$_lastSelectionRange$ && (this.$_isInPopup$() || !$AdfPage$$.$PAGE$.$getModalityManager$().$isGlassPaneVisible$())) {
    var $document$$19$$ = this.$getDomDocument$(), $copyElement$$ = $document$$19$$.createElement("div");
    $copyElement$$.style.position = "absolute";
    $copyElement$$.style.left = "-1000px";
    $copyElement$$.style.top = "-1000px";
    $copyElement$$.contentEditable = "true";
    $copyElement$$.textContent = this.$_lastSelectionRange$.toString();
    $document$$19$$.body.appendChild($copyElement$$);
    $event$$289_rangeToSelect$$ = $document$$19$$.createRange();
    $event$$289_rangeToSelect$$.selectNodeContents($copyElement$$);
    var $selection$$22$$ = window.getSelection();
    $selection$$22$$.removeAllRanges();
    $selection$$22$$.addRange($event$$289_rangeToSelect$$);
    $document$$19$$.execCommand("copy", !1, null);
    setTimeout(function() {
      $document$$19$$.body.removeChild($copyElement$$);
    }, 500);
  }
};
$JSCompiler_prototypeAlias$$.$_handlePaste$ = function $$JSCompiler_prototypeAlias$$$$_handlePaste$$($event$$290_pasteText$$) {
  var $agent$$574$$ = $AdfAgent$$.$AGENT$;
  if ($event$$290_pasteText$$.clipboardData && (this.$_isInPopup$() || !$AdfPage$$.$PAGE$.$getModalityManager$().$isGlassPaneVisible$())) {
    if (this.$_isInPopup$() && $agent$$574$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ && 536 > $agent$$574$$.$getVersion$()) {
      if (this.$_hasPasteEvent$) {
        return;
      }
      this.$_hasPasteEvent$ = !0;
      var $peer$$173$$ = this;
      setTimeout(function() {
        delete $peer$$173$$.$_hasPasteEvent$;
      }, 500);
    }
    $event$$290_pasteText$$ = $event$$290_pasteText$$.clipboardData.getData("Text");
    this.$_execCommand$("cmd_insert", $event$$290_pasteText$$);
  }
};
function $JSCompiler_StaticMethods__getSelectionStyling$$($JSCompiler_StaticMethods__getSelectionStyling$self$$, $styleKey$$4$$) {
  $AdfAssert$$.$assertString$($styleKey$$4$$);
  var $commandIdentifier$$12$$ = $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$styleKey$$4$$];
  $AdfAssert$$.$assertString$($commandIdentifier$$12$$);
  return $AdfEditingAgent$$.$getInstance$().queryCommandState($JSCompiler_StaticMethods__getSelectionStyling$self$$.$_getContentField$($JSCompiler_StaticMethods__getSelectionStyling$self$$.$getComponent$()), $commandIdentifier$$12$$);
}
$AdfDhtmlRichTextEditorPeer$$.$_getDummyInputField$ = function $$AdfDhtmlRichTextEditorPeer$$$$_getDummyInputField$$($editingAgent$$15$$, $inlineFrame$$89$$) {
  var $inputElement$$6$$ = $editingAgent$$15$$.$getInlineFrameDocument$($inlineFrame$$89$$).createElement("input");
  $inputElement$$6$$.type = "text";
  $inputElement$$6$$.style.position = "absolute";
  $inputElement$$6$$.style.left = "0px";
  $inputElement$$6$$.style.top = "0px";
  $inputElement$$6$$.style.height = "0px";
  $inputElement$$6$$.style.width = "0px";
  $inputElement$$6$$.style.opacity = "0";
  return $inputElement$$6$$;
};
function $JSCompiler_StaticMethods__emptySelection$$($selRange$$) {
  return !$selRange$$ || 0 == $AdfEditingAgent$$.$getInstance$().$getSelectionRangeString$($selRange$$).length;
}
$AdfDhtmlRichTextEditorPeer$$.prototype.$_toolbarPopupURLBlur$ = function $$AdfDhtmlRichTextEditorPeer$$$$$_toolbarPopupURLBlur$$($componentEvent$$435_value$$249$$) {
  $componentEvent$$435_value$$249$$.$getEventPhase$() != $AdfBaseEvent$$.$AT_TARGET_PHASE$ || $JSCompiler_StaticMethods__emptySelection$$(this.$_lastSelectionRange$) || ($componentEvent$$435_value$$249$$ = $componentEvent$$435_value$$249$$.$getCurrentTarget$().getValue(), "about:blank" !== $componentEvent$$435_value$$249$$ && (/^http:\/\//.test($componentEvent$$435_value$$249$$) || ($componentEvent$$435_value$$249$$ = "http://" + $componentEvent$$435_value$$249$$), this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$COMMAND_LINK$, 
  $componentEvent$$435_value$$249$$), $JSCompiler_StaticMethods__saveSelection$$(this)));
};
$AdfDhtmlRichTextEditorPeer$$.prototype.$_toolbarPopupDisplayedTextBlur$ = function $$AdfDhtmlRichTextEditorPeer$$$$$_toolbarPopupDisplayedTextBlur$$($componentEvent$$436_value$$250$$) {
  if ($componentEvent$$436_value$$250$$.$getEventPhase$() == $AdfBaseEvent$$.$AT_TARGET_PHASE$) {
    var $selRange$$2_selectionRangeString$$ = this.$_lastSelectionRange$, $editingAgent$$16$$ = $AdfEditingAgent$$.$getInstance$();
    $JSCompiler_StaticMethods__emptySelection$$($selRange$$2_selectionRangeString$$) || ($componentEvent$$436_value$$250$$ = $componentEvent$$436_value$$250$$.$getCurrentTarget$().getValue(), $selRange$$2_selectionRangeString$$ = $editingAgent$$16$$.$getSelectionRangeString$($selRange$$2_selectionRangeString$$), $componentEvent$$436_value$$250$$ !== $selRange$$2_selectionRangeString$$ && this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$COMMAND_INSERT$, $componentEvent$$436_value$$250$$));
  }
};
function $JSCompiler_StaticMethods__getToolbarPopupNode$$($component$$2000$$) {
  return $AdfAgent$$.$AGENT$.getElementById($AdfRichUIPeer$$.$CreateSubId$($component$$2000$$.$getClientId$(), $AdfDhtmlRichTextEditorPeer$$.$_TOOLBAR_POPUP_CONTAINER_ID$));
}
function $JSCompiler_StaticMethods__getToolbarPopupInputContainer$$($component$$2001$$) {
  return $AdfAgent$$.$AGENT$.getElementById($component$$2001$$.getId() + $AdfDhtmlRichTextEditorPeer$$.$_TOOLBAR_POPUP_INPUT_CONTAINER_ID$);
}
function $JSCompiler_StaticMethods__getToolbarPopupURLComp$$($component$$2002$$) {
  return $AdfPage$$.$PAGE$.$findComponent$($component$$2002$$.getId() + $AdfDhtmlRichTextEditorPeer$$.$_TOOLBAR_POPUP_LINK_INPUT_ID$);
}
function $JSCompiler_StaticMethods__getToolbarPopupDisplayedTextComp$$($component$$2003$$) {
  return $AdfPage$$.$PAGE$.$findComponent$($component$$2003$$.getId() + $AdfDhtmlRichTextEditorPeer$$.$_TOOLBAR_POPUP_LINK_SELECTED_INPUT_ID$);
}
function $JSCompiler_StaticMethods__showToolbarPopup$$($JSCompiler_StaticMethods__showToolbarPopup$self$$) {
  var $agent$$575_toolbarPopupNode$$ = $AdfAgent$$.$AGENT$, $component$$2004$$ = $JSCompiler_StaticMethods__showToolbarPopup$self$$.$getComponent$(), $clientId$$421$$ = $component$$2004$$.$getClientId$(), $alignDom_dtComp$$1$$ = $agent$$575_toolbarPopupNode$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$421$$, $AdfDhtmlRichTextEditorPeer$$.$_CONTENT_INPUT_CONTAINER_SUBID$)), $agent$$575_toolbarPopupNode$$ = $JSCompiler_StaticMethods__getToolbarPopupNode$$($component$$2004$$), $hints$$101$$ = 
  {autodismiss:"autodismissAlways"};
  $hints$$101$$.alignElement = $alignDom_dtComp$$1$$;
  $hints$$101$$[AdfRichPopup.$HINT_ALIGN$] = AdfRichPopup.$ALIGN_BEFORE_START$;
  $hints$$101$$.focus = !1;
  $AdfDomUtils$$.setVisible($agent$$575_toolbarPopupNode$$, !0);
  if (!$JSCompiler_StaticMethods__showToolbarPopup$self$$.$_toolbarPopupListenerInitialized$) {
    var $alignDom_dtComp$$1$$ = $JSCompiler_StaticMethods__getToolbarPopupDisplayedTextComp$$($component$$2004$$), $urlComp$$ = $JSCompiler_StaticMethods__getToolbarPopupURLComp$$($component$$2004$$), $selectTextHandler$$ = function $$selectTextHandler$$$($JSCompiler_StaticMethods__showToolbarPopup$self$$) {
      $JSCompiler_StaticMethods__showToolbarPopup$self$$ = $JSCompiler_StaticMethods__showToolbarPopup$self$$.$getCurrentTarget$();
      $AdfDhtmlEditableValuePeer$$.$getContentNode$($JSCompiler_StaticMethods__showToolbarPopup$self$$, $JSCompiler_StaticMethods__showToolbarPopup$self$$.$getPeer$().$getDomElement$()).select();
    };
    $urlComp$$.addEventListener($AdfUIInputEvent$$.$BLUR_EVENT_TYPE$, $JSCompiler_StaticMethods__showToolbarPopup$self$$.$_toolbarPopupURLBlur$, $JSCompiler_StaticMethods__showToolbarPopup$self$$);
    $urlComp$$.addEventListener($AdfUIInputEvent$$.$FOCUS_EVENT_TYPE$, $selectTextHandler$$, $JSCompiler_StaticMethods__showToolbarPopup$self$$);
    $alignDom_dtComp$$1$$.addEventListener($AdfUIInputEvent$$.$BLUR_EVENT_TYPE$, $JSCompiler_StaticMethods__showToolbarPopup$self$$.$_toolbarPopupDisplayedTextBlur$, $JSCompiler_StaticMethods__showToolbarPopup$self$$);
    $alignDom_dtComp$$1$$.addEventListener($AdfUIInputEvent$$.$FOCUS_EVENT_TYPE$, $selectTextHandler$$, $JSCompiler_StaticMethods__showToolbarPopup$self$$);
    $JSCompiler_StaticMethods__showToolbarPopup$self$$.$_toolbarPopupListenerInitialized$ = !0;
  }
  $JSCompiler_StaticMethods__showToolbarPopup$self$$.$showPopup$($component$$2004$$, $agent$$575_toolbarPopupNode$$, $hints$$101$$, $clientId$$421$$);
}
$AdfDhtmlRichTextEditorPeer$$.prototype.$PopupClosed$ = function $$AdfDhtmlRichTextEditorPeer$$$$$PopupClosed$$($component$$2005$$, $contentDom$$39$$) {
  $AdfDhtmlRichTextEditorPeer$$.$superclass$.$PopupClosed$.call(this, $component$$2005$$, $contentDom$$39$$);
  var $contentNode$$92_popupDom$$6$$ = $JSCompiler_StaticMethods__getToolbarPopupNode$$($component$$2005$$);
  if ($contentNode$$92_popupDom$$6$$ == $contentDom$$39$$ && $AdfDomUtils$$.$isVisible$($contentNode$$92_popupDom$$6$$)) {
    var $agent$$576_contNode$$2$$ = $AdfAgent$$.$AGENT$, $compId$$2$$ = $component$$2005$$.getId(), $cicNode$$1_clientId$$422$$ = this.$getComponent$().$getClientId$(), $contentNode$$92_popupDom$$6$$ = $agent$$576_contNode$$2$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($cicNode$$1_clientId$$422$$, "content")), $cicNode$$1_clientId$$422$$ = $agent$$576_contNode$$2$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($cicNode$$1_clientId$$422$$, $AdfDhtmlRichTextEditorPeer$$.$_CONTENT_INPUT_CONTAINER_SUBID$)), 
    $agent$$576_contNode$$2$$ = $agent$$576_contNode$$2$$.getElementById($compId$$2$$ + $AdfDhtmlRichTextEditorPeer$$.$_TOOLBAR_POPUP_INPUT_CONTAINER_ID$);
    $contentNode$$92_popupDom$$6$$.insertBefore($contentDom$$39$$, $cicNode$$1_clientId$$422$$);
    $AdfDomUtils$$.setVisible($agent$$576_contNode$$2$$, !1);
    $AdfDomUtils$$.setVisible($contentDom$$39$$, !1);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.PopupClosed", {$PopupClosed$:$AdfDhtmlRichTextEditorPeer$$.prototype.$PopupClosed$});
