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$$1971_peer$$170$$) {
  if ($clientId$$417_component$$1971_peer$$170$$ = $AdfPage$$.$PAGE$.$findComponent$($clientId$$417_component$$1971_peer$$170$$)) {
    $clientId$$417_component$$1971_peer$$170$$ = $clientId$$417_component$$1971_peer$$170$$.$getPeer$(), $clientId$$417_component$$1971_peer$$170$$.$UpdateValue$(), $JSCompiler_StaticMethods__handleContextChangedForCommands$$($clientId$$417_component$$1971_peer$$170$$);
  }
};
$goog$exportSymbol$$("AdfDhtmlRichTextEditorPeer.HandleTimerUpdate", $AdfDhtmlRichTextEditorPeer$$.$HandleTimerUpdate$);
$AdfDhtmlRichTextEditorPeer$$.prototype.Init = function $$AdfDhtmlRichTextEditorPeer$$$$Init$($component$$1972$$) {
  $AdfDhtmlRichTextEditorPeer$$.$superclass$.Init.call(this, $component$$1972$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.Init", {Init:$AdfDhtmlRichTextEditorPeer$$.prototype.Init});
$AdfDhtmlRichTextEditorPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlRichTextEditorPeer$$$$$InitDomElement$$($component$$1973$$, $domElement$$432$$) {
  var $readOnly$$7_rteContentField$$1$$ = $component$$1973$$.getReadOnly(), $clientId$$418$$ = $component$$1973$$.$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$$1973$$);
  }
  $AdfDhtmlRichTextEditorPeer$$.$superclass$.$InitDomElement$.call(this, $component$$1973$$, $domElement$$432$$);
  this.$_isTouch$ = $agent$$563$$.$isTouchFirstDevice$();
  $readOnly$$7_rteContentField$$1$$ ? ($readOnly$$7_rteContentField$$1$$ = $JSCompiler_StaticMethods__getReadOnlyContentField$$($component$$1973$$), $readOnly$$7_rteContentField$$1$$.innerHTML = $readOnly$$7_rteContentField$$1$$.textContent) : (this.$_modeButtonRichTextClientId$ = $clientId$$418$$ + "_afrModeRichText", this.$_modeButtonCodeClientId$ = $clientId$$418$$ + "_afrModeCode", "popup" === $component$$1973$$.getToolbarDisplay() && (this.$_toolbarPopupListenerInitialized$ = !1), this.$_createIframe$($component$$1973$$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlRichTextEditorPeer$$.prototype.$InitDomElement$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$GetReadyState$ = function $$AdfDhtmlRichTextEditorPeer$$$$$GetReadyState$$() {
  var $component$$1974_iframeDomElement$$1$$ = this.$getComponent$();
  if (($component$$1974_iframeDomElement$$1$$ = this.$_getContentField$($component$$1974_iframeDomElement$$1$$)) && "1" === $component$$1974_iframeDomElement$$1$$.getAttribute("data-afr-rte-loaded")) {
    $AdfLogger$$.$LOGGER$.fine("AdfDhtmlRichTextEditorPeer.GetReadyState: RTE loaded");
    try {
      if ("complete" === $component$$1974_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$$517$$ = $clientId$$419_height$$44_newWidth$$57$$ = 0, $j$$52$$ = $agent$$564_childNodes$$29_oldHeight$$31$$.length;$i$$517$$ < $j$$52$$;$i$$517$$++) {
      $agent$$564_childNodes$$29_oldHeight$$31$$[$i$$517$$] !== $cicNode_oldWidth$$34$$ && ($clientId$$419_height$$44_newWidth$$57$$ += $agent$$564_childNodes$$29_oldHeight$$31$$[$i$$517$$].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$$1976_contentField$$1$$ = this.$getComponent$();
  if (this.$isCodeEditingMode$()) {
    $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1976_contentField$$1$$).focus();
  } else {
    $component$$1976_contentField$$1$$ = this.$_getContentField$($component$$1976_contentField$$1$$);
    if ("IFRAME" == $component$$1976_contentField$$1$$.nodeName && $component$$1976_contentField$$1$$ != document.activeElement) {
      try {
        var $containerDiv_isIE11$$ = $component$$1976_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$$1976_contentField$$1$$;
    if ($agent$$565_isChrome$$ || $isContainerDivTabIdx_isEdge$$) {
      $focusElement$$5$$ = $editingAgent$$2$$.$getFocusBlurElement$($component$$1976_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$$1977_inlineFrame$$86$$) {
  var $editingAgent$$3$$ = $AdfEditingAgent$$.$getInstance$();
  $component$$1977_inlineFrame$$86$$ = this.$_getContentField$($component$$1977_inlineFrame$$86$$);
  return $editingAgent$$3$$.$getSelectionRange$($component$$1977_inlineFrame$$86$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.getSelectionRange", {$getSelectionRange$:$AdfDhtmlRichTextEditorPeer$$.prototype.$getSelectionRange$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleCodeEditingModeChange$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleCodeEditingModeChange$$($component$$1978_innerHtml$$) {
  var $richTextField$$2_toolboxComponent$$ = $JSCompiler_StaticMethods__getToolboxComponent$$(this, $component$$1978_innerHtml$$);
  this.$visitChildren$($richTextField$$2_toolboxComponent$$, $AdfDhtmlRichTextEditorPeer$$.$_toolboxVisitChildrenCallback$, this, !0);
  var $editingAgent$$4$$ = $AdfEditingAgent$$.$getInstance$(), $richTextField$$2_toolboxComponent$$ = this.$_getContentField$($component$$1978_innerHtml$$), $codeField$$1$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1978_innerHtml$$);
  this.$isCodeEditingMode$() ? ($component$$1978_innerHtml$$ = this.$getCurrentContent$($component$$1978_innerHtml$$), $codeField$$1$$.value = "" + $component$$1978_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$$1978_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$$425_target$$174$$) {
  $AdfDhtmlRichTextEditorPeer$$.$superclass$.$HandleComponentClick$.call(this, $componentEvent$$425_target$$174$$);
  ($componentEvent$$425_target$$174$$ = $componentEvent$$425_target$$174$$.$getNativeEventTarget$()) && "LABEL" == $componentEvent$$425_target$$174$$.nodeName && this.focus(this.$getComponent$());
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentMouseDown$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentMouseDown$$($componentEvent$$426$$) {
  $JSCompiler_StaticMethods__handleClonedEvent$$(this, $componentEvent$$426$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentMouseDown", {$HandleComponentMouseDown$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentMouseDown$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentMouseUp$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentMouseUp$$($componentEvent$$427$$) {
  $JSCompiler_StaticMethods__handleClonedEvent$$(this, $componentEvent$$427$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentMouseUp", {$HandleComponentMouseUp$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentMouseUp$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentKeyDown$$($componentEvent$$428$$) {
  $JSCompiler_StaticMethods__handleClonedEvent$$(this, $componentEvent$$428$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentKeyUp$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentKeyUp$$($componentEvent$$429$$) {
  $JSCompiler_StaticMethods__handleClonedEvent$$(this, $componentEvent$$429$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentKeyUp", {$HandleComponentKeyUp$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentKeyUp$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentAction$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentAction$$($componentEvent$$430$$) {
  this.$_styleBindingActionListener$($componentEvent$$430$$);
  this.$_commandBindingActionListener$($componentEvent$$430$$);
};
$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_3813$$ = $AdfAgent$$.$AGENT$;
      if (void 0 != this.$_styleObservers$) {
        var $length$$inline_3814$$ = this.$_styleObservers$.length, $oldStyleValues$$inline_3815$$ = this.$_oldStyleValues$;
        void 0 == $oldStyleValues$$inline_3815$$ && ($oldStyleValues$$inline_3815$$ = {});
        for (var $cached$$inline_3816$$ = {}, $i$$inline_3817$$ = 0;$i$$inline_3817$$ < $length$$inline_3814$$;$i$$inline_3817$$++) {
          var $observerObj$$inline_3818$$ = this.$_styleObservers$[$i$$inline_3817$$], $styleKey$$inline_3819$$ = $observerObj$$inline_3818$$.$styleKey$, $listenerComponent$$inline_3820$$ = $AdfPage$$.$PAGE$.$findComponent$($observerObj$$inline_3818$$.$componentId$);
          $AdfAssert$$.assert($listenerComponent$$inline_3820$$);
          var $value$$inline_3821$$ = null;
          void 0 == $cached$$inline_3816$$[$styleKey$$inline_3819$$] ? ($value$$inline_3821$$ = $JSCompiler_StaticMethods__getSelectionStyling$$(this, $styleKey$$inline_3819$$), null != $value$$inline_3821$$ && ($cached$$inline_3816$$[$styleKey$$inline_3819$$] = $value$$inline_3821$$)) : $value$$inline_3821$$ = $cached$$inline_3816$$[$styleKey$$inline_3819$$];
          if ($oldStyleValues$$inline_3815$$[$styleKey$$inline_3819$$] !== $value$$inline_3821$$ && null != $value$$inline_3821$$) {
            var $commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$ = !1;
            if ($styleKey$$inline_3819$$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_COLOR_BACKGROUND$ || $styleKey$$inline_3819$$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_COLOR_FOREGROUND$) {
              $value$$inline_3821$$ = $AdfEditingAgent$$.$getInstance$().$getColor$($value$$inline_3821$$);
            } else {
              if ($styleKey$$inline_3819$$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_SIZE$) {
                $value$$inline_3821$$ = $JSCompiler_StaticMethods__getOneThroughSevenFontSize$$($value$$inline_3821$$), 0 < $value$$inline_3821$$ && 8 > $value$$inline_3821$$ ? $value$$inline_3821$$ += "" : ($value$$inline_3821$$ = "2", $commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$ = !0);
              } else {
                if ($styleKey$$inline_3819$$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_NAME$ && $listenerComponent$$inline_3820$$ instanceof AdfRichSelectOneChoice) {
                  var $selectItems$$inline_3823$$ = $listenerComponent$$inline_3820$$.$getSelectItems$(), $selectItemsLength$$inline_3824$$ = $selectItems$$inline_3823$$.length, $matched$$inline_3825$$ = !1;
                  null != $value$$inline_3821$$ && $agent$$inline_3813$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ && ($value$$inline_3821$$ = ("" + $value$$inline_3821$$).replace(/['"]+/g, ""), $value$$inline_3821$$ = ("" + $value$$inline_3821$$).replace(/, /gi, ","));
                  for (var $bestMatch$$inline_3827_j$$inline_3826$$ = 0;$bestMatch$$inline_3827_j$$inline_3826$$ < $selectItemsLength$$inline_3824$$;$bestMatch$$inline_3827_j$$inline_3826$$++) {
                    if ($selectItems$$inline_3823$$[$bestMatch$$inline_3827_j$$inline_3826$$].getLabel() == $value$$inline_3821$$) {
                      $value$$inline_3821$$ = $selectItems$$inline_3823$$[$bestMatch$$inline_3827_j$$inline_3826$$].getValue();
                      $matched$$inline_3825$$ = !0;
                      break;
                    }
                  }
                  if (!$matched$$inline_3825$$) {
                    for (var $bestMatch$$inline_3827_j$$inline_3826$$ = Number.MAX_VALUE, $match$$inline_3828$$, $matchedValue$$inline_3829$$, $k$$inline_3830$$ = 0;$k$$inline_3830$$ < $selectItemsLength$$inline_3824$$;$k$$inline_3830$$++) {
                      -1 < ($match$$inline_3828$$ = $selectItems$$inline_3823$$[$k$$inline_3830$$].getValue().search($value$$inline_3821$$)) && ($match$$inline_3828$$ < $bestMatch$$inline_3827_j$$inline_3826$$ && ($bestMatch$$inline_3827_j$$inline_3826$$ = $match$$inline_3828$$, $matchedValue$$inline_3829$$ = $selectItems$$inline_3823$$[$k$$inline_3830$$].getValue()), $matched$$inline_3825$$ = !0);
                    }
                    if (!$matched$$inline_3825$$) {
                      for ($k$$inline_3830$$ = 1;$k$$inline_3830$$ < $selectItemsLength$$inline_3824$$;$k$$inline_3830$$++) {
                        -1 < ($match$$inline_3828$$ = $value$$inline_3821$$.search($selectItems$$inline_3823$$[$k$$inline_3830$$].getLabel())) && ($match$$inline_3828$$ < $bestMatch$$inline_3827_j$$inline_3826$$ && ($bestMatch$$inline_3827_j$$inline_3826$$ = $match$$inline_3828$$, $matchedValue$$inline_3829$$ = $selectItems$$inline_3823$$[$k$$inline_3830$$].getValue()), $matched$$inline_3825$$ = !0);
                      }
                    }
                    $value$$inline_3821$$ = $matched$$inline_3825$$ ? $matchedValue$$inline_3829$$ : $selectItems$$inline_3823$$[0].getValue();
                  }
                }
              }
            }
            $commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$ || ($commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$ = $styleKey$$inline_3819$$, $AdfAssert$$.$assertString$($commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$), $commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$ = 
            $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$], $AdfAssert$$.$assertString$($commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$), $AdfEditingAgent$$.$getInstance$().$queryCommandIndeterminate$(this.$_getContentField$(this.$getComponent$()), $commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$));
            $commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$ = $listenerComponent$$inline_3820$$.$getProperty$($observerObj$$inline_3818$$.propertyName);
            $AdfUIUtils$$.$compareValues$($commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$, $value$$inline_3821$$) || ("value" == $observerObj$$inline_3818$$.propertyName && ($commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$ = $styleKey$$inline_3819$$, $AdfAssert$$.$assertString$($commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$), 
            void 0 == this.$_ignoreEvents$[$commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$] && (this.$_ignoreEvents$[$commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$] = 0), this.$_ignoreEvents$[$commandIdentifier$$inline_6029_indeterminateValue$$inline_3822_oldValue$$inline_3831_styleKey$$inline_6028_styleKey$$inline_6032$$]++), $listenerComponent$$inline_3820$$.setProperty($observerObj$$inline_3818$$.propertyName, 
            $value$$inline_3821$$, !1, !1), $styleKey$$inline_3819$$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_SIZE$ && $AdfPage$$.$PAGE$.$clearMessages$($listenerComponent$$inline_3820$$.$getClientId$()));
          }
        }
        this.$_oldStyleValues$ = $cached$$inline_3816$$;
      }
    }
  }
};
$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$$1979$$, $domElement$$433$$) {
  if (this.$_isTouch$ && this.$WasSubmitted$($component$$1979$$)) {
    var $lastValue$$8_richTextField$$3$$ = this.$_getContentField$($component$$1979$$), $domNode$$84_newValue$$133$$ = this.$getCurrentContent$($component$$1979$$), $lastValue$$8_richTextField$$3$$ = $AdfDhtmlInputBasePeer$$.$getLastValue$($lastValue$$8_richTextField$$3$$);
    $lastValue$$8_richTextField$$3$$ != $domNode$$84_newValue$$133$$ && void 0 !== $lastValue$$8_richTextField$$3$$ && this.$UpdateValue$();
  }
  if ($component$$1979$$.getReadOnly()) {
    return $domNode$$84_newValue$$133$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1979$$, $domElement$$433$$), $domNode$$84_newValue$$133$$.innerHTML;
  }
  $domNode$$84_newValue$$133$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1979$$);
  return $domNode$$84_newValue$$133$$.value;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.GetSubmittedValue", {$GetSubmittedValue$:$AdfDhtmlRichTextEditorPeer$$.prototype.$GetSubmittedValue$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$UpdateValue$ = function $$AdfDhtmlRichTextEditorPeer$$$$$UpdateValue$$() {
  var $component$$1980$$ = this.$getComponent$(), $richTextField$$4$$ = this.$_getContentField$($component$$1980$$);
  this.$_keyTimer$ && (clearTimeout(this.$_keyTimer$), delete this.$_keyTimer$);
  if ("none" != $richTextField$$4$$.style.display) {
    var $contentNode$$89$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1980$$), $editingAgent$$5$$ = $AdfEditingAgent$$.$getInstance$(), $newValue$$134$$ = this.$getCurrentContent$($component$$1980$$), $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$$1980$$, $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$$1981$$) {
  var $observers$$5$$ = this.$_styleObservers$;
  if (void 0 != $observers$$5$$) {
    for (var $length$$75$$ = $observers$$5$$.length, $listener$$112$$ = this.$_styleBindingActionListener$, $i$$518$$ = 0;$i$$518$$ < $length$$75$$;$i$$518$$++) {
      var $observer$$5$$ = $observers$$5$$[$i$$518$$], $boundComponent$$2$$ = $AdfPage$$.$PAGE$.$findComponent$($observer$$5$$.$componentId$);
      void 0 != $boundComponent$$2$$ && ($observer$$5$$.$eventType$ == $AdfActionEvent$$.$ACTION_EVENT_TYPE$ && $boundComponent$$2$$.$isDescendant$($component$$1981$$) || $boundComponent$$2$$.removeEventListener($observer$$5$$.$eventType$, $listener$$112$$, this));
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.RemoveStyleBindings", {$RemoveStyleBindings$:$AdfDhtmlRichTextEditorPeer$$.prototype.$RemoveStyleBindings$});
$AdfDhtmlRichTextEditorPeer$$.$_toolboxVisitChildrenCallback$ = function $$AdfDhtmlRichTextEditorPeer$$$$_toolboxVisitChildrenCallback$$($component$$1982_domElement$$434$$) {
  var $result$$23$$ = 0, $codeEditingMode$$ = this.$isCodeEditingMode$();
  if ($component$$1982_domElement$$434$$ instanceof AdfRichCommandToolbarButton) {
    var $clientId$$420$$ = $component$$1982_domElement$$434$$.$getClientId$();
    $clientId$$420$$ != this.$_modeButtonRichTextClientId$ && $clientId$$420$$ != this.$_modeButtonCodeClientId$ && ($component$$1982_domElement$$434$$.setProperty("selected", !1, !1, $AdfUIComponent$$.$PROPAGATE_IF_KNOWN_PROPERTY$), $component$$1982_domElement$$434$$.setProperty("disabled", $codeEditingMode$$, !1, $AdfUIComponent$$.$PROPAGATE_IF_KNOWN_PROPERTY$), $result$$23$$ = 1);
  } else {
    $component$$1982_domElement$$434$$ instanceof AdfRichSelectOneChoice || $component$$1982_domElement$$434$$ instanceof AdfRichInputNumberSpinbox || $component$$1982_domElement$$434$$ instanceof AdfRichInputColor ? ($component$$1982_domElement$$434$$.setProperty("disabled", $codeEditingMode$$, !1, $AdfUIComponent$$.$PROPAGATE_IF_KNOWN_PROPERTY$), $result$$23$$ = 1) : $component$$1982_domElement$$434$$ instanceof AdfRichPanelGroupLayout && ($component$$1982_domElement$$434$$ = $AdfRichUIPeer$$.$getDomElementForComponent$($component$$1982_domElement$$434$$), 
    $codeEditingMode$$ ? $AdfDomUtils$$.$addCSSClassName$($component$$1982_domElement$$434$$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$) : $AdfDomUtils$$.$removeCSSClassName$($component$$1982_domElement$$434$$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$), $result$$23$$ = 1);
  }
  return $result$$23$$;
};
$JSCompiler_prototypeAlias$$ = $AdfDhtmlRichTextEditorPeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_handleMouseUp$ = function $$JSCompiler_prototypeAlias$$$$_handleMouseUp$$($event$$279_target$$175$$) {
  this.$HandleContextChanged$();
  var $agentName$$9$$ = navigator.userAgent.toLowerCase();
  $event$$279_target$$175$$ = $event$$279_target$$175$$.target;
  -1 != $agentName$$9$$.indexOf("chrome") && "html" == $event$$279_target$$175$$.nodeName.toLowerCase() ? $event$$279_target$$175$$.getElementsByTagName("body")[0].focus() : -1 != $agentName$$9$$.indexOf("edge") && "body" == $event$$279_target$$175$$.nodeName.toLowerCase() && $event$$279_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$$1983_equals_key_toolBarComp_value$$241$$ = 187, $editMode_equals_key_2$$ = $component$$1983_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$$1983_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$$1983_equals_key_toolBarComp_value$$241$$ = this.$getComponent$(), $editMode_equals_key_2$$ = $component$$1983_equals_key_toolBarComp_value$$241$$.getEditMode(), $minus_key_toolbarElement$$ = $JSCompiler_StaticMethods__getToolbarPopupNode$$($component$$1983_equals_key_toolBarComp_value$$241$$), $isGecko$$3_isToolbarPopupVisible_keyCode$$96$$ = "popup" === $component$$1983_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$$1983_equals_key_toolBarComp_value$$241$$))) : ($AdfEditingAgent$$.$getInstance$().$handleTab$(this.$_getContentField$($component$$1983_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$$1983_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$$1983_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$$1983_equals_key_toolBarComp_value$$241$$ = $AdfPage$$.$PAGE$.$findComponent$(this.$getComponent$().$getClientId$() + "_afrToolbox")) && $component$$1983_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$$1983_equals_key_toolBarComp_value$$241$$ = $JSCompiler_StaticMethods__getOneThroughSevenFontSize$$($JSCompiler_StaticMethods__queryCommandValue$$(this));
              1 < $component$$1983_equals_key_toolBarComp_value$$241$$ && this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_SIZE$, +$component$$1983_equals_key_toolBarComp_value$$241$$ - 1);
              break;
            case 221:
              $component$$1983_equals_key_toolBarComp_value$$241$$ = $JSCompiler_StaticMethods__getOneThroughSevenFontSize$$($JSCompiler_StaticMethods__queryCommandValue$$(this));
              7 > $component$$1983_equals_key_toolBarComp_value$$241$$ && this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_SIZE$, +$component$$1983_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$$1984$$) {
  var $editingAgent$$6$$ = $AdfEditingAgent$$.$getInstance$(), $range$$17$$ = $editingAgent$$6$$.$getSelectionRange$($JSCompiler_StaticMethods__saveSelection$self_component$$1984$$.$_getContentField$($JSCompiler_StaticMethods__saveSelection$self_component$$1984$$.$getComponent$()));
  $JSCompiler_StaticMethods__saveSelection$self_component$$1984$$.$_isTouch$ ? null != $range$$17$$ && ($JSCompiler_StaticMethods__saveSelection$self_component$$1984$$.$_lastSelectionRange$ = $range$$17$$) : $JSCompiler_StaticMethods__saveSelection$self_component$$1984$$.$_lastSelectionRange$ = $range$$17$$;
  $JSCompiler_StaticMethods__saveSelection$self_component$$1984$$ = $JSCompiler_StaticMethods__saveSelection$self_component$$1984$$.$getComponent$();
  if ("popup" === $JSCompiler_StaticMethods__saveSelection$self_component$$1984$$.getToolbarDisplay()) {
    var $contNode$$1$$ = $JSCompiler_StaticMethods__getToolbarPopupInputContainer$$($JSCompiler_StaticMethods__saveSelection$self_component$$1984$$);
    $AdfDomUtils$$.$isVisible$($contNode$$1$$) && $JSCompiler_StaticMethods__getToolbarPopupDisplayedTextComp$$($JSCompiler_StaticMethods__saveSelection$self_component$$1984$$).setValue($editingAgent$$6$$.$getSelectionRangeString$($range$$17$$));
  }
}
function $JSCompiler_StaticMethods__handleClonedEvent$$($JSCompiler_StaticMethods__handleClonedEvent$self$$, $componentEvent$$431$$) {
  var $evt$$143$$ = $componentEvent$$431$$.$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$$431$$.cancel = function $$componentEvent$$431$$$cancel$() {
      $AdfDomUIInputEvent$$.$superclass$.cancel.call($componentEvent$$431$$);
      $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$$1985$$ = $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$.$getComponent$(), $contentField$$2$$ = $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$.$_getContentField$($component$$1985$$), $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$$519$$ = 0;$i$$519$$ < $length$$76$$;$i$$519$$++) {
      var $listenerComponent$$2_observerObj$$4$$ = $commandObservers$$1$$[$i$$519$$], $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_3833_currentLinkURL$$inline_3837_execCommandKey$$ = $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$commandKey$$2$$];
        $cached$$1$$[$commandKey$$2$$] = null == $JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3833_currentLinkURL$$inline_3837_execCommandKey$$ ? null : $editingAgent$$7$$.queryCommandEnabled($component$$1985$$, $contentField$$2$$, $JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3833_currentLinkURL$$inline_3837_execCommandKey$$);
      }
      if ($commandKey$$2$$ === $AdfDhtmlRichTextEditorPeer$$.$COMMAND_LINK$ && "popup" === $component$$1985$$.getToolbarDisplay()) {
        var $JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3833_currentLinkURL$$inline_3837_execCommandKey$$ = $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$, $component$$inline_3834$$ = $JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3833_currentLinkURL$$inline_3837_execCommandKey$$.$getComponent$(), $contNode$$inline_3835_inputComp$$inline_3836$$ = $JSCompiler_StaticMethods__getToolbarPopupInputContainer$$($component$$inline_3834$$);
        $AdfDomUtils$$.$isVisible$($contNode$$inline_3835_inputComp$$inline_3836$$) && ($contNode$$inline_3835_inputComp$$inline_3836$$ = $JSCompiler_StaticMethods__getToolbarPopupURLComp$$($component$$inline_3834$$), $JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3833_currentLinkURL$$inline_3837_execCommandKey$$ = $JSCompiler_StaticMethods__getLinkURLForSelection$$($AdfEditingAgent$$.$getInstance$(), $component$$inline_3834$$, $JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3833_currentLinkURL$$inline_3837_execCommandKey$$.$_getContentField$($component$$inline_3834$$)), 
        $contNode$$inline_3835_inputComp$$inline_3836$$.setValue($JSCompiler_StaticMethods__updateToolbarPopupURLVal$self$$inline_3833_currentLinkURL$$inline_3837_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$$1986_src$$10$$) {
  var $agent$$567$$ = $AdfAgent$$.$AGENT$, $contentField$$3$$ = this.$_getContentField$($component$$1986_src$$10$$), $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$$1986_src$$10$$.getContentDelivery() ? $iframe$$3$$.src = $page$$200$$.$getLazyFetchURI$($component$$1986_src$$10$$.$getClientId$()) : ($component$$1986_src$$10$$ = $contentField$$3$$.getAttribute("src")) && "" != $component$$1986_src$$10$$ && ($iframe$$3$$.src = $component$$1986_src$$10$$);
  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$$1987$$) {
  var $contentField$$4$$ = $JSCompiler_StaticMethods__makeEditable$self$$.$_getContentField$($component$$1987$$);
  $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$$1988$$) {
  var $toolboxClientId$$ = $JSCompiler_StaticMethods__getToolboxComponent$self$$.$_toolboxClientId$;
  null == $toolboxClientId$$ && ($toolboxClientId$$ = $component$$1988$$.$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$$1989$$ = this.$getComponent$(), $element$$289$$;
    $key$$91$$ == $AdfDhtmlRichTextEditorPeer$$.$COMMAND_INSERT$ && 1 == this.$isCodeEditingMode$() ? $element$$289$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1989$$) : ($element$$289$$ = this.$_getContentField$($component$$1989$$), $AdfAssert$$.$assertDomElement$($element$$289$$, "IFRAME"), this.$_isTouch$ && $agent$$568_editingAgent$$9$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ && $element$$289$$.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$$289$$)) {
      var $JSCompiler_inline_result$$216_element$$inline_3843$$;
      a: {
        $JSCompiler_inline_result$$216_element$$inline_3843$$ = $element$$289$$;
        var $commands$$inline_3846$$ = [], $editingAgent$$inline_3854_tempCommand$$inline_3847$$, $styles$$inline_3848$$ = [$AdfDhtmlRichTextEditorPeer$$.$STYLE_BOLD$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_ITALIC$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_UNDERLINE$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_STRIKETHROUGH$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_SUPERSCRIPT$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_SUBSCRIPT$], $oldStyleValues$$inline_3849$$ = this.$_oldStyleValues$;
        if (void 0 == $oldStyleValues$$inline_3849$$) {
          $JSCompiler_inline_result$$216_element$$inline_3843$$ = !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_3843$$ = !0;
              break a;
          }
          var $result$$inline_3850$$ = !0, $index$$inline_3851$$;
          for ($index$$inline_3851$$ = 0;$index$$inline_3851$$ < $styles$$inline_3848$$.length;++$index$$inline_3851$$) {
            if ($editingAgent$$inline_3854_tempCommand$$inline_3847$$ = $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$styles$$inline_3848$$[$index$$inline_3851$$]], void 0 != $editingAgent$$inline_3854_tempCommand$$inline_3847$$) {
              if ($editingAgent$$inline_3854_tempCommand$$inline_3847$$ == $command$$15$$) {
                $oldStyleValues$$inline_3849$$[$styles$$inline_3848$$[$index$$inline_3851$$]] && !$JSCompiler_StaticMethods__getSelectionStyling$$(this, $styles$$inline_3848$$[$index$$inline_3851$$]) && ($result$$inline_3850$$ = !1);
              } else {
                var $oldValue$$inline_3852$$ = $oldStyleValues$$inline_3849$$[$styles$$inline_3848$$[$index$$inline_3851$$]], $selectionStyle$$inline_3853$$ = $JSCompiler_StaticMethods__getSelectionStyling$$(this, $styles$$inline_3848$$[$index$$inline_3851$$]);
                void 0 !== $oldValue$$inline_3852$$ && $oldValue$$inline_3852$$ != $selectionStyle$$inline_3853$$ && ($commands$$inline_3846$$[$commands$$inline_3846$$.length] = $editingAgent$$inline_3854_tempCommand$$inline_3847$$);
              }
            }
          }
          $editingAgent$$inline_3854_tempCommand$$inline_3847$$ = $AdfEditingAgent$$.$getInstance$();
          for ($index$$inline_3851$$ = 0;$index$$inline_3851$$ < $commands$$inline_3846$$.length;++$index$$inline_3851$$) {
            $editingAgent$$inline_3854_tempCommand$$inline_3847$$.execCommand($component$$1989$$, $JSCompiler_inline_result$$216_element$$inline_3843$$, $commands$$inline_3846$$[$index$$inline_3851$$], $value$$245$$);
          }
          $JSCompiler_inline_result$$216_element$$inline_3843$$ = $result$$inline_3850$$;
        }
      }
      $JSCompiler_inline_result$$216_element$$inline_3843$$ && $agent$$568_editingAgent$$9$$.execCommand($component$$1989$$, $element$$289$$, $command$$15$$, $value$$245$$);
    } else {
      $agent$$568_editingAgent$$9$$.execCommand($component$$1989$$, $element$$289$$, $command$$15$$, $value$$245$$);
    }
  }
};
function $JSCompiler_StaticMethods__queryCommandValue$$($JSCompiler_StaticMethods__queryCommandValue$self_element$$291$$) {
  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$$1991$$ = $JSCompiler_StaticMethods__queryCommandValue$self_element$$291$$.$getComponent$();
  $JSCompiler_StaticMethods__queryCommandValue$self_element$$291$$ = $JSCompiler_StaticMethods__queryCommandValue$self_element$$291$$.$_getContentField$($component$$1991$$);
  $AdfAssert$$.$assertDomElement$($JSCompiler_StaticMethods__queryCommandValue$self_element$$291$$, "IFRAME");
  return $AdfEditingAgent$$.$getInstance$().queryCommandValue($JSCompiler_StaticMethods__queryCommandValue$self_element$$291$$, $command$$17_key$$92$$);
}
$JSCompiler_prototypeAlias$$.$_styleBindingActionListener$ = function $$JSCompiler_prototypeAlias$$$$_styleBindingActionListener$$($event$$280$$) {
  if (void 0 != this.$_styleObservers$ && !this.$_commandBeingProcessed$) {
    this.$_commandBeingProcessed$ = !0;
    for (var $eventComponentId$$2$$ = $event$$280$$.getSource().$getClientId$(), $observers$$6$$ = this.$_styleObservers$, $length$$78$$ = $observers$$6$$.length, $i$$521$$ = 0;$i$$521$$ < $length$$78$$;$i$$521$$++) {
      var $isIE11$$1_observer$$6_styleKey$$inline_3860$$ = $observers$$6$$[$i$$521$$];
      if ($isIE11$$1_observer$$6_styleKey$$inline_3860$$.$componentId$ == $eventComponentId$$2$$) {
        $event$$280$$.$setPartial$(!0);
        var $JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$;
        $JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$ = $isIE11$$1_observer$$6_styleKey$$inline_3860$$.$styleKey$;
        $AdfAssert$$.$assertString$($JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$);
        void 0 == this.$_ignoreEvents$[$JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$] || 0 == this.$_ignoreEvents$[$JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$] ? $JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$ = !1 : (this.$_ignoreEvents$[$JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$]--, $JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$ = !0);
        $JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$ || ($isIE11$$1_observer$$6_styleKey$$inline_3860$$.$eventType$ == $AdfActionEvent$$.$ACTION_EVENT_TYPE$ ? ($isIE11$$1_observer$$6_styleKey$$inline_3860$$ = $isIE11$$1_observer$$6_styleKey$$inline_3860$$.$styleKey$, $AdfAssert$$.$assertString$($isIE11$$1_observer$$6_styleKey$$inline_3860$$), this.$_execCommand$($isIE11$$1_observer$$6_styleKey$$inline_3860$$, null)) : $isIE11$$1_observer$$6_styleKey$$inline_3860$$.$eventType$ == 
        $AdfValueChangeEvent$$.$VALUE_CHANGE_TYPE$ ? (($JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$ = $event$$280$$.$getNewValue$()) && $JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$.$_class$ && "TrColor" == $JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$.$_class$ && ($JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$ = (new TrColorConverter(["#RRGGBB"], !1)).getAsString($JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$), 
        $isIE11$$1_observer$$6_styleKey$$inline_3860$$.$styleKey$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_COLOR_BACKGROUND$ && (this.$_oldStyleValues$[$isIE11$$1_observer$$6_styleKey$$inline_3860$$.$styleKey$] = $JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$)), this.$_execCommand$($isIE11$$1_observer$$6_styleKey$$inline_3860$$.$styleKey$, $JSCompiler_inline_result$$217_styleKey$$inline_3857_value$$247$$)) : $AdfLogger$$.$LOGGER$.severe("This eventType (", eventType, ") is not supported by richTextEditor."), 
        this.$HandleContextChanged$());
        $isIE11$$1_observer$$6_styleKey$$inline_3860$$ = $AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ && 11 == $AdfAgent$$.$AGENT$.$getVersion$();
        !this.$_hadFirstFocus$ || $isIE11$$1_observer$$6_styleKey$$inline_3860$$ && $JSCompiler_StaticMethods__isComponentHavingFocus$$(this) || this.focus(this.$getComponent$());
        $event$$280$$.cancel();
      }
    }
    this.$UpdateValue$();
    delete this.$_commandBeingProcessed$;
  }
};
function $JSCompiler_StaticMethods__isComponentHavingFocus$$($JSCompiler_StaticMethods__isComponentHavingFocus$self_contentNode$$90$$) {
  var $activeElement$$13_component$$1992$$ = $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$$1992$$) : $JSCompiler_StaticMethods__isComponentHavingFocus$self_contentNode$$90$$.$_getContentField$($activeElement$$13_component$$1992$$);
  return ($activeElement$$13_component$$1992$$ = $AdfAgent$$.$AGENT$.$getDomDocument$().activeElement) && $activeElement$$13_component$$1992$$.id == $JSCompiler_StaticMethods__isComponentHavingFocus$self_contentNode$$90$$.id;
}
$JSCompiler_prototypeAlias$$.$_addContextChangeListeners$ = function $$JSCompiler_prototypeAlias$$$$_addContextChangeListeners$$($doc$$64_field$$3$$) {
  var $component$$1993_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$$1993_sourceCodeField$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1993_sourceCodeField$$);
  this.$_sourceBlurCallback$ = this.$createCallback$(this.$_handleBlur$);
  this.$_sourceFocusCallback$ = this.$createCallback$(this.$_handleFocus$);
  $agent$$569$$.$addBubbleEventListener$($component$$1993_sourceCodeField$$, "blur", this.$_sourceBlurCallback$);
  $agent$$569$$.$addBubbleEventListener$($component$$1993_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$$1993_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$$1994_sourceCodeField$$1$$) {
  var $agent$$570$$ = $AdfAgent$$.$AGENT$, $doc$$65_field$$4$$ = this.$_getContentField$($component$$1994_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$$1994_sourceCodeField$$1$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1994_sourceCodeField$$1$$);
  $agent$$570$$.$removeBubbleEventListener$($component$$1994_sourceCodeField$$1$$, "blur", this.$_sourceBlurCallback$);
  delete this.$_sourceBlurCallback$;
  $agent$$570$$.$removeBubbleEventListener$($component$$1994_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$$522_toolboxComponent$$1$$) {
  var $agent$$572_touchEventListeners$$ = $AdfAgent$$.$AGENT$;
  if (!this.$_commandBeingProcessed$) {
    var $component$$1995$$ = this.$getComponent$(), $oldhadFirstFocus$$ = this.$_hadFirstFocus$;
    this.$_hadFirstFocus$ || (this.$_hadFirstFocus$ = !0);
    var $componentEvent$$432$$ = $AdfAgent$$.$AGENT$.$getComponentEvent$($component$$1995$$, $evt$$145_i$$522_toolboxComponent$$1$$), $field$$5_focusTarget$$ = this.$_getContentField$($component$$1995$$);
    $AdfPage$$.$PAGE$.$__setActiveDomNodeInfo$($field$$5_focusTarget$$, $component$$1995$$.$getClientId$());
    this.$isCodeEditingMode$() ? $field$$5_focusTarget$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1995$$) : ($field$$5_focusTarget$$ = $AdfEditingAgent$$.$getInstance$().$getContentWindow$($field$$5_focusTarget$$), $field$$5_focusTarget$$ = $field$$5_focusTarget$$.document);
    $field$$5_focusTarget$$ == $evt$$145_i$$522_toolboxComponent$$1$$.originalTarget && $componentEvent$$432$$.$getEventPhase$() == $AdfBaseEvent$$.CAPTURING_PHASE && $componentEvent$$432$$.$nextEventPhase$();
    this.$HandleComponentFocus$($componentEvent$$432$$);
    $oldhadFirstFocus$$ || this.$isCodeEditingMode$() || "inline" !== $component$$1995$$.getToolbarDisplay() || ($evt$$145_i$$522_toolboxComponent$$1$$ = $JSCompiler_StaticMethods__getToolboxComponent$$(this, $component$$1995$$), this.$visitChildren$($evt$$145_i$$522_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$$522_toolboxComponent$$1$$ = 0;$evt$$145_i$$522_toolboxComponent$$1$$ < $agent$$572_touchEventListeners$$.length;$evt$$145_i$$522_toolboxComponent$$1$$++) {
      this.$getDomDocument$().removeEventListener($agent$$572_touchEventListeners$$[$evt$$145_i$$522_toolboxComponent$$1$$].$eventType$, $agent$$572_touchEventListeners$$[$evt$$145_i$$522_toolboxComponent$$1$$].listener, $agent$$572_touchEventListeners$$[$evt$$145_i$$522_toolboxComponent$$1$$].capture);
    }
  }
};
$JSCompiler_prototypeAlias$$.$_handleLoad$ = function $$JSCompiler_prototypeAlias$$$$_handleLoad$$() {
  var $editingAgent$$13_inlineFrameDocument$$3$$ = $AdfEditingAgent$$.$getInstance$(), $component$$1996$$ = this.$getComponent$();
  $AdfAssert$$.$assertObject$($component$$1996$$, "Unexpected unbound peer for load event on iframe.");
  var $contentField$$5$$ = this.$_getContentField$($component$$1996$$);
  $AdfAssert$$.$assertDomElement$($contentField$$5$$);
  var $needsDesignMode$$ = !$component$$1996$$.getDisabled() && !$editingAgent$$13_inlineFrameDocument$$3$$.$isDesignMode$($contentField$$5$$);
  if ($editingAgent$$13_inlineFrameDocument$$3$$.$isDesignModeReloadingFrame$() && $needsDesignMode$$) {
    $JSCompiler_StaticMethods__makeEditable$$(this, $component$$1996$$);
  } else {
    var $hiddenInputElement$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1996$$);
    $AdfAssert$$.$assertDomElement$($hiddenInputElement$$);
    if ("lazy" != $component$$1996$$.getContentDelivery()) {
      $JSCompiler_StaticMethods__setInlineFrameContent$$(this, $contentField$$5$$, $hiddenInputElement$$.value);
    } else {
      var $value$$248$$ = this.$getCurrentContent$($component$$1996$$, !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$$1996$$);
    $component$$1996$$.getReadOnly() || $AdfRichTextEditorBehaviorManager$$.$getInstance$().$registerComponent$($component$$1996$$);
    $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$$1997_focusBlurElement$$inline_3865_i$$523$$ = this.$getComponent$(), $contentNode$$91_editingAgent$$inline_3863_inputElement$$inline_3866$$ = this.$_getContentField$($AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$), $inlineFrame$$inline_3864_lastValue$$9$$ = $AdfDhtmlInputBasePeer$$.$getLastValue$($contentNode$$91_editingAgent$$inline_3863_inputElement$$inline_3866$$);
    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$$1997_focusBlurElement$$inline_3865_i$$523$$).value;
    $inlineFrame$$inline_3864_lastValue$$9$$ != $newValue$$136$$ && void 0 !== $inlineFrame$$inline_3864_lastValue$$9$$ && ($isValueChanged$$ = !0);
    !$isValueChanged$$ || this.$_mouseDownOrTabBack$ && $AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$.getValid($AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$.$getClientId$()) || (this.$Validate$($AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$, this.$GetSubmittedValue$($AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$, this.$getDomElement$())), $AdfDhtmlInputBasePeer$$.$setLastValue$($contentNode$$91_editingAgent$$inline_3863_inputElement$$inline_3866$$, 
    $newValue$$136$$));
  }
  $AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$ = $AdfAgent$$.$guessOS$();
  if (this.$_isTouch$ && $agent$$573_touchEventListeners$$1$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ && $AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$ != $AdfAgent$$.$ANDROID_OS$ && $AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$ != $AdfAgent$$.$WINDOWS_OS$ && ($contentNode$$91_editingAgent$$inline_3863_inputElement$$inline_3866$$ = $AdfEditingAgent$$.$getInstance$(), $inlineFrame$$inline_3864_lastValue$$9$$ = this.$_getContentField$(this.$getComponent$()), 
  $AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$ = $contentNode$$91_editingAgent$$inline_3863_inputElement$$inline_3866$$.$getFocusBlurElement$($inlineFrame$$inline_3864_lastValue$$9$$), $contentNode$$91_editingAgent$$inline_3863_inputElement$$inline_3866$$ = $AdfDhtmlRichTextEditorPeer$$.$_getDummyInputField$($contentNode$$91_editingAgent$$inline_3863_inputElement$$inline_3866$$, $inlineFrame$$inline_3864_lastValue$$9$$), $AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$.appendChild($contentNode$$91_editingAgent$$inline_3863_inputElement$$inline_3866$$), 
  $contentNode$$91_editingAgent$$inline_3863_inputElement$$inline_3866$$.focus(), $contentNode$$91_editingAgent$$inline_3863_inputElement$$inline_3866$$.blur(), $AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$.removeChild($contentNode$$91_editingAgent$$inline_3863_inputElement$$inline_3866$$), $agent$$573_touchEventListeners$$1$$.$_getTouchEventListeners$ && ($agent$$573_touchEventListeners$$1$$ = $agent$$573_touchEventListeners$$1$$.$_touchEventListeners$))) {
    for ($AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$ = 0;$AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$ < $agent$$573_touchEventListeners$$1$$.length;$AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$++) {
      this.$getDomDocument$().addEventListener($agent$$573_touchEventListeners$$1$$[$AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$].$eventType$, $agent$$573_touchEventListeners$$1$$[$AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$].listener, $agent$$573_touchEventListeners$$1$$[$AdfAgentOS_component$$1997_focusBlurElement$$inline_3865_i$$523$$].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$$281_rangeToSelect$$) {
  if ($event$$281_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$$281_rangeToSelect$$ = $document$$19$$.createRange();
    $event$$281_rangeToSelect$$.selectNodeContents($copyElement$$);
    var $selection$$22$$ = window.getSelection();
    $selection$$22$$.removeAllRanges();
    $selection$$22$$.addRange($event$$281_rangeToSelect$$);
    $document$$19$$.execCommand("copy", !1, null);
    setTimeout(function() {
      $document$$19$$.body.removeChild($copyElement$$);
    }, 500);
  }
};
$JSCompiler_prototypeAlias$$.$_handlePaste$ = function $$JSCompiler_prototypeAlias$$$$_handlePaste$$($event$$282_pasteText$$) {
  var $agent$$574$$ = $AdfAgent$$.$AGENT$;
  if ($event$$282_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$$282_pasteText$$ = $event$$282_pasteText$$.clipboardData.getData("Text");
    this.$_execCommand$("cmd_insert", $event$$282_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$$433_value$$249$$) {
  $componentEvent$$433_value$$249$$.$getEventPhase$() != $AdfBaseEvent$$.$AT_TARGET_PHASE$ || $JSCompiler_StaticMethods__emptySelection$$(this.$_lastSelectionRange$) || ($componentEvent$$433_value$$249$$ = $componentEvent$$433_value$$249$$.$getCurrentTarget$().getValue(), "about:blank" !== $componentEvent$$433_value$$249$$ && (/^http:\/\//.test($componentEvent$$433_value$$249$$) || ($componentEvent$$433_value$$249$$ = "http://" + $componentEvent$$433_value$$249$$), this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$COMMAND_LINK$, 
  $componentEvent$$433_value$$249$$), $JSCompiler_StaticMethods__saveSelection$$(this)));
};
$AdfDhtmlRichTextEditorPeer$$.prototype.$_toolbarPopupDisplayedTextBlur$ = function $$AdfDhtmlRichTextEditorPeer$$$$$_toolbarPopupDisplayedTextBlur$$($componentEvent$$434_value$$250$$) {
  if ($componentEvent$$434_value$$250$$.$getEventPhase$() == $AdfBaseEvent$$.$AT_TARGET_PHASE$) {
    var $selRange$$2_selectionRangeString$$ = this.$_lastSelectionRange$, $editingAgent$$16$$ = $AdfEditingAgent$$.$getInstance$();
    $JSCompiler_StaticMethods__emptySelection$$($selRange$$2_selectionRangeString$$) || ($componentEvent$$434_value$$250$$ = $componentEvent$$434_value$$250$$.$getCurrentTarget$().getValue(), $selRange$$2_selectionRangeString$$ = $editingAgent$$16$$.$getSelectionRangeString$($selRange$$2_selectionRangeString$$), $componentEvent$$434_value$$250$$ !== $selRange$$2_selectionRangeString$$ && this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$COMMAND_INSERT$, $componentEvent$$434_value$$250$$));
  }
};
function $JSCompiler_StaticMethods__getToolbarPopupNode$$($component$$1998$$) {
  return $AdfAgent$$.$AGENT$.getElementById($AdfRichUIPeer$$.$CreateSubId$($component$$1998$$.$getClientId$(), $AdfDhtmlRichTextEditorPeer$$.$_TOOLBAR_POPUP_CONTAINER_ID$));
}
function $JSCompiler_StaticMethods__getToolbarPopupInputContainer$$($component$$1999$$) {
  return $AdfAgent$$.$AGENT$.getElementById($component$$1999$$.getId() + $AdfDhtmlRichTextEditorPeer$$.$_TOOLBAR_POPUP_INPUT_CONTAINER_ID$);
}
function $JSCompiler_StaticMethods__getToolbarPopupURLComp$$($component$$2000$$) {
  return $AdfPage$$.$PAGE$.$findComponent$($component$$2000$$.getId() + $AdfDhtmlRichTextEditorPeer$$.$_TOOLBAR_POPUP_LINK_INPUT_ID$);
}
function $JSCompiler_StaticMethods__getToolbarPopupDisplayedTextComp$$($component$$2001$$) {
  return $AdfPage$$.$PAGE$.$findComponent$($component$$2001$$.getId() + $AdfDhtmlRichTextEditorPeer$$.$_TOOLBAR_POPUP_LINK_SELECTED_INPUT_ID$);
}
function $JSCompiler_StaticMethods__showToolbarPopup$$($JSCompiler_StaticMethods__showToolbarPopup$self$$) {
  var $agent$$575_toolbarPopupNode$$ = $AdfAgent$$.$AGENT$, $component$$2002$$ = $JSCompiler_StaticMethods__showToolbarPopup$self$$.$getComponent$(), $clientId$$421$$ = $component$$2002$$.$getClientId$(), $alignDom_dtComp$$1$$ = $agent$$575_toolbarPopupNode$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$421$$, $AdfDhtmlRichTextEditorPeer$$.$_CONTENT_INPUT_CONTAINER_SUBID$)), $agent$$575_toolbarPopupNode$$ = $JSCompiler_StaticMethods__getToolbarPopupNode$$($component$$2002$$), $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$$2002$$), $urlComp$$ = $JSCompiler_StaticMethods__getToolbarPopupURLComp$$($component$$2002$$), $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$$2002$$, $agent$$575_toolbarPopupNode$$, $hints$$101$$, $clientId$$421$$);
}
$AdfDhtmlRichTextEditorPeer$$.prototype.$PopupClosed$ = function $$AdfDhtmlRichTextEditorPeer$$$$$PopupClosed$$($component$$2003$$, $contentDom$$39$$) {
  $AdfDhtmlRichTextEditorPeer$$.$superclass$.$PopupClosed$.call(this, $component$$2003$$, $contentDom$$39$$);
  var $contentNode$$92_popupDom$$6$$ = $JSCompiler_StaticMethods__getToolbarPopupNode$$($component$$2003$$);
  if ($contentNode$$92_popupDom$$6$$ == $contentDom$$39$$ && $AdfDomUtils$$.$isVisible$($contentNode$$92_popupDom$$6$$)) {
    var $agent$$576_contNode$$2$$ = $AdfAgent$$.$AGENT$, $compId$$2$$ = $component$$2003$$.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$});
