var $AdfDhtmlRichTextEditorPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfDhtmlEditableValuePeer$$, "AdfDhtmlRichTextEditorPeer", $JSCompiler_alias_FALSE$$);
$goog$exportSymbol$$("AdfDhtmlRichTextEditorPeer", $AdfDhtmlRichTextEditorPeer$$);
$AdfDhtmlRichTextEditorPeer$$.$InitSubclass$ = function $$AdfDhtmlRichTextEditorPeer$$$$InitSubclass$$() {
  $AdfRichUIPeer$$.$addSuppressedPPRAttributes$(this, AdfRichTextEditor.EDIT_MODE);
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfActionEvent$$.$ACTION_EVENT_TYPE$, $AdfUIInputEvent$$.$CLICK_EVENT_TYPE$, $AdfUIInputEvent$$.$FOCUS_EVENT_TYPE$, $AdfUIInputEvent$$.$MOUSE_DOWN_EVENT_TYPE$, $AdfUIInputEvent$$.$MOUSE_UP_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_UP_EVENT_TYPE$);
  $AdfRichUIPeer$$.$addComponentPropertyGetters$(this, AdfRichTextEditor.LABEL);
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, AdfRichTextEditor.LABEL);
  $AdfObject$$.$ensureClassInitialization$($AdfDhtmlInputBasePeer$$);
  this.$InitConstants$()
};
$goog$exportSymbol$$("AdfDhtmlRichTextEditorPeer.InitSubclass", $AdfDhtmlRichTextEditorPeer$$.$InitSubclass$);
$AdfDhtmlRichTextEditorPeer$$.$InitConstants$ = function $$AdfDhtmlRichTextEditorPeer$$$$InitConstants$$() {
  this.$_CONTENT_FIELD_SUB_ID$ == $JSCompiler_alias_NULL$$ && (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", this.$_CONTENT_FIELD_SUB_ID$ = "cont", this.$_SOURCE_FIELD_SUB_ID$ = "src", this.$_FIELD_ID_ATTR_NAME$ = "__afrRichTextEditorFieldId", this.$_SOURCE_FIELD_ID_ATTR_NAME$ = 
  "__afrRichTextEditorSourceFieldId", this.$STYLE_BOLD$ = "style_bold", this.$STYLE_ITALIC$ = "style_italic", this.$STYLE_UNDERLINE$ = "style_underline", this.$STYLE_STRIKETHROUGH$ = "style_strikethrough", this.$STYLE_LIST_UNORDERED$ = "style_list_unordered", this.$STYLE_LIST_ORDERED$ = "style_list_ordered", this.$STYLE_INDENT$ = "style_indent", this.$STYLE_OUTDENT$ = "style_outdent", this.$STYLE_JUSTIFY_LEFT$ = "style_justify_left", this.$STYLE_JUSTIFY_CENTER$ = "style_justify_center", this.$STYLE_JUSTIFY_RIGHT$ = 
  "style_justify_right", this.$STYLE_JUSTIFY_FULL$ = "style_justify_full", this.$STYLE_SUPERSCRIPT$ = "style_superscript", this.$STYLE_SUBSCRIPT$ = "style_subscript", this.$STYLE_COLOR_FOREGROUND$ = "style_color_foreground", this.$STYLE_COLOR_BACKGROUND$ = "style_color_background", this.$STYLE_FONT_SIZE$ = "style_font_size", this.$STYLE_FONT_NAME$ = "style_font_name", this.$COMMAND_UNDO$ = "cmd_undo", this.$COMMAND_REDO$ = "cmd_redo", this.$COMMAND_LINK$ = "cmd_link", this.$COMMAND_UNLINK$ = "cmd_unlink", 
  this.$COMMAND_CLEAR_STYLING$ = "cmd_clear_styling", this.$COMMAND_INSERT$ = "cmd_insert", this.$COMMAND_MODE_RICH_TEXT$ = "cmd_mode_rich_text", this.$COMMAND_MODE_CODE$ = "cmd_mode_code", this.$_execCommandMap$ = {}, this.$_execCommandMap$[this.$STYLE_BOLD$] = "bold", this.$_execCommandMap$[this.$STYLE_ITALIC$] = "italic", this.$_execCommandMap$[this.$STYLE_UNDERLINE$] = "underline", this.$_execCommandMap$[this.$STYLE_STRIKETHROUGH$] = "strikethrough", this.$_execCommandMap$[this.$STYLE_LIST_UNORDERED$] = 
  "insertunorderedlist", this.$_execCommandMap$[this.$STYLE_LIST_ORDERED$] = "insertorderedlist", this.$_execCommandMap$[this.$STYLE_INDENT$] = "indent", this.$_execCommandMap$[this.$STYLE_OUTDENT$] = "outdent", this.$_execCommandMap$[this.$STYLE_JUSTIFY_LEFT$] = "justifyleft", this.$_execCommandMap$[this.$STYLE_JUSTIFY_CENTER$] = "justifycenter", this.$_execCommandMap$[this.$STYLE_JUSTIFY_RIGHT$] = "justifyright", this.$_execCommandMap$[this.$STYLE_JUSTIFY_FULL$] = "justifyfull", this.$_execCommandMap$[this.$STYLE_SUPERSCRIPT$] = 
  "superscript", this.$_execCommandMap$[this.$STYLE_SUBSCRIPT$] = "subscript", this.$_execCommandMap$[this.$STYLE_COLOR_FOREGROUND$] = "forecolor", this.$_execCommandMap$[this.$STYLE_COLOR_BACKGROUND$] = "backcolor", this.$_execCommandMap$[this.$STYLE_FONT_SIZE$] = "fontsize", this.$_execCommandMap$[this.$STYLE_FONT_NAME$] = "fontname", this.$_execCommandMap$[this.$COMMAND_UNDO$] = "undo", this.$_execCommandMap$[this.$COMMAND_REDO$] = "redo", this.$_execCommandMap$[this.$COMMAND_LINK$] = "createlink", 
  this.$_execCommandMap$[this.$COMMAND_UNLINK$] = "unlink", this.$_execCommandMap$[this.$COMMAND_CLEAR_STYLING$] = "removeformat", this.$_execCommandMap$[this.$COMMAND_INSERT$] = "insert", this.$_execCommandMap$[this.$COMMAND_MODE_RICH_TEXT$] = "moderichtext", this.$_execCommandMap$[this.$COMMAND_MODE_CODE$] = "modecode", this.$_COLOR_REGEX$ = /rgba?\((\d+),\s*(\d+),\s*(\d+)(,\s*((\d+)))?\)/)
};
$goog$exportSymbol$$("AdfDhtmlRichTextEditorPeer.InitConstants", $AdfDhtmlRichTextEditorPeer$$.$InitConstants$);
$AdfDhtmlRichTextEditorPeer$$.$HandleTimerUpdate$ = function $$AdfDhtmlRichTextEditorPeer$$$$HandleTimerUpdate$$($clientId$$359_component$$1427_peer$$140$$) {
  if($clientId$$359_component$$1427_peer$$140$$ = $AdfPage$$.$PAGE$.$findComponent$($clientId$$359_component$$1427_peer$$140$$)) {
    $clientId$$359_component$$1427_peer$$140$$ = $clientId$$359_component$$1427_peer$$140$$.$getPeer$(), $JSCompiler_StaticMethods__updateValue$$($clientId$$359_component$$1427_peer$$140$$), $JSCompiler_StaticMethods__handleContextChangedForCommands$$($clientId$$359_component$$1427_peer$$140$$)
  }
};
$goog$exportSymbol$$("AdfDhtmlRichTextEditorPeer.HandleTimerUpdate", $AdfDhtmlRichTextEditorPeer$$.$HandleTimerUpdate$);
$AdfDhtmlRichTextEditorPeer$$.prototype.Init = function $$AdfDhtmlRichTextEditorPeer$$$$Init$($component$$1428$$) {
  $AdfDhtmlRichTextEditorPeer$$.$superclass$.Init.call(this, $component$$1428$$);
  this.$_ignoreEvents$ = {}
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.Init", {Init:$AdfDhtmlRichTextEditorPeer$$.prototype.Init});
$AdfDhtmlRichTextEditorPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlRichTextEditorPeer$$$$$InitDomElement$$($component$$1429$$, $domElement$$369$$) {
  var $readOnly$$2$$ = $component$$1429$$.getReadOnly();
  if(!$readOnly$$2$$) {
    var $clientId$$360_sourceFieldSubId$$ = $component$$1429$$.$getClientId$(), $fieldSubId$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$360_sourceFieldSubId$$, $AdfDhtmlRichTextEditorPeer$$.$_CONTENT_FIELD_SUB_ID$);
    $AdfAgent$$.$AGENT$.$setExpandoProperty$($domElement$$369$$, $AdfDhtmlRichTextEditorPeer$$.$_FIELD_ID_ATTR_NAME$, $fieldSubId$$);
    $clientId$$360_sourceFieldSubId$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$360_sourceFieldSubId$$, $AdfDhtmlRichTextEditorPeer$$.$_SOURCE_FIELD_SUB_ID$);
    $AdfAgent$$.$AGENT$.$setExpandoProperty$($domElement$$369$$, $AdfDhtmlRichTextEditorPeer$$.$_SOURCE_FIELD_ID_ATTR_NAME$, $clientId$$360_sourceFieldSubId$$);
    $AdfPage$$.$PAGE$.$registerLoadingComponent$($component$$1429$$)
  }
  $AdfDhtmlRichTextEditorPeer$$.$superclass$.$InitDomElement$.call(this, $component$$1429$$, $domElement$$369$$);
  this.$_isTouch$ = $AdfAgent$$.$AGENT$.$getCapabilities$()[$AdfAgent$$.$CAP_TOUCH_SCREEN$] != $AdfAgent$$.$CAP_TOUCH_SCREEN_NONE$;
  $readOnly$$2$$ || ("source" == $component$$1429$$.getEditMode() && (this.$_codeEditingMode$ = $JSCompiler_alias_TRUE$$), "popup" === $component$$1429$$.getToolbarDisplay() && (this.$_toolbarPopupListenerInitialized$ = $JSCompiler_alias_FALSE$$), this.$_createIframe$($component$$1429$$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlRichTextEditorPeer$$.prototype.$InitDomElement$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$GetReadyState$ = function $$AdfDhtmlRichTextEditorPeer$$$$$GetReadyState$$() {
  var $component$$1430_iframeDomElement$$1$$ = this.$getComponent$();
  if(($component$$1430_iframeDomElement$$1$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1430_iframeDomElement$$1$$)) && "1" === $component$$1430_iframeDomElement$$1$$.getAttribute("data-afr-rte-loaded")) {
    $AdfLogger$$.$LOGGER$.fine("AdfDhtmlRichTextEditorPeer.GetReadyState: RTE loaded");
    try {
      if("complete" === $component$$1430_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$$145$$) {
      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.$_isContainerStretched$ = function $$AdfDhtmlRichTextEditorPeer$$$$$_isContainerStretched$$() {
  return $AdfDomUtils$$.$containsCSSClassName$($AdfRichUIPeer$$.$getDomNodeForComponent$(this.$getComponent$()), "p_AFStretched")
};
$AdfDhtmlRichTextEditorPeer$$.prototype.$needsResizeNotify$ = $JSCompiler_returnArg$$($JSCompiler_alias_TRUE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.needsResizeNotify", {$needsResizeNotify$:$AdfDhtmlRichTextEditorPeer$$.prototype.$needsResizeNotify$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$ResizeNotify$ = function $$AdfDhtmlRichTextEditorPeer$$$$$ResizeNotify$$($cicNode_oldWidth$$32$$, $agent$$485_childNodes$$28_oldHeight$$28$$, $clientId$$361_height$$40_newWidth$$52$$, $newHeight$$37$$) {
  if(this.$_isContainerStretched$() && ($agent$$485_childNodes$$28_oldHeight$$28$$ = $AdfAgent$$.$AGENT$, $clientId$$361_height$$40_newWidth$$52$$ = this.$getComponent$().$getClientId$(), $cicNode_oldWidth$$32$$ = $agent$$485_childNodes$$28_oldHeight$$28$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$361_height$$40_newWidth$$52$$, $AdfDhtmlRichTextEditorPeer$$.$_CONTENT_INPUT_CONTAINER_SUBID$)), $agent$$485_childNodes$$28_oldHeight$$28$$ = $agent$$485_childNodes$$28_oldHeight$$28$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$361_height$$40_newWidth$$52$$, 
  "content")).childNodes, $cicNode_oldWidth$$32$$)) {
    for(var $i$$405$$ = $clientId$$361_height$$40_newWidth$$52$$ = 0, $j$$36$$ = $agent$$485_childNodes$$28_oldHeight$$28$$.length;$i$$405$$ < $j$$36$$;$i$$405$$++) {
      $agent$$485_childNodes$$28_oldHeight$$28$$[$i$$405$$] !== $cicNode_oldWidth$$32$$ && ($clientId$$361_height$$40_newWidth$$52$$ += $agent$$485_childNodes$$28_oldHeight$$28$$[$i$$405$$].offsetHeight)
    }
    $cicNode_oldWidth$$32$$.style.height = $newHeight$$37$$ - $clientId$$361_height$$40_newWidth$$52$$ + "px"
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.ResizeNotify", {$ResizeNotify$:$AdfDhtmlRichTextEditorPeer$$.prototype.$ResizeNotify$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$GetInlineEditor$ = function $$AdfDhtmlRichTextEditorPeer$$$$$GetInlineEditor$$() {
  return $AdfDhtmlSimpleLabelEditor$$.$getInlineEditor$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.GetInlineEditor", {$GetInlineEditor$:$AdfDhtmlRichTextEditorPeer$$.prototype.$GetInlineEditor$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$isEmpty$ = function $$AdfDhtmlRichTextEditorPeer$$$$$isEmpty$$($value$$166$$) {
  $value$$166$$ || ($value$$166$$ = this.$GetSubmittedValue$(this.$getComponent$(), this.$getDomElement$()));
  $value$$166$$ = $value$$166$$.replace(/(<([^>]+)>)/ig, "");
  $value$$166$$ = $AdfStrings$$.trim($value$$166$$);
  return 0 == $value$$166$$.length
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.isEmpty", {$isEmpty$:$AdfDhtmlRichTextEditorPeer$$.prototype.$isEmpty$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$getCurrentContent$ = function $$AdfDhtmlRichTextEditorPeer$$$$$getCurrentContent$$($component$$1433$$, $keepOriginal$$4$$) {
  return $AdfEditingAgent$$.$getInstance$().$getInlineFrameContent$($JSCompiler_StaticMethods__getContentField$$($component$$1433$$), $keepOriginal$$4$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.getCurrentContent", {$getCurrentContent$:$AdfDhtmlRichTextEditorPeer$$.prototype.$getCurrentContent$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$addBinding$ = function $$AdfDhtmlRichTextEditorPeer$$$$$addBinding$$($componentClientId$$4_styleObserver$$inline_3373$$, $componentClient_eventType$$inline_3371$$, $command$$13$$, $bindComponent$$inline_3372_commandParameter$$3$$, $propertyName$$50$$, $eventType$$47$$) {
  $AdfAssert$$.$assertString$($componentClientId$$4_styleObserver$$inline_3373$$);
  $AdfAssert$$.$assertString$($command$$13$$);
  "style" == $command$$13$$.substring(0, 5) ? ($AdfAssert$$.$assertString$($propertyName$$50$$), $AdfAssert$$.$assertStringOrNull$($eventType$$47$$), $eventType$$47$$ == $JSCompiler_alias_VOID$$ && ($eventType$$47$$ = $AdfActionEvent$$.$ACTION_EVENT_TYPE$), $componentClient_eventType$$inline_3371$$ = $eventType$$47$$, $AdfAssert$$.$assertString$($componentClientId$$4_styleObserver$$inline_3373$$), $AdfAssert$$.$assertString$($propertyName$$50$$), $AdfAssert$$.$assertString$($command$$13$$), $AdfAssert$$.$assertStringOrNull$($componentClient_eventType$$inline_3371$$), 
  $componentClient_eventType$$inline_3371$$ == $JSCompiler_alias_VOID$$ && ($componentClient_eventType$$inline_3371$$ = $AdfActionEvent$$.$ACTION_EVENT_TYPE$), $bindComponent$$inline_3372_commandParameter$$3$$ = $AdfPage$$.$PAGE$.$findComponent$($componentClientId$$4_styleObserver$$inline_3373$$), $componentClientId$$4_styleObserver$$inline_3373$$ = {$componentId$:$componentClientId$$4_styleObserver$$inline_3373$$, propertyName:$propertyName$$50$$, $styleKey$:$command$$13$$, $eventType$:$componentClient_eventType$$inline_3371$$}, 
  this.$_styleObservers$ || (this.$_styleObservers$ = []), this.$_styleObservers$.push($componentClientId$$4_styleObserver$$inline_3373$$), ($componentClient_eventType$$inline_3371$$ != $AdfActionEvent$$.$ACTION_EVENT_TYPE$ || !$bindComponent$$inline_3372_commandParameter$$3$$.$isDescendant$(this.$getComponent$())) && $bindComponent$$inline_3372_commandParameter$$3$$.addEventListener($componentClient_eventType$$inline_3371$$, this.$_styleBindingActionListener$, this)) : "cmd" == $command$$13$$.substring(0, 
  3) ? this.$_addCommandBinding$($componentClientId$$4_styleObserver$$inline_3373$$, $componentClient_eventType$$inline_3371$$, $command$$13$$, $bindComponent$$inline_3372_commandParameter$$3$$) : $AdfLogger$$.$LOGGER$.severe("Unable to add binding [", $command$$13$$, "] for ", $componentClientId$$4_styleObserver$$inline_3373$$, " to ", this.$getComponent$().$getClientId$())
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.addBinding", {$addBinding$:$AdfDhtmlRichTextEditorPeer$$.prototype.$addBinding$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$setCodeEditingMode$ = function $$AdfDhtmlRichTextEditorPeer$$$$$setCodeEditingMode$$($innerHtml_newCodeEditingMode$$) {
  var $component$$1434_oldCodeEditingMode$$ = this.$_codeEditingMode$;
  $component$$1434_oldCodeEditingMode$$ == $JSCompiler_alias_NULL$$ && ($component$$1434_oldCodeEditingMode$$ = $JSCompiler_alias_FALSE$$);
  if($component$$1434_oldCodeEditingMode$$ != $innerHtml_newCodeEditingMode$$) {
    this.$_codeEditingMode$ = $innerHtml_newCodeEditingMode$$;
    $component$$1434_oldCodeEditingMode$$ = this.$getComponent$();
    $innerHtml_newCodeEditingMode$$ ? $component$$1434_oldCodeEditingMode$$.setProperty("editMode", "source", $JSCompiler_alias_TRUE$$) : $component$$1434_oldCodeEditingMode$$.setProperty("editMode", "wysiwyg", $JSCompiler_alias_TRUE$$);
    var $richTextField_toolboxClientId_toolboxComponent$$ = this.$_toolboxClientId$;
    if($richTextField_toolboxClientId_toolboxComponent$$ == $JSCompiler_alias_NULL$$) {
      var $codeField_rteClientId$$ = $component$$1434_oldCodeEditingMode$$.$getClientId$();
      this.$_toolboxClientId$ = $richTextField_toolboxClientId_toolboxComponent$$ = $codeField_rteClientId$$ + "_afrToolbox";
      this.$_modeButtonRichTextClientId$ = $codeField_rteClientId$$ + "_afrModeRichText";
      this.$_modeButtonCodeClientId$ = $codeField_rteClientId$$ + "_afrModeCode"
    }
    $richTextField_toolboxClientId_toolboxComponent$$ = $AdfPage$$.$PAGE$.$findComponent$($richTextField_toolboxClientId_toolboxComponent$$);
    this.$visitChildren$($richTextField_toolboxClientId_toolboxComponent$$, $AdfDhtmlRichTextEditorPeer$$.$_toolboxVisitChildrenCallback$, this, $JSCompiler_alias_TRUE$$);
    var $editingAgent$$1$$ = $AdfEditingAgent$$.$getInstance$(), $richTextField_toolboxClientId_toolboxComponent$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1434_oldCodeEditingMode$$), $codeField_rteClientId$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1434_oldCodeEditingMode$$);
    $innerHtml_newCodeEditingMode$$ ? ($innerHtml_newCodeEditingMode$$ = this.$getCurrentContent$($component$$1434_oldCodeEditingMode$$), $codeField_rteClientId$$.value = "" + $innerHtml_newCodeEditingMode$$, $richTextField_toolboxClientId_toolboxComponent$$.blur(), delete this.$_lastSelectionRange$, $richTextField_toolboxClientId_toolboxComponent$$.style.display = "none", $codeField_rteClientId$$.style.display = "block", $codeField_rteClientId$$.focus()) : ($codeField_rteClientId$$.blur(), $codeField_rteClientId$$.style.display = 
    "none", $richTextField_toolboxClientId_toolboxComponent$$.style.display = "block", $richTextField_toolboxClientId_toolboxComponent$$.focus(), $editingAgent$$1$$.$setInlineFrameContent$($richTextField_toolboxClientId_toolboxComponent$$, $codeField_rteClientId$$.value), this.focus($component$$1434_oldCodeEditingMode$$), $AdfEditingAgent$$.$getInstance$().$setInlineFrameContentEditable$($richTextField_toolboxClientId_toolboxComponent$$), this.$_ignoreNextContextChanged$ = $JSCompiler_alias_TRUE$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.setCodeEditingMode", {$setCodeEditingMode$:$AdfDhtmlRichTextEditorPeer$$.prototype.$setCodeEditingMode$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$Focus$ = function $$AdfDhtmlRichTextEditorPeer$$$$$Focus$$() {
  var $component$$1435_contentField$$ = this.$getComponent$();
  if(this.$_codeEditingMode$) {
    $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1435_contentField$$).focus()
  }else {
    $component$$1435_contentField$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1435_contentField$$);
    if("IFRAME" == $component$$1435_contentField$$.nodeName && $component$$1435_contentField$$ != document.activeElement) {
      try {
        var $JSCompiler_temp$$63_activeElement$$inline_3378_containerDiv$$ = $component$$1435_contentField$$.parentElement, $component$$inline_3379_contentNode$$inline_3380_isContainerDivTabIdx$$ = $JSCompiler_temp$$63_activeElement$$inline_3378_containerDiv$$.hasAttribute("tabindex");
        $component$$inline_3379_contentNode$$inline_3380_isContainerDivTabIdx$$ || $JSCompiler_temp$$63_activeElement$$inline_3378_containerDiv$$.setAttribute("tabindex", "0");
        $AdfFocusUtils$$.$focusElement$($JSCompiler_temp$$63_activeElement$$inline_3378_containerDiv$$);
        $component$$inline_3379_contentNode$$inline_3380_isContainerDivTabIdx$$ || $JSCompiler_temp$$63_activeElement$$inline_3378_containerDiv$$.removeAttribute("tabindex")
      }catch($err$$) {
      }
    }
    if($AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ && 11 == $AdfAgent$$.$AGENT$.$getVersion$()) {
      if($JSCompiler_temp$$63_activeElement$$inline_3378_containerDiv$$ = this.$_hadFirstFocus$) {
        $JSCompiler_temp$$63_activeElement$$inline_3378_containerDiv$$ = $AdfAgent$$.$AGENT$.$getDomDocument$().activeElement, $component$$inline_3379_contentNode$$inline_3380_isContainerDivTabIdx$$ = this.$getComponent$(), $component$$inline_3379_contentNode$$inline_3380_isContainerDivTabIdx$$ = this.$_codeEditingMode$ ? $JSCompiler_StaticMethods__getSourceCodeField$$($component$$inline_3379_contentNode$$inline_3380_isContainerDivTabIdx$$) : $JSCompiler_StaticMethods__getContentField$$($component$$inline_3379_contentNode$$inline_3380_isContainerDivTabIdx$$), 
        $JSCompiler_temp$$63_activeElement$$inline_3378_containerDiv$$ = !($JSCompiler_temp$$63_activeElement$$inline_3378_containerDiv$$ && $JSCompiler_temp$$63_activeElement$$inline_3378_containerDiv$$.id == $component$$inline_3379_contentNode$$inline_3380_isContainerDivTabIdx$$.id)
      }
      $JSCompiler_temp$$63_activeElement$$inline_3378_containerDiv$$ && $AdfFocusUtils$$.$focusElement$($component$$1435_contentField$$)
    }else {
      $AdfFocusUtils$$.$focusElement$($component$$1435_contentField$$)
    }
    $JSCompiler_StaticMethods__stopDialogsFromBeingInactivatedDueToIframes$$()
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.Focus", {$Focus$:$AdfDhtmlRichTextEditorPeer$$.prototype.$Focus$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$executeCommand$ = function $$AdfDhtmlRichTextEditorPeer$$$$$executeCommand$$($cmd$$, $value$$167$$) {
  this.$_execCommand$($cmd$$, $value$$167$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.executeCommand", {$executeCommand$:$AdfDhtmlRichTextEditorPeer$$.prototype.$executeCommand$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$getSelectionRange$ = function $$AdfDhtmlRichTextEditorPeer$$$$$getSelectionRange$$($component$$1437_inlineFrame$$72$$) {
  var $editingAgent$$2$$ = $AdfEditingAgent$$.$getInstance$();
  $component$$1437_inlineFrame$$72$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1437_inlineFrame$$72$$);
  return $editingAgent$$2$$.$getSelectionRange$($component$$1437_inlineFrame$$72$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.getSelectionRange", {$getSelectionRange$:$AdfDhtmlRichTextEditorPeer$$.prototype.$getSelectionRange$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$GetComponentLabel$ = function $$AdfDhtmlRichTextEditorPeer$$$$$GetComponentLabel$$($component$$1438$$, $domElement$$370$$) {
  var $labelElement$$5_labelElements$$3$$ = $domElement$$370$$.getElementsByTagName("LABEL"), $labelElement$$5_labelElements$$3$$ = $labelElement$$5_labelElements$$3$$.length ? $labelElement$$5_labelElements$$3$$[0] : $JSCompiler_alias_NULL$$;
  if($labelElement$$5_labelElements$$3$$ != $JSCompiler_alias_NULL$$) {
    var $clientId$$362_sourceFieldSubId$$1$$ = $component$$1438$$.$getClientId$(), $fieldSubId$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$362_sourceFieldSubId$$1$$, "content");
    if($labelElement$$5_labelElements$$3$$.htmlFor == $fieldSubId$$1$$) {
      return $AdfAgent$$.$AGENT$.$getTextContent$($labelElement$$5_labelElements$$3$$)
    }
    $clientId$$362_sourceFieldSubId$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$362_sourceFieldSubId$$1$$, $AdfDhtmlRichTextEditorPeer$$.$_SOURCE_FIELD_SUB_ID$);
    if($labelElement$$5_labelElements$$3$$.htmlFor == $clientId$$362_sourceFieldSubId$$1$$) {
      return $AdfAgent$$.$AGENT$.$getTextContent$($labelElement$$5_labelElements$$3$$)
    }
  }
  return $JSCompiler_alias_NULL$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.GetComponentLabel", {$GetComponentLabel$:$AdfDhtmlRichTextEditorPeer$$.prototype.$GetComponentLabel$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentFocus$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentFocus$$($component$$1439_componentEvent$$343$$) {
  $AdfDhtmlRichTextEditorPeer$$.$superclass$.$HandleComponentFocus$.call(this, $component$$1439_componentEvent$$343$$);
  $component$$1439_componentEvent$$343$$ = this.$getComponent$();
  if(!$component$$1439_componentEvent$$343$$.getReadOnly() && ($JSCompiler_StaticMethods__stopDialogsFromBeingInactivatedDueToIframes$$(), !this.$_commandBeingProcessed$)) {
    var $activeNode_value$$168$$ = $AdfPage$$.$PAGE$.$_activeDomNode$, $contentNode$$57$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1439_componentEvent$$343$$);
    $activeNode_value$$168$$ == $contentNode$$57$$ && (this.focus($component$$1439_componentEvent$$343$$), $activeNode_value$$168$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1439_componentEvent$$343$$).value, $AdfDhtmlInputBasePeer$$.$setLastValue$($contentNode$$57$$, $activeNode_value$$168$$));
    "popup" === $component$$1439_componentEvent$$343$$.getToolbarDisplay() && !$AdfDomUtils$$.$isVisible$($JSCompiler_StaticMethods__getToolbarPopupNode$$($component$$1439_componentEvent$$343$$)) && $JSCompiler_StaticMethods__showToolbarPopup$$(this)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentFocus", {$HandleComponentFocus$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentFocus$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentClick$$($componentEvent$$344_target$$156$$) {
  $AdfDhtmlRichTextEditorPeer$$.$superclass$.$HandleComponentClick$.call(this, $componentEvent$$344_target$$156$$);
  ($componentEvent$$344_target$$156$$ = $componentEvent$$344_target$$156$$.$getNativeEventTarget$()) && "LABEL" == $componentEvent$$344_target$$156$$.nodeName && this.focus(this.$getComponent$())
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentMouseDown$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentMouseDown$$($componentEvent$$345$$) {
  $JSCompiler_StaticMethods__handleClonedEvent$$(this, $componentEvent$$345$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentMouseDown", {$HandleComponentMouseDown$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentMouseDown$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentMouseUp$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentMouseUp$$($componentEvent$$346$$) {
  $JSCompiler_StaticMethods__handleClonedEvent$$(this, $componentEvent$$346$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentMouseUp", {$HandleComponentMouseUp$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentMouseUp$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentKeyDown$$($componentEvent$$347$$) {
  $JSCompiler_StaticMethods__handleClonedEvent$$(this, $componentEvent$$347$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentKeyUp$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentKeyUp$$($componentEvent$$348$$) {
  $JSCompiler_StaticMethods__handleClonedEvent$$(this, $componentEvent$$348$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentKeyUp", {$HandleComponentKeyUp$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentKeyUp$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$GetSubmittedValue$ = function $$AdfDhtmlRichTextEditorPeer$$$$$GetSubmittedValue$$($component$$1440$$, $domElement$$371$$) {
  if(this.$_isTouch$ && this.$WasSubmitted$($component$$1440$$)) {
    var $lastValue$$4_richTextField$$1$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1440$$), $domNode$$71_newValue$$112$$ = this.$getCurrentContent$($component$$1440$$), $lastValue$$4_richTextField$$1$$ = $AdfDhtmlInputBasePeer$$.$getLastValue$($lastValue$$4_richTextField$$1$$);
    $lastValue$$4_richTextField$$1$$ != $domNode$$71_newValue$$112$$ && $lastValue$$4_richTextField$$1$$ !== $JSCompiler_alias_VOID$$ && $JSCompiler_StaticMethods__updateValue$$(this)
  }
  if($component$$1440$$.getReadOnly()) {
    return $domNode$$71_newValue$$112$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1440$$, $domElement$$371$$), $domNode$$71_newValue$$112$$.innerHTML
  }
  $domNode$$71_newValue$$112$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1440$$);
  return $domNode$$71_newValue$$112$$.value
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.GetSubmittedValue", {$GetSubmittedValue$:$AdfDhtmlRichTextEditorPeer$$.prototype.$GetSubmittedValue$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$SetDisplayValue$ = function $$AdfDhtmlRichTextEditorPeer$$$$$SetDisplayValue$$($component$$1441_contentField$$1$$, $content$$28_domElement$$372$$, $newValue$$113$$) {
  $AdfAssert$$.$assertString$($newValue$$113$$);
  $component$$1441_contentField$$1$$.getReadOnly() ? $content$$28_domElement$$372$$.innerHTML = $newValue$$113$$ : ($content$$28_domElement$$372$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1441_contentField$$1$$).value, $component$$1441_contentField$$1$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1441_contentField$$1$$), $JSCompiler_StaticMethods__setInlineFrameContent$$(this, $component$$1441_contentField$$1$$, $content$$28_domElement$$372$$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.SetDisplayValue", {$SetDisplayValue$:$AdfDhtmlRichTextEditorPeer$$.prototype.$SetDisplayValue$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentAction$ = function $$AdfDhtmlRichTextEditorPeer$$$$$HandleComponentAction$$($componentEvent$$349$$) {
  this.$_styleBindingActionListener$($componentEvent$$349$$);
  this.$_commandBindingActionListener$($componentEvent$$349$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.HandleComponentAction", {$HandleComponentAction$:$AdfDhtmlRichTextEditorPeer$$.prototype.$HandleComponentAction$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$ShowFormatHint$ = $JSCompiler_returnArg$$($JSCompiler_alias_TRUE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.ShowFormatHint", {$ShowFormatHint$:$AdfDhtmlRichTextEditorPeer$$.prototype.$ShowFormatHint$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlRichTextEditorPeer$$$$$ComponentRemoved$$($component$$1442$$) {
  var $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$ = $component$$1442$$.getReadOnly();
  $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$ || page.$unregisterLoadingComponent$($component$$1442$$);
  if(!$agent$$inline_3393_observers$$inline_3384_readOnly$$3$$ && !$component$$1442$$.getDisabled()) {
    $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$ = this.$_styleObservers$;
    if($agent$$inline_3393_observers$$inline_3384_readOnly$$3$$ != $JSCompiler_alias_VOID$$) {
      for(var $doc$$inline_3398_field$$inline_3394_length$$inline_3385$$ = $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$.length, $editingAgent$$inline_3395_listener$$inline_3386$$ = this.$_styleBindingActionListener$, $focusBlurElement$$inline_3396_i$$inline_3387_sourceCodeField$$inline_3397$$ = 0;$focusBlurElement$$inline_3396_i$$inline_3387_sourceCodeField$$inline_3397$$ < $doc$$inline_3398_field$$inline_3394_length$$inline_3385$$;$focusBlurElement$$inline_3396_i$$inline_3387_sourceCodeField$$inline_3397$$++) {
        var $observer$$inline_3388$$ = $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$[$focusBlurElement$$inline_3396_i$$inline_3387_sourceCodeField$$inline_3397$$], $boundComponent$$inline_3389$$ = $AdfPage$$.$PAGE$.$findComponent$($observer$$inline_3388$$.$componentId$);
        $boundComponent$$inline_3389$$ != $JSCompiler_alias_VOID$$ && ($observer$$inline_3388$$.$eventType$ != $AdfActionEvent$$.$ACTION_EVENT_TYPE$ || !$boundComponent$$inline_3389$$.$isDescendant$($component$$1442$$)) && $boundComponent$$inline_3389$$.removeEventListener($observer$$inline_3388$$.$eventType$, $editingAgent$$inline_3395_listener$$inline_3386$$, this)
      }
    }
    this.$_removeCommandBindings$($component$$1442$$);
    $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$ = $AdfAgent$$.$AGENT$;
    $doc$$inline_3398_field$$inline_3394_length$$inline_3385$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1442$$);
    $editingAgent$$inline_3395_listener$$inline_3386$$ = $AdfEditingAgent$$.$getInstance$();
    $focusBlurElement$$inline_3396_i$$inline_3387_sourceCodeField$$inline_3397$$ = $editingAgent$$inline_3395_listener$$inline_3386$$.$getFocusBlurElement$($doc$$inline_3398_field$$inline_3394_length$$inline_3385$$);
    this.$_isTouch$ && $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ ? ($agent$$inline_3393_observers$$inline_3384_readOnly$$3$$.$removeBubbleEventListener$($doc$$inline_3398_field$$inline_3394_length$$inline_3385$$, "blur", this.$_blurCallback$), $AdfAgent$$.$guessOS$() != $AdfAgent$$.$ANDROID_OS$ && $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$.$removeBubbleEventListener$($focusBlurElement$$inline_3396_i$$inline_3387_sourceCodeField$$inline_3397$$, 
    "blur", this.$_iOSBlurCallback$), $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$.$removeBubbleEventListener$($focusBlurElement$$inline_3396_i$$inline_3387_sourceCodeField$$inline_3397$$, "click", this.$_clickCallback$), delete this.$_clickCallback$) : $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$.$removeBubbleEventListener$($focusBlurElement$$inline_3396_i$$inline_3387_sourceCodeField$$inline_3397$$, "blur", this.$_blurCallback$);
    delete this.$_blurCallback$;
    $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$.$removeBubbleEventListener$($focusBlurElement$$inline_3396_i$$inline_3387_sourceCodeField$$inline_3397$$, "focus", this.$_focusCallback$);
    delete this.$_focusCallback$;
    $focusBlurElement$$inline_3396_i$$inline_3387_sourceCodeField$$inline_3397$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1442$$);
    $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$.$removeBubbleEventListener$($focusBlurElement$$inline_3396_i$$inline_3387_sourceCodeField$$inline_3397$$, "blur", this.$_sourceBlurCallback$);
    delete this.$_sourceBlurCallback$;
    $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$.$removeBubbleEventListener$($focusBlurElement$$inline_3396_i$$inline_3387_sourceCodeField$$inline_3397$$, "focus", this.$_sourceFocusCallback$);
    delete this.$_sourceFocusCallback$;
    $doc$$inline_3398_field$$inline_3394_length$$inline_3385$$ = $editingAgent$$inline_3395_listener$$inline_3386$$.$getInlineFrameDocument$($doc$$inline_3398_field$$inline_3394_length$$inline_3385$$);
    $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$.$removeBubbleEventListener$($doc$$inline_3398_field$$inline_3394_length$$inline_3385$$, "mouseup", this.$_mouseUpCallBack$);
    delete this.$_mouseUpCallBack$;
    $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$.$removeBubbleEventListener$($doc$$inline_3398_field$$inline_3394_length$$inline_3385$$, "keyup", this.$_contextChangeCallback$);
    $AdfAgent$$.$AGENT$.$getPlatform$() != $AdfAgent$$.$IE_PLATFORM$ && $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$.$removeBubbleEventListener$($doc$$inline_3398_field$$inline_3394_length$$inline_3385$$, "blur", this.$_contextChangeCallback$);
    delete this.$_contextChangeCallback$;
    $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$.$removeBubbleEventListener$($doc$$inline_3398_field$$inline_3394_length$$inline_3385$$, "keydown", this.$_keyDownCallback$);
    delete this.$_keyDownCallback$;
    $agent$$inline_3393_observers$$inline_3384_readOnly$$3$$.$removeEventBubbles$($doc$$inline_3398_field$$inline_3394_length$$inline_3385$$, this.$_redistributeEventsToNewTargetCallback$);
    delete this.$_redistributeEventsToNewTargetCallback$;
    this.$_isTouch$ && this.$_saveSelectionInterval$ && clearInterval(this.$_saveSelectionInterval$);
    this.$_loadCallback$ && ($AdfAgent$$.$AGENT$.$removeBubbleEventListener$($JSCompiler_StaticMethods__getContentField$$($component$$1442$$), "load", this.$_loadCallback$), delete this.$_loadCallback$);
    $AdfRichTextEditorBehaviorManager$$.$getInstance$().$unregisterComponent$($component$$1442$$);
    delete this.$_hadFirstFocus$;
    delete this.$_lastSelectionRange$
  }
  $AdfDhtmlRichTextEditorPeer$$.$superclass$.$ComponentRemoved$.call(this, $component$$1442$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlRichTextEditorPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlRichTextEditorPeer$$.prototype.$ScrollIntoView$ = function $$AdfDhtmlRichTextEditorPeer$$$$$ScrollIntoView$$($component$$1443_subTargetElement$$2$$, $focus$$8$$, $subTargetId$$7$$) {
  this.$getDomElement$().scrollIntoView();
  var $domDoc$$7$$ = this.$getDomDocument$(), $readOnly$$4$$ = $component$$1443_subTargetElement$$2$$.getReadOnly(), $inlineFrame$$73$$;
  $readOnly$$4$$ || ($inlineFrame$$73$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1443_subTargetElement$$2$$), $domDoc$$7$$ = $AdfEditingAgent$$.$getInstance$().$getInlineFrameDocument$($inlineFrame$$73$$));
  $component$$1443_subTargetElement$$2$$ = $JSCompiler_alias_NULL$$;
  $subTargetId$$7$$ != $JSCompiler_alias_NULL$$ && (($component$$1443_subTargetElement$$2$$ = $domDoc$$7$$.getElementById($subTargetId$$7$$)) ? $component$$1443_subTargetElement$$2$$.scrollIntoView() : $AdfLogger$$.$LOGGER$.warning("Invalid subTargetId specified:" + $subTargetId$$7$$));
  $focus$$8$$ && ($component$$1443_subTargetElement$$2$$ ? $AdfFocusUtils$$.$focusElement$($component$$1443_subTargetElement$$2$$) : $readOnly$$4$$ || $AdfFocusUtils$$.$focusElement$($inlineFrame$$73$$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.ScrollIntoView", {$ScrollIntoView$:$AdfDhtmlRichTextEditorPeer$$.prototype.$ScrollIntoView$});
function $JSCompiler_StaticMethods__stopDialogsFromBeingInactivatedDueToIframes$$() {
  var $cancelNeeded$$ = $JSCompiler_alias_TRUE$$, $activeTagName$$1$$, $activeElement$$12$$ = $AdfAgent$$.$AGENT$.$getDomDocument$().activeElement;
  $activeElement$$12$$ && ($activeTagName$$1$$ = $activeElement$$12$$.tagName);
  "IFRAME" == $activeTagName$$1$$ && ($cancelNeeded$$ = $JSCompiler_alias_FALSE$$);
  $cancelNeeded$$ && $AdfPage$$.$PAGE$.$getAutoDismissalManager$().$cancelBlurTimeout$()
}
$AdfDhtmlRichTextEditorPeer$$.$_toolboxVisitChildrenCallback$ = function $$AdfDhtmlRichTextEditorPeer$$$$_toolboxVisitChildrenCallback$$($component$$1444_domElement$$373$$) {
  var $result$$21$$ = 0, $codeEditingMode$$ = this.$_codeEditingMode$;
  if($component$$1444_domElement$$373$$ instanceof AdfRichCommandToolbarButton) {
    var $clientId$$363$$ = $component$$1444_domElement$$373$$.$getClientId$();
    $clientId$$363$$ != this.$_modeButtonRichTextClientId$ && $clientId$$363$$ != this.$_modeButtonCodeClientId$ && ($component$$1444_domElement$$373$$.setProperty("selected", $JSCompiler_alias_FALSE$$, $JSCompiler_alias_FALSE$$, $AdfUIComponent$$.$PROPAGATE_IF_KNOWN_PROPERTY$), $component$$1444_domElement$$373$$.setProperty("disabled", $codeEditingMode$$, $JSCompiler_alias_FALSE$$, $AdfUIComponent$$.$PROPAGATE_IF_KNOWN_PROPERTY$), $result$$21$$ = 1)
  }else {
    $component$$1444_domElement$$373$$ instanceof AdfRichSelectOneChoice || $component$$1444_domElement$$373$$ instanceof AdfRichInputNumberSpinbox || $component$$1444_domElement$$373$$ instanceof AdfRichInputColor ? ($component$$1444_domElement$$373$$.setProperty("disabled", $codeEditingMode$$, $JSCompiler_alias_FALSE$$, $AdfUIComponent$$.$PROPAGATE_IF_KNOWN_PROPERTY$), $result$$21$$ = 1) : $component$$1444_domElement$$373$$ instanceof AdfRichPanelGroupLayout && ($component$$1444_domElement$$373$$ = 
    $AdfRichUIPeer$$.$getDomElementForComponent$($component$$1444_domElement$$373$$), $codeEditingMode$$ ? $AdfDomUtils$$.$addCSSClassName$($component$$1444_domElement$$373$$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$) : $AdfDomUtils$$.$removeCSSClassName$($component$$1444_domElement$$373$$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$), $result$$21$$ = 1)
  }
  return $result$$21$$
};
$JSCompiler_prototypeAlias$$ = $AdfDhtmlRichTextEditorPeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_handleMouseUp$ = function $$JSCompiler_prototypeAlias$$$$_handleMouseUp$$($event$$224_target$$157$$) {
  this.$_handleContextChanged$();
  $event$$224_target$$157$$ = $event$$224_target$$157$$.target;
  -1 != navigator.userAgent.toLowerCase().indexOf("chrome") && "html" == $event$$224_target$$157$$.nodeName.toLowerCase() && $event$$224_target$$157$$.getElementsByTagName("body")[0].focus()
};
$JSCompiler_prototypeAlias$$.$_handleContextChanged$ = function $$JSCompiler_prototypeAlias$$$$_handleContextChanged$$() {
  if(this.$_ignoreNextContextChanged$) {
    delete this.$_ignoreNextContextChanged$
  }else {
    if(this.$_codeEditingMode$ != $JSCompiler_alias_TRUE$$) {
      $JSCompiler_StaticMethods__saveSelection$$(this);
      $JSCompiler_StaticMethods__handleContextChangedForCommands$$(this);
      var $agent$$inline_3401$$ = $AdfAgent$$.$AGENT$;
      if(this.$_styleObservers$ != $JSCompiler_alias_VOID$$) {
        var $length$$inline_3402$$ = this.$_styleObservers$.length, $oldStyleValues$$inline_3403$$ = this.$_oldStyleValues$;
        $oldStyleValues$$inline_3403$$ == $JSCompiler_alias_VOID$$ && ($oldStyleValues$$inline_3403$$ = {});
        for(var $cached$$inline_3404$$ = {}, $i$$inline_3405$$ = 0;$i$$inline_3405$$ < $length$$inline_3402$$;$i$$inline_3405$$++) {
          var $observerObj$$inline_3406$$ = this.$_styleObservers$[$i$$inline_3405$$], $styleKey$$inline_3407_styleKey$$inline_5513$$ = $observerObj$$inline_3406$$.$styleKey$, $listenerComponent$$inline_3408$$ = $AdfPage$$.$PAGE$.$findComponent$($observerObj$$inline_3406$$.$componentId$);
          $AdfAssert$$.assert($listenerComponent$$inline_3408$$);
          var $value$$inline_3409$$ = $JSCompiler_alias_NULL$$;
          $cached$$inline_3404$$[$styleKey$$inline_3407_styleKey$$inline_5513$$] == $JSCompiler_alias_VOID$$ ? ($value$$inline_3409$$ = $JSCompiler_StaticMethods__getSelectionStyling$$(this, $styleKey$$inline_3407_styleKey$$inline_5513$$), $value$$inline_3409$$ != $JSCompiler_alias_NULL$$ && ($cached$$inline_3404$$[$styleKey$$inline_3407_styleKey$$inline_5513$$] = $value$$inline_3409$$)) : $value$$inline_3409$$ = $cached$$inline_3404$$[$styleKey$$inline_3407_styleKey$$inline_5513$$];
          if($oldStyleValues$$inline_3403$$[$styleKey$$inline_3407_styleKey$$inline_5513$$] !== $value$$inline_3409$$ && $value$$inline_3409$$ != $JSCompiler_alias_NULL$$) {
            var $commandIdentifier$$inline_5510_indeterminateValue$$inline_3410_oldValue$$inline_3419_styleKey$$inline_5509$$ = $JSCompiler_alias_FALSE$$;
            if($styleKey$$inline_3407_styleKey$$inline_5513$$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_COLOR_BACKGROUND$ || $styleKey$$inline_3407_styleKey$$inline_5513$$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_COLOR_FOREGROUND$) {
              $value$$inline_3409$$ = $AdfEditingAgent$$.$getInstance$().$getColor$($value$$inline_3409$$)
            }else {
              if($styleKey$$inline_3407_styleKey$$inline_5513$$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_SIZE$) {
                $value$$inline_3409$$ = $JSCompiler_StaticMethods__getOneThroughSevenFontSize$$($value$$inline_3409$$), 0 < $value$$inline_3409$$ && 8 > $value$$inline_3409$$ ? $value$$inline_3409$$ += "" : ($value$$inline_3409$$ = "2", $commandIdentifier$$inline_5510_indeterminateValue$$inline_3410_oldValue$$inline_3419_styleKey$$inline_5509$$ = $JSCompiler_alias_TRUE$$)
              }else {
                if($styleKey$$inline_3407_styleKey$$inline_5513$$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_NAME$ && $listenerComponent$$inline_3408$$ instanceof AdfRichSelectOneChoice) {
                  var $selectItems$$inline_3411$$ = $listenerComponent$$inline_3408$$.$getSelectItems$(), $selectItemsLength$$inline_3412$$ = $selectItems$$inline_3411$$.length, $matched$$inline_3413$$ = $JSCompiler_alias_FALSE$$;
                  if($value$$inline_3409$$ != $JSCompiler_alias_NULL$$ && ($value$$inline_3409$$ = ("" + $value$$inline_3409$$).replace(/'/g, ""), -1 != navigator.userAgent.toLowerCase().indexOf("chrome") || this.$_isTouch$ && $agent$$inline_3401$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$)) {
                    $value$$inline_3409$$ = ("" + $value$$inline_3409$$).replace(/, /gi, ",")
                  }
                  for(var $bestMatch$$inline_3415_j$$inline_3414$$ = 0;$bestMatch$$inline_3415_j$$inline_3414$$ < $selectItemsLength$$inline_3412$$;$bestMatch$$inline_3415_j$$inline_3414$$++) {
                    if($selectItems$$inline_3411$$[$bestMatch$$inline_3415_j$$inline_3414$$].getLabel() == $value$$inline_3409$$) {
                      $value$$inline_3409$$ = $selectItems$$inline_3411$$[$bestMatch$$inline_3415_j$$inline_3414$$].getValue();
                      $matched$$inline_3413$$ = $JSCompiler_alias_TRUE$$;
                      break
                    }
                  }
                  if(!$matched$$inline_3413$$) {
                    for(var $bestMatch$$inline_3415_j$$inline_3414$$ = Number.MAX_VALUE, $match$$inline_3416$$, $matchedValue$$inline_3417$$, $k$$inline_3418$$ = 0;$k$$inline_3418$$ < $selectItemsLength$$inline_3412$$;$k$$inline_3418$$++) {
                      if(-1 < ($match$$inline_3416$$ = $selectItems$$inline_3411$$[$k$$inline_3418$$].getValue().search($value$$inline_3409$$))) {
                        $match$$inline_3416$$ < $bestMatch$$inline_3415_j$$inline_3414$$ && ($bestMatch$$inline_3415_j$$inline_3414$$ = $match$$inline_3416$$, $matchedValue$$inline_3417$$ = $selectItems$$inline_3411$$[$k$$inline_3418$$].getValue()), $matched$$inline_3413$$ = $JSCompiler_alias_TRUE$$
                      }
                    }
                    if(!$matched$$inline_3413$$) {
                      for($k$$inline_3418$$ = 1;$k$$inline_3418$$ < $selectItemsLength$$inline_3412$$;$k$$inline_3418$$++) {
                        if(-1 < ($match$$inline_3416$$ = $value$$inline_3409$$.search($selectItems$$inline_3411$$[$k$$inline_3418$$].getLabel()))) {
                          $match$$inline_3416$$ < $bestMatch$$inline_3415_j$$inline_3414$$ && ($bestMatch$$inline_3415_j$$inline_3414$$ = $match$$inline_3416$$, $matchedValue$$inline_3417$$ = $selectItems$$inline_3411$$[$k$$inline_3418$$].getValue()), $matched$$inline_3413$$ = $JSCompiler_alias_TRUE$$
                        }
                      }
                    }
                    $value$$inline_3409$$ = $matched$$inline_3413$$ ? $matchedValue$$inline_3417$$ : $selectItems$$inline_3411$$[0].getValue()
                  }
                }
              }
            }
            $commandIdentifier$$inline_5510_indeterminateValue$$inline_3410_oldValue$$inline_3419_styleKey$$inline_5509$$ || ($commandIdentifier$$inline_5510_indeterminateValue$$inline_3410_oldValue$$inline_3419_styleKey$$inline_5509$$ = $styleKey$$inline_3407_styleKey$$inline_5513$$, $AdfAssert$$.$assertString$($commandIdentifier$$inline_5510_indeterminateValue$$inline_3410_oldValue$$inline_3419_styleKey$$inline_5509$$), $commandIdentifier$$inline_5510_indeterminateValue$$inline_3410_oldValue$$inline_3419_styleKey$$inline_5509$$ = 
            $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$commandIdentifier$$inline_5510_indeterminateValue$$inline_3410_oldValue$$inline_3419_styleKey$$inline_5509$$], $AdfAssert$$.$assertString$($commandIdentifier$$inline_5510_indeterminateValue$$inline_3410_oldValue$$inline_3419_styleKey$$inline_5509$$), $AdfEditingAgent$$.$getInstance$().$queryCommandIndeterminate$($JSCompiler_StaticMethods__getContentField$$(this.$getComponent$()), $commandIdentifier$$inline_5510_indeterminateValue$$inline_3410_oldValue$$inline_3419_styleKey$$inline_5509$$));
            $commandIdentifier$$inline_5510_indeterminateValue$$inline_3410_oldValue$$inline_3419_styleKey$$inline_5509$$ = $listenerComponent$$inline_3408$$.$getProperty$($observerObj$$inline_3406$$.propertyName);
            $AdfUIUtils$$.$compareValues$($commandIdentifier$$inline_5510_indeterminateValue$$inline_3410_oldValue$$inline_3419_styleKey$$inline_5509$$, $value$$inline_3409$$) || ("value" == $observerObj$$inline_3406$$.propertyName && ($AdfAssert$$.$assertString$($styleKey$$inline_3407_styleKey$$inline_5513$$), this.$_ignoreEvents$[$styleKey$$inline_3407_styleKey$$inline_5513$$] == $JSCompiler_alias_VOID$$ && (this.$_ignoreEvents$[$styleKey$$inline_3407_styleKey$$inline_5513$$] = 0), this.$_ignoreEvents$[$styleKey$$inline_3407_styleKey$$inline_5513$$]++), 
            $listenerComponent$$inline_3408$$.setProperty($observerObj$$inline_3406$$.propertyName, $value$$inline_3409$$, $JSCompiler_alias_FALSE$$, $JSCompiler_alias_FALSE$$))
          }
        }
        this.$_oldStyleValues$ = $cached$$inline_3404$$
      }
    }
  }
};
$JSCompiler_prototypeAlias$$.$_handleKeyDown$ = function $$JSCompiler_prototypeAlias$$$$_handleKeyDown$$($evt$$121$$) {
  var $cancelEvent$$6_isIE$$10$$ = $AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$, $isGecko$$3_isToolbarPopupVisible_keyCode$$79$$ = $AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$GECKO_PLATFORM$, $component$$1445_equals_key_toolBarComp_value$$169$$ = 187, $editMode_equals_key_2$$ = $component$$1445_equals_key_toolBarComp_value$$169$$, $minus_key_toolbarElement$$ = 189;
  if($cancelEvent$$6_isIE$$10$$) {
    var $methodCall_time$$1$$ = this.$_keyTimer$;
    $methodCall_time$$1$$ && clearTimeout($methodCall_time$$1$$);
    $methodCall_time$$1$$ = "AdfDhtmlRichTextEditorPeer.HandleTimerUpdate('" + this.$getComponent$().$getClientId$() + "')";
    this.$_keyTimer$ = setTimeout($methodCall_time$$1$$, 3E3)
  }
  $isGecko$$3_isToolbarPopupVisible_keyCode$$79$$ && ($component$$1445_equals_key_toolBarComp_value$$169$$ = 61, $editMode_equals_key_2$$ = 107, $minus_key_toolbarElement$$ = 109);
  $isGecko$$3_isToolbarPopupVisible_keyCode$$79$$ = $evt$$121$$.keyCode;
  if(9 == $isGecko$$3_isToolbarPopupVisible_keyCode$$79$$) {
    $evt$$121$$.shiftKey && (this.$_mouseDownOrTabBack$ = $JSCompiler_alias_TRUE$$), $component$$1445_equals_key_toolBarComp_value$$169$$ = this.$getComponent$(), $editMode_equals_key_2$$ = $component$$1445_equals_key_toolBarComp_value$$169$$.getEditMode(), $minus_key_toolbarElement$$ = $JSCompiler_StaticMethods__getToolbarPopupNode$$($component$$1445_equals_key_toolBarComp_value$$169$$), $isGecko$$3_isToolbarPopupVisible_keyCode$$79$$ = "popup" === $component$$1445_equals_key_toolBarComp_value$$169$$.getToolbarDisplay() && 
    $AdfDomUtils$$.$isVisible$($minus_key_toolbarElement$$), "wysiwyg" == $editMode_equals_key_2$$ ? $isGecko$$3_isToolbarPopupVisible_keyCode$$79$$ ? ($AdfAgent$$.$AGENT$.preventDefault($evt$$121$$), $evt$$121$$.shiftKey ? $AdfFocusUtils$$.$focusElement$($AdfFocusUtils$$.$getLastTabStop$($minus_key_toolbarElement$$)) : $AdfFocusUtils$$.$focusNextTabStop$($JSCompiler_StaticMethods__getContentField$$($component$$1445_equals_key_toolBarComp_value$$169$$))) : ($AdfEditingAgent$$.$getInstance$().$handleTab$($JSCompiler_StaticMethods__getContentField$$($component$$1445_equals_key_toolBarComp_value$$169$$), 
    $evt$$121$$), $cancelEvent$$6_isIE$$10$$ && ($evt$$121$$.shiftKey ? this.$_tabBack$ = $JSCompiler_alias_TRUE$$ : this.$_tabForward$ = $JSCompiler_alias_TRUE$$)) : $isGecko$$3_isToolbarPopupVisible_keyCode$$79$$ && ($AdfAgent$$.$AGENT$.preventDefault($evt$$121$$), $evt$$121$$.shiftKey ? $AdfFocusUtils$$.$focusElement$($AdfFocusUtils$$.$getLastFocusableDescendant$($minus_key_toolbarElement$$)) : $AdfFocusUtils$$.$focusNextTabStop$($JSCompiler_StaticMethods__getSourceCodeField$$($component$$1445_equals_key_toolBarComp_value$$169$$)))
  }else {
    if($evt$$121$$.ctrlKey) {
      $cancelEvent$$6_isIE$$10$$ = $JSCompiler_alias_TRUE$$;
      if($evt$$121$$.altKey) {
        switch($isGecko$$3_isToolbarPopupVisible_keyCode$$79$$) {
          case $component$$1445_equals_key_toolBarComp_value$$169$$:
          ;
          case $editMode_equals_key_2$$:
            this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_SUPERSCRIPT$);
            break;
          case $minus_key_toolbarElement$$:
            this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_SUBSCRIPT$);
            break;
          case 121:
            ($component$$1445_equals_key_toolBarComp_value$$169$$ = $AdfPage$$.$PAGE$.$findComponent$(this.$getComponent$().$getClientId$() + "_afrToolbox")) && $component$$1445_equals_key_toolBarComp_value$$169$$.focus();
            break;
          default:
            $cancelEvent$$6_isIE$$10$$ = $JSCompiler_alias_FALSE$$
        }
      }else {
        if($evt$$121$$.shiftKey) {
          switch($isGecko$$3_isToolbarPopupVisible_keyCode$$79$$) {
            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$$10$$ = $JSCompiler_alias_FALSE$$
          }
        }else {
          switch($isGecko$$3_isToolbarPopupVisible_keyCode$$79$$) {
            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$$1445_equals_key_toolBarComp_value$$169$$ = $JSCompiler_StaticMethods__getOneThroughSevenFontSize$$($JSCompiler_StaticMethods__queryCommandValue$$(this));
              1 < $component$$1445_equals_key_toolBarComp_value$$169$$ && this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_SIZE$, +$component$$1445_equals_key_toolBarComp_value$$169$$ - 1);
              break;
            case 221:
              $component$$1445_equals_key_toolBarComp_value$$169$$ = $JSCompiler_StaticMethods__getOneThroughSevenFontSize$$($JSCompiler_StaticMethods__queryCommandValue$$(this));
              7 > $component$$1445_equals_key_toolBarComp_value$$169$$ && this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_SIZE$, +$component$$1445_equals_key_toolBarComp_value$$169$$ + 1);
              break;
            default:
              $cancelEvent$$6_isIE$$10$$ = $JSCompiler_alias_FALSE$$
          }
        }
      }
      $cancelEvent$$6_isIE$$10$$ && $AdfAgent$$.$AGENT$.$eatEvent$($evt$$121$$)
    }
  }
};
$JSCompiler_prototypeAlias$$.$_cmdCreateLink$ = function $$JSCompiler_prototypeAlias$$$$_cmdCreateLink$$() {
  return this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$COMMAND_LINK$)
};
function $JSCompiler_StaticMethods__saveSelection$$($JSCompiler_StaticMethods__saveSelection$self_component$$1446$$) {
  var $editingAgent$$4$$ = $AdfEditingAgent$$.$getInstance$(), $range$$13$$ = $editingAgent$$4$$.$getSelectionRange$($JSCompiler_StaticMethods__getContentField$$($JSCompiler_StaticMethods__saveSelection$self_component$$1446$$.$getComponent$()));
  $JSCompiler_StaticMethods__saveSelection$self_component$$1446$$.$_isTouch$ ? $range$$13$$ != $JSCompiler_alias_NULL$$ && ($JSCompiler_StaticMethods__saveSelection$self_component$$1446$$.$_lastSelectionRange$ = $range$$13$$) : $JSCompiler_StaticMethods__saveSelection$self_component$$1446$$.$_lastSelectionRange$ = $range$$13$$;
  $JSCompiler_StaticMethods__saveSelection$self_component$$1446$$ = $JSCompiler_StaticMethods__saveSelection$self_component$$1446$$.$getComponent$();
  if("popup" === $JSCompiler_StaticMethods__saveSelection$self_component$$1446$$.getToolbarDisplay()) {
    var $contNode$$1$$ = $JSCompiler_StaticMethods__getToolbarPopupInputContainer$$($JSCompiler_StaticMethods__saveSelection$self_component$$1446$$);
    $AdfDomUtils$$.$isVisible$($contNode$$1$$) && $JSCompiler_StaticMethods__getToolbarPopupDisplayedTextComp$$($JSCompiler_StaticMethods__saveSelection$self_component$$1446$$).setValue($editingAgent$$4$$.$getSelectionRangeString$($range$$13$$))
  }
}
function $JSCompiler_StaticMethods__handleClonedEvent$$($JSCompiler_StaticMethods__handleClonedEvent$self$$, $componentEvent$$350$$) {
  var $evt$$122$$ = $componentEvent$$350$$.$getNativeEvent$();
  if($JSCompiler_StaticMethods__handleClonedEvent$self$$.$_clonedEventMap$ != $JSCompiler_alias_NULL$$ && $JSCompiler_StaticMethods__handleClonedEvent$self$$.$_clonedEventMap$[$evt$$122$$] != $JSCompiler_alias_NULL$$) {
    var $originalEvent$$1$$ = $JSCompiler_StaticMethods__handleClonedEvent$self$$.$_clonedEventMap$[$evt$$122$$];
    $componentEvent$$350$$.cancel = function $$componentEvent$$350$$$cancel$() {
      $AdfDomUIInputEvent$$.$superclass$.cancel.call($componentEvent$$350$$);
      $AdfAgent$$.$AGENT$.preventDefault($evt$$122$$);
      $AdfAgent$$.$AGENT$.preventDefault($originalEvent$$1$$);
      delete $JSCompiler_StaticMethods__handleClonedEvent$self$$.$_clonedEventMap$[$evt$$122$$]
    }
  }
}
function $JSCompiler_StaticMethods__handleContextChangedForCommands$$($JSCompiler_StaticMethods__handleContextChangedForCommands$self$$) {
  if($JSCompiler_StaticMethods__handleContextChangedForCommands$self$$.$_commandObservers$ != $JSCompiler_alias_VOID$$) {
    var $component$$1447$$ = $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$.$getComponent$(), $contentField$$2$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1447$$), $editingAgent$$5$$ = $AdfEditingAgent$$.$getInstance$(), $commandObservers$$1$$ = $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$.$_commandObservers$, $length$$47$$ = $commandObservers$$1$$.length, $oldCommandValues$$1$$ = $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$.$_oldCommandValues$;
    $oldCommandValues$$1$$ == $JSCompiler_alias_VOID$$ && ($oldCommandValues$$1$$ = {});
    for(var $cached$$1$$ = {}, $i$$406$$ = 0;$i$$406$$ < $length$$47$$;$i$$406$$++) {
      var $listenerComponent$$2_observerObj$$3$$ = $commandObservers$$1$$[$i$$406$$], $commandKey$$1$$ = $listenerComponent$$2_observerObj$$3$$.$command$, $listenerComponent$$2_observerObj$$3$$ = $AdfPage$$.$PAGE$.$findComponent$($listenerComponent$$2_observerObj$$3$$.$componentId$);
      $AdfAssert$$.assert($listenerComponent$$2_observerObj$$3$$);
      if($cached$$1$$[$commandKey$$1$$] === $JSCompiler_alias_VOID$$) {
        var $component$$inline_3422_currentLinkURL$$inline_3425_execCommandKey$$ = $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$commandKey$$1$$];
        $cached$$1$$[$commandKey$$1$$] = $component$$inline_3422_currentLinkURL$$inline_3425_execCommandKey$$ == $JSCompiler_alias_NULL$$ ? $JSCompiler_alias_NULL$$ : $editingAgent$$5$$.queryCommandEnabled($component$$1447$$, $contentField$$2$$, $component$$inline_3422_currentLinkURL$$inline_3425_execCommandKey$$)
      }
      if($commandKey$$1$$ === $AdfDhtmlRichTextEditorPeer$$.$COMMAND_LINK$ && "popup" === $component$$1447$$.getToolbarDisplay()) {
        var $component$$inline_3422_currentLinkURL$$inline_3425_execCommandKey$$ = $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$.$getComponent$(), $contNode$$inline_3423_inputComp$$inline_3424$$ = $JSCompiler_StaticMethods__getToolbarPopupInputContainer$$($component$$inline_3422_currentLinkURL$$inline_3425_execCommandKey$$);
        $AdfDomUtils$$.$isVisible$($contNode$$inline_3423_inputComp$$inline_3424$$) && ($contNode$$inline_3423_inputComp$$inline_3424$$ = $JSCompiler_StaticMethods__getToolbarPopupURLComp$$($component$$inline_3422_currentLinkURL$$inline_3425_execCommandKey$$), $component$$inline_3422_currentLinkURL$$inline_3425_execCommandKey$$ = $JSCompiler_StaticMethods__getLinkURLForSelection$$($AdfEditingAgent$$.$getInstance$(), $component$$inline_3422_currentLinkURL$$inline_3425_execCommandKey$$, $JSCompiler_StaticMethods__getContentField$$($component$$inline_3422_currentLinkURL$$inline_3425_execCommandKey$$)), 
        $contNode$$inline_3423_inputComp$$inline_3424$$.setValue($component$$inline_3422_currentLinkURL$$inline_3425_execCommandKey$$))
      }
      if($oldCommandValues$$1$$[$commandKey$$1$$] !== $cached$$1$$[$commandKey$$1$$]) {
        switch($commandKey$$1$$) {
          case $AdfDhtmlRichTextEditorPeer$$.$COMMAND_INSERT$:
          ;
          case $AdfDhtmlRichTextEditorPeer$$.$COMMAND_MODE_RICH_TEXT$:
          ;
          case $AdfDhtmlRichTextEditorPeer$$.$COMMAND_MODE_CODE$:
            break;
          default:
            $listenerComponent$$2_observerObj$$3$$.setProperty("disabled", !$cached$$1$$[$commandKey$$1$$], $JSCompiler_alias_FALSE$$, $JSCompiler_alias_FALSE$$)
        }
      }
    }
    $JSCompiler_StaticMethods__handleContextChangedForCommands$self$$.$_oldCommandValues$ = $cached$$1$$
  }
}
function $JSCompiler_StaticMethods__getOneThroughSevenFontSize$$($result$$22_value$$172$$) {
  var $rawValue$$ = "" + $result$$22_value$$172$$, $pxIndex$$1$$ = $rawValue$$.indexOf("px");
  -1 != $pxIndex$$1$$ ? ($result$$22_value$$172$$ = parseInt($rawValue$$.substring(0, $pxIndex$$1$$)), $result$$22_value$$172$$ = 10 >= $result$$22_value$$172$$ ? 1 : 13 >= $result$$22_value$$172$$ ? 2 : 16 >= $result$$22_value$$172$$ ? 3 : 18 >= $result$$22_value$$172$$ ? 4 : 24 >= $result$$22_value$$172$$ ? 5 : 32 >= $result$$22_value$$172$$ ? 6 : 7) : $result$$22_value$$172$$ = parseInt($result$$22_value$$172$$) || 2;
  return $result$$22_value$$172$$
}
$JSCompiler_prototypeAlias$$.$_createIframe$ = function $$JSCompiler_prototypeAlias$$$$_createIframe$$($component$$1448_src$$9$$) {
  var $agent$$488$$ = $AdfAgent$$.$AGENT$, $contentField$$3$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1448_src$$9$$), $page$$175$$ = $AdfPage$$.$PAGE$, $iframe$$3$$ = this.$getDomDocument$().createElement("IFRAME");
  $iframe$$3$$.frameBorder = "0";
  var $cssText$$3$$ = $contentField$$3$$.style.cssText;
  0 < $cssText$$3$$.length && ($iframe$$3$$.style.cssText = $cssText$$3$$);
  $iframe$$3$$.className = $contentField$$3$$.className;
  $iframe$$3$$.id = $contentField$$3$$.id;
  $iframe$$3$$.title = $page$$175$$.$getLookAndFeel$().$getTranslatedString$("af_richTextEditor.IFRAME_TITLE");
  if("lazy" == $component$$1448_src$$9$$.getContentDelivery()) {
    $iframe$$3$$.src = $page$$175$$.$getLazyFetchURI$($component$$1448_src$$9$$.$getClientId$())
  }else {
    if(($component$$1448_src$$9$$ = $contentField$$3$$.getAttribute("src")) && "" != $component$$1448_src$$9$$) {
      $iframe$$3$$.src = $component$$1448_src$$9$$
    }
  }
  this.$_loadCallback$ = this.$createCallback$(this.$_handleLoad$);
  $agent$$488$$.$addBubbleEventListener$($iframe$$3$$, "load", this.$_loadCallback$);
  $contentField$$3$$.parentNode.replaceChild($iframe$$3$$, $contentField$$3$$);
  $agent$$488$$.$elementsRemoved$($contentField$$3$$);
  $agent$$488$$.$elementsAdded$($iframe$$3$$)
};
function $JSCompiler_StaticMethods__makeEditable$$($JSCompiler_StaticMethods__makeEditable$self$$, $component$$1449$$) {
  var $contentField$$4$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1449$$);
  $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$$74_inlineFrameDocument$$1$$, $content$$29$$) {
  $AdfAssert$$.$assertDomElement$($inlineFrame$$74_inlineFrameDocument$$1$$, "IFRAME");
  $AdfAssert$$.$assertString$($content$$29$$);
  var $editingAgent$$6$$ = $AdfEditingAgent$$.$getInstance$();
  $inlineFrame$$74_inlineFrameDocument$$1$$ = $editingAgent$$6$$.$getInlineFrameDocument$($inlineFrame$$74_inlineFrameDocument$$1$$);
  $editingAgent$$6$$.$setRTL$($inlineFrame$$74_inlineFrameDocument$$1$$);
  $JSCompiler_StaticMethods__setInlineFrameStyle$$($JSCompiler_StaticMethods__setInlineFrameContent$self_inlineFrameBody$$2$$, $inlineFrame$$74_inlineFrameDocument$$1$$);
  $JSCompiler_StaticMethods__setInlineFrameContent$self_inlineFrameBody$$2$$ = $inlineFrame$$74_inlineFrameDocument$$1$$.body;
  "" == $content$$29$$ && ($content$$29$$ = $editingAgent$$6$$.$getDefaultContent$());
  $JSCompiler_StaticMethods__setInlineFrameContent$self_inlineFrameBody$$2$$.innerHTML = $content$$29$$
}
function $JSCompiler_StaticMethods__setInlineFrameStyle$$($JSCompiler_StaticMethods__setInlineFrameStyle$self$$, $inlineFrameDocument$$2$$) {
  var $inlineFrameBodyStyle$$ = $inlineFrameDocument$$2$$.body.style, $inlineFrameBodyInlineStyle$$ = $JSCompiler_StaticMethods__setInlineFrameStyle$self$$.$_inlineFrameBodyInlineStyle$;
  if($inlineFrameBodyInlineStyle$$ == $JSCompiler_alias_NULL$$) {
    var $isIE$$11$$ = $AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$, $page$$176$$ = $AdfPage$$.$PAGE$, $inlineFrameBodyInlineStyle$$ = $page$$176$$.$getLookAndFeel$().$getSkinProperty$("af|richTextEditor-tr-field-inline-style");
    $isIE$$11$$ && $inlineFrameBodyInlineStyle$$ == $JSCompiler_alias_VOID$$ ? $page$$176$$.$scheduleTimer$($JSCompiler_StaticMethods__setInlineFrameStyle$self$$, $JSCompiler_StaticMethods__setInlineFrameStyle$self$$.$_updateInlineFrameStyle$, $inlineFrameBodyInlineStyle$$, 0, {isSynchronized:$JSCompiler_alias_TRUE$$}) : $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$$) {
  $inlineFrameBodyInlineStyle$$1$$ == $JSCompiler_alias_VOID$$ && ($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__getContentField$$($component$$1450_domNode$$72_subId$$32$$) {
  $component$$1450_domNode$$72_subId$$32$$ = $AdfAgent$$.$AGENT$.$getExpandoProperty$($AdfRichUIPeer$$.$getDomElementForComponent$($component$$1450_domNode$$72_subId$$32$$), $AdfDhtmlRichTextEditorPeer$$.$_FIELD_ID_ATTR_NAME$);
  $component$$1450_domNode$$72_subId$$32$$ = $AdfAgent$$.$AGENT$.getElementById($component$$1450_domNode$$72_subId$$32$$);
  $AdfAssert$$.$assertDomElement$($component$$1450_domNode$$72_subId$$32$$);
  return $component$$1450_domNode$$72_subId$$32$$
}
function $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1451_domNode$$73_subId$$33$$) {
  $component$$1451_domNode$$73_subId$$33$$ = $AdfAgent$$.$AGENT$.$getExpandoProperty$($AdfRichUIPeer$$.$getDomElementForComponent$($component$$1451_domNode$$73_subId$$33$$), $AdfDhtmlRichTextEditorPeer$$.$_SOURCE_FIELD_ID_ATTR_NAME$);
  $component$$1451_domNode$$73_subId$$33$$ = $AdfAgent$$.$AGENT$.getElementById($component$$1451_domNode$$73_subId$$33$$);
  $AdfAssert$$.$assertDomElement$($component$$1451_domNode$$73_subId$$33$$);
  return $component$$1451_domNode$$73_subId$$33$$
}
$JSCompiler_prototypeAlias$$.$_execCommand$ = function $$JSCompiler_prototypeAlias$$$$_execCommand$$($key$$77$$, $value$$173$$) {
  var $agent$$489_editingAgent$$7$$ = $AdfAgent$$.$AGENT$;
  if(this.$_codeEditingMode$ != $JSCompiler_alias_TRUE$$ || $key$$77$$ == $AdfDhtmlRichTextEditorPeer$$.$COMMAND_MODE_RICH_TEXT$ || $key$$77$$ == $AdfDhtmlRichTextEditorPeer$$.$COMMAND_INSERT$) {
    $AdfAssert$$.$assertString$($key$$77$$);
    var $command$$14$$ = $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$key$$77$$];
    $AdfAssert$$.$assertString$($command$$14$$);
    var $component$$1452$$ = this.$getComponent$(), $element$$259$$;
    $key$$77$$ == $AdfDhtmlRichTextEditorPeer$$.$COMMAND_INSERT$ && this.$_codeEditingMode$ == $JSCompiler_alias_TRUE$$ ? $element$$259$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1452$$) : ($element$$259$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1452$$), $AdfAssert$$.$assertDomElement$($element$$259$$, "IFRAME"), this.$_isTouch$ && $agent$$489_editingAgent$$7$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ && $element$$259$$.focus(), this.$_lastSelectionRange$ != 
    $JSCompiler_alias_NULL$$ && $AdfEditingAgent$$.$getInstance$().setSelectionRange($JSCompiler_StaticMethods__getContentField$$(this.$getComponent$()), this.$_lastSelectionRange$));
    $agent$$489_editingAgent$$7$$ = $AdfEditingAgent$$.$getInstance$();
    if($agent$$489_editingAgent$$7$$.$isEmptySelection$($element$$259$$)) {
      var $JSCompiler_inline_result$$211_element$$inline_3431$$;
      a: {
        $JSCompiler_inline_result$$211_element$$inline_3431$$ = $element$$259$$;
        var $commands$$inline_3434$$ = [], $editingAgent$$inline_3442_tempCommand$$inline_3435$$, $styles$$inline_3436$$ = [$AdfDhtmlRichTextEditorPeer$$.$STYLE_BOLD$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_ITALIC$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_UNDERLINE$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_STRIKETHROUGH$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_SUPERSCRIPT$, $AdfDhtmlRichTextEditorPeer$$.$STYLE_SUBSCRIPT$], $oldStyleValues$$inline_3437$$ = this.$_oldStyleValues$;
        if($oldStyleValues$$inline_3437$$ == $JSCompiler_alias_VOID$$) {
          $JSCompiler_inline_result$$211_element$$inline_3431$$ = $JSCompiler_alias_TRUE$$
        }else {
          switch($command$$14$$) {
            case "bold":
            ;
            case "italic":
            ;
            case "underline":
            ;
            case "strikethrough":
            ;
            case "superscript":
            ;
            case "subscript":
              break;
            default:
              $JSCompiler_inline_result$$211_element$$inline_3431$$ = $JSCompiler_alias_TRUE$$;
              break a
          }
          var $result$$inline_3438$$ = $JSCompiler_alias_TRUE$$, $index$$inline_3439$$;
          for($index$$inline_3439$$ = 0;$index$$inline_3439$$ < $styles$$inline_3436$$.length;++$index$$inline_3439$$) {
            if($editingAgent$$inline_3442_tempCommand$$inline_3435$$ = $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$styles$$inline_3436$$[$index$$inline_3439$$]], $editingAgent$$inline_3442_tempCommand$$inline_3435$$ != $JSCompiler_alias_VOID$$) {
              if($editingAgent$$inline_3442_tempCommand$$inline_3435$$ == $command$$14$$) {
                $oldStyleValues$$inline_3437$$[$styles$$inline_3436$$[$index$$inline_3439$$]] && !$JSCompiler_StaticMethods__getSelectionStyling$$(this, $styles$$inline_3436$$[$index$$inline_3439$$]) && ($result$$inline_3438$$ = $JSCompiler_alias_FALSE$$)
              }else {
                var $oldValue$$inline_3440$$ = $oldStyleValues$$inline_3437$$[$styles$$inline_3436$$[$index$$inline_3439$$]], $selectionStyle$$inline_3441$$ = $JSCompiler_StaticMethods__getSelectionStyling$$(this, $styles$$inline_3436$$[$index$$inline_3439$$]);
                $oldValue$$inline_3440$$ !== $JSCompiler_alias_VOID$$ && $oldValue$$inline_3440$$ != $selectionStyle$$inline_3441$$ && ($commands$$inline_3434$$[$commands$$inline_3434$$.length] = $editingAgent$$inline_3442_tempCommand$$inline_3435$$)
              }
            }
          }
          $editingAgent$$inline_3442_tempCommand$$inline_3435$$ = $AdfEditingAgent$$.$getInstance$();
          for($index$$inline_3439$$ = 0;$index$$inline_3439$$ < $commands$$inline_3434$$.length;++$index$$inline_3439$$) {
            $editingAgent$$inline_3442_tempCommand$$inline_3435$$.execCommand($component$$1452$$, $JSCompiler_inline_result$$211_element$$inline_3431$$, $commands$$inline_3434$$[$index$$inline_3439$$], $value$$173$$)
          }
          $JSCompiler_inline_result$$211_element$$inline_3431$$ = $result$$inline_3438$$
        }
      }
      $JSCompiler_inline_result$$211_element$$inline_3431$$ && $agent$$489_editingAgent$$7$$.execCommand($component$$1452$$, $element$$259$$, $command$$14$$, $value$$173$$)
    }else {
      $agent$$489_editingAgent$$7$$.execCommand($component$$1452$$, $element$$259$$, $command$$14$$, $value$$173$$)
    }
  }
};
function $JSCompiler_StaticMethods__queryCommandValue$$($JSCompiler_StaticMethods__queryCommandValue$self_component$$1454_element$$261$$) {
  var $command$$16_key$$78$$ = $AdfDhtmlRichTextEditorPeer$$.$STYLE_FONT_SIZE$;
  $AdfAssert$$.$assertString$($command$$16_key$$78$$);
  $command$$16_key$$78$$ = $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$command$$16_key$$78$$];
  $AdfAssert$$.$assertString$($command$$16_key$$78$$);
  $JSCompiler_StaticMethods__queryCommandValue$self_component$$1454_element$$261$$ = $JSCompiler_StaticMethods__queryCommandValue$self_component$$1454_element$$261$$.$getComponent$();
  $JSCompiler_StaticMethods__queryCommandValue$self_component$$1454_element$$261$$ = $JSCompiler_StaticMethods__getContentField$$($JSCompiler_StaticMethods__queryCommandValue$self_component$$1454_element$$261$$);
  $AdfAssert$$.$assertDomElement$($JSCompiler_StaticMethods__queryCommandValue$self_component$$1454_element$$261$$, "IFRAME");
  return $AdfEditingAgent$$.$getInstance$().queryCommandValue($JSCompiler_StaticMethods__queryCommandValue$self_component$$1454_element$$261$$, $command$$16_key$$78$$)
}
$JSCompiler_prototypeAlias$$.$_styleBindingActionListener$ = function $$JSCompiler_prototypeAlias$$$$_styleBindingActionListener$$($event$$225$$) {
  if(!(this.$_styleObservers$ == $JSCompiler_alias_VOID$$ || this.$_commandBeingProcessed$)) {
    this.$_commandBeingProcessed$ = $JSCompiler_alias_TRUE$$;
    for(var $eventComponentId$$1$$ = $event$$225$$.getSource().$getClientId$(), $observers$$3$$ = this.$_styleObservers$, $length$$49$$ = $observers$$3$$.length, $i$$408$$ = 0;$i$$408$$ < $length$$49$$;$i$$408$$++) {
      var $observer$$3_styleKey$$inline_3448$$ = $observers$$3$$[$i$$408$$];
      if($observer$$3_styleKey$$inline_3448$$.$componentId$ == $eventComponentId$$1$$) {
        $event$$225$$.$setPartial$($JSCompiler_alias_TRUE$$);
        var $JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$;
        $JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$ = $observer$$3_styleKey$$inline_3448$$.$styleKey$;
        $AdfAssert$$.$assertString$($JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$);
        this.$_ignoreEvents$[$JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$] == $JSCompiler_alias_VOID$$ || 0 == this.$_ignoreEvents$[$JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$] ? $JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$ = $JSCompiler_alias_FALSE$$ : (this.$_ignoreEvents$[$JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$]--, $JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$ = $JSCompiler_alias_TRUE$$);
        if(!$JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$) {
          if($observer$$3_styleKey$$inline_3448$$.$eventType$ == $AdfActionEvent$$.$ACTION_EVENT_TYPE$) {
            $observer$$3_styleKey$$inline_3448$$ = $observer$$3_styleKey$$inline_3448$$.$styleKey$, $AdfAssert$$.$assertString$($observer$$3_styleKey$$inline_3448$$), this.$_execCommand$($observer$$3_styleKey$$inline_3448$$, $JSCompiler_alias_NULL$$)
          }else {
            if($observer$$3_styleKey$$inline_3448$$.$eventType$ == $AdfValueChangeEvent$$.$VALUE_CHANGE_TYPE$) {
              if(($JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$ = $event$$225$$.$getNewValue$()) && $JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$.$_class$ && "TrColor" == $JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$.$_class$) {
                $JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$ = (new TrColorConverter(["#RRGGBB"], $JSCompiler_alias_FALSE$$)).getAsString($JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$), $observer$$3_styleKey$$inline_3448$$.$styleKey$ == $AdfDhtmlRichTextEditorPeer$$.$STYLE_COLOR_BACKGROUND$ && (this.$_oldStyleValues$[$observer$$3_styleKey$$inline_3448$$.$styleKey$] = $JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$)
              }
              this.$_execCommand$($observer$$3_styleKey$$inline_3448$$.$styleKey$, $JSCompiler_inline_result$$230_styleKey$$inline_3445_value$$175$$)
            }else {
              $AdfLogger$$.$LOGGER$.severe("This eventType (", eventType, ") is not supported by richTextEditor.")
            }
          }
          this.$_handleContextChanged$()
        }
        this.$_hadFirstFocus$ && this.focus(this.$getComponent$());
        $event$$225$$.cancel()
      }
    }
    $JSCompiler_StaticMethods__updateValue$$(this);
    delete this.$_commandBeingProcessed$
  }
};
$JSCompiler_prototypeAlias$$.$_commandBindingActionListener$ = function $$JSCompiler_prototypeAlias$$$$_commandBindingActionListener$$($component$$1455_event$$226$$) {
  if(!(this.$_commandObservers$ == $JSCompiler_alias_VOID$$ || this.$_commandBeingProcessed$)) {
    this.$_commandBeingProcessed$ = $JSCompiler_alias_TRUE$$;
    for(var $eventComponentId$$2$$ = $component$$1455_event$$226$$.getSource().$getClientId$(), $observers$$4$$ = this.$_commandObservers$, $length$$50$$ = $observers$$4$$.length, $insertCmdExecuted$$ = $JSCompiler_alias_FALSE$$, $i$$409$$ = 0;$i$$409$$ < $length$$50$$;$i$$409$$++) {
      var $observer$$4$$ = $observers$$4$$[$i$$409$$];
      if($observer$$4$$.$componentId$ == $eventComponentId$$2$$) {
        $component$$1455_event$$226$$.$setPartial$($JSCompiler_alias_TRUE$$);
        var $commandKey$$2$$ = $observer$$4$$.$command$;
        this.$_execCommand$($commandKey$$2$$, $observer$$4$$.$commandParameter$);
        this.$_handleContextChanged$();
        $component$$1455_event$$226$$.cancel();
        $commandKey$$2$$ == $AdfDhtmlRichTextEditorPeer$$.$COMMAND_INSERT$ && ($insertCmdExecuted$$ = $JSCompiler_alias_TRUE$$)
      }
    }
    $JSCompiler_StaticMethods__updateValue$$(this);
    $insertCmdExecuted$$ && ($component$$1455_event$$226$$ = this.$getComponent$(), this.$Validate$($component$$1455_event$$226$$, this.$GetSubmittedValue$($component$$1455_event$$226$$, this.$getDomElement$())));
    delete this.$_commandBeingProcessed$
  }
};
$JSCompiler_prototypeAlias$$.$_addContextChangeListeners$ = function $$JSCompiler_prototypeAlias$$$$_addContextChangeListeners$$($doc$$61_field$$3$$) {
  var $component$$1456_sourceCodeField$$ = this.$getComponent$(), $agent$$490$$ = $AdfAgent$$.$AGENT$, $editingAgent$$9$$ = $AdfEditingAgent$$.$getInstance$(), $focusBlurElement$$1$$ = $editingAgent$$9$$.$getFocusBlurElement$($doc$$61_field$$3$$);
  this.$_focusCallback$ = this.$createCallback$(this.$_handleFocus$);
  this.$_blurCallback$ = this.$createCallback$(this.$_handleBlur$);
  if(this.$_isTouch$ && $agent$$490$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$) {
    $agent$$490$$.$addBubbleEventListener$($doc$$61_field$$3$$, "blur", this.$_blurCallback$);
    var $peer$$142$$ = this;
    this.$_clickCallback$ = this.$createCallback$(this.$_handleClick$);
    $agent$$490$$.$addBubbleEventListener$($focusBlurElement$$1$$, "click", this.$_clickCallback$)
  }
  $agent$$490$$.$addBubbleEventListener$($focusBlurElement$$1$$, "blur", this.$_blurCallback$);
  $agent$$490$$.$addBubbleEventListener$($focusBlurElement$$1$$, "focus", this.$_focusCallback$);
  $component$$1456_sourceCodeField$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1456_sourceCodeField$$);
  this.$_sourceBlurCallback$ = this.$createCallback$(this.$_handleBlur$);
  this.$_sourceFocusCallback$ = this.$createCallback$(this.$_handleFocus$);
  $agent$$490$$.$addBubbleEventListener$($component$$1456_sourceCodeField$$, "blur", this.$_sourceBlurCallback$);
  $agent$$490$$.$addBubbleEventListener$($component$$1456_sourceCodeField$$, "focus", this.$_sourceFocusCallback$);
  $doc$$61_field$$3$$ = $editingAgent$$9$$.$getInlineFrameDocument$($doc$$61_field$$3$$);
  this.$_keyDownCallback$ = this.$createCallback$(this.$_handleKeyDown$);
  $agent$$490$$.$addBubbleEventListener$($doc$$61_field$$3$$, "keydown", this.$_keyDownCallback$);
  $agent$$490$$.$addBubbleEventListener$($component$$1456_sourceCodeField$$, "keydown", this.$_keyDownCallback$);
  this.$_contextChangeCallback$ = this.$createCallback$(this.$_handleContextChanged$);
  this.$_mouseUpCallBack$ = this.$createCallback$(this.$_handleMouseUp$);
  $agent$$490$$.$addBubbleEventListener$($doc$$61_field$$3$$, "mouseup", this.$_mouseUpCallBack$);
  $agent$$490$$.$addBubbleEventListener$($doc$$61_field$$3$$, "keyup", this.$_contextChangeCallback$);
  this.$_dragEndCallback$ = this.$createCallback$(this.$_handleDragEnd$);
  $agent$$490$$.$addBubbleEventListener$($doc$$61_field$$3$$, "dragend", this.$_dragEndCallback$);
  this.$_mouseDownCallback$ = this.$createCallback$(this.$_handleMouseDown$);
  $agent$$490$$.$addBubbleEventListener$(this.$getDomElement$(), "mousedown", this.$_mouseDownCallback$);
  $AdfAgent$$.$AGENT$.$getPlatform$() != $AdfAgent$$.$IE_PLATFORM$ && $agent$$490$$.$addBubbleEventListener$($doc$$61_field$$3$$, "blur", this.$_contextChangeCallback$);
  this.$_isTouch$ && $AdfAgent$$.$guessOS$() != $AdfAgent$$.$WINDOWS_OS$ && ($peer$$142$$ = this, this.$_saveSelectionInterval$ = setInterval(function() {
    $JSCompiler_StaticMethods__saveSelection$$($peer$$142$$)
  }, 500), $agent$$490$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ && 536 > $agent$$490$$.$getVersion$() && (this.$_handleCopyCallback$ = this.$createCallback$(this.$_handleCopy$), this.$getDomDocument$().addEventListener("copy", this.$_handleCopyCallback$, $JSCompiler_alias_TRUE$$), this.$_handlePasteCallback$ = this.$createCallback$(this.$_handlePaste$), this.$getDomDocument$().addEventListener("paste", this.$_handlePasteCallback$, $JSCompiler_alias_TRUE$$)));
  this.$_redistributeEventsToNewTargetCallback$ = this.$createCallback$(this.$_redistributeEventsToNewTarget$);
  $agent$$490$$.$addEventBubbles$($doc$$61_field$$3$$, this.$_redistributeEventsToNewTargetCallback$)
};
$JSCompiler_prototypeAlias$$.$_redistributeEventsToNewTarget$ = function $$JSCompiler_prototypeAlias$$$$_redistributeEventsToNewTarget$$($evt$$123$$) {
  var $comp$$13_newEvent$$13$$ = this.$getComponent$();
  $evt$$123$$ || ($evt$$123$$ = $JSCompiler_StaticMethods__getContentField$$($comp$$13_newEvent$$13$$).contentWindow.event);
  var $agent$$492$$ = $AdfAgent$$.$AGENT$;
  if($agent$$492$$.$isKeyboardEvent$($evt$$123$$) || $agent$$492$$.$isMouseEvent$($evt$$123$$)) {
    $comp$$13_newEvent$$13$$ = $AdfAgent$$.$AGENT$.$cloneEvent$($evt$$123$$, $JSCompiler_StaticMethods__getSourceCodeField$$($comp$$13_newEvent$$13$$)), this.$_clonedEventMap$ || (this.$_clonedEventMap$ = []), this.$_clonedEventMap$[$comp$$13_newEvent$$13$$] = $evt$$123$$, $AdfPage$$.$PAGE$.$_redistribute$($comp$$13_newEvent$$13$$)
  }
};
$JSCompiler_prototypeAlias$$.$_handleFocus$ = function $$JSCompiler_prototypeAlias$$$$_handleFocus$$($evt$$124_touchEventListeners$$) {
  var $agent$$493_i$$410$$ = $AdfAgent$$.$AGENT$;
  if(!this.$_commandBeingProcessed$) {
    var $component$$1458_focusTarget$$ = this.$getComponent$();
    this.$_hadFirstFocus$ || (this.$_hadFirstFocus$ = $JSCompiler_alias_TRUE$$);
    var $componentEvent$$351$$ = $AdfAgent$$.$AGENT$.$getComponentEvent$($component$$1458_focusTarget$$, $evt$$124_touchEventListeners$$), $field$$5$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1458_focusTarget$$);
    $AdfPage$$.$PAGE$.$__setActiveDomNodeInfo$($field$$5$$, $component$$1458_focusTarget$$.$getClientId$());
    this.$_codeEditingMode$ ? $component$$1458_focusTarget$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1458_focusTarget$$) : ($component$$1458_focusTarget$$ = $AdfEditingAgent$$.$getInstance$().$getContentWindow$($field$$5$$), $component$$1458_focusTarget$$ = $component$$1458_focusTarget$$.document);
    $component$$1458_focusTarget$$ == $evt$$124_touchEventListeners$$.originalTarget && $componentEvent$$351$$.$getEventPhase$() == $AdfBaseEvent$$.CAPTURING_PHASE && $componentEvent$$351$$.$nextEventPhase$();
    this.$HandleComponentFocus$($componentEvent$$351$$)
  }
  if(this.$_isTouch$ && ($agent$$493_i$$410$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ && $AdfAgent$$.$guessOS$() != $AdfAgent$$.$ANDROID_OS$) && $agent$$493_i$$410$$.$_getTouchEventListeners$ && ($evt$$124_touchEventListeners$$ = $agent$$493_i$$410$$.$_touchEventListeners$)) {
    for($agent$$493_i$$410$$ = 0;$agent$$493_i$$410$$ < $evt$$124_touchEventListeners$$.length;$agent$$493_i$$410$$++) {
      this.$getDomDocument$().removeEventListener($evt$$124_touchEventListeners$$[$agent$$493_i$$410$$].$eventType$, $evt$$124_touchEventListeners$$[$agent$$493_i$$410$$].$listener$, $evt$$124_touchEventListeners$$[$agent$$493_i$$410$$].capture)
    }
  }
};
$JSCompiler_prototypeAlias$$.$_handleLoad$ = function $$JSCompiler_prototypeAlias$$$$_handleLoad$$() {
  var $editingAgent$$11_inlineFrameDocument$$3$$ = $AdfEditingAgent$$.$getInstance$(), $component$$1459$$ = this.$getComponent$();
  $AdfAssert$$.$assertObject$($component$$1459$$, "Unexpected unbound peer for load event on iframe.");
  var $contentField$$5$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1459$$);
  $AdfAssert$$.$assertDomElement$($contentField$$5$$);
  var $needsDesignMode$$ = !$component$$1459$$.getDisabled() && !$editingAgent$$11_inlineFrameDocument$$3$$.$isDesignMode$($contentField$$5$$);
  if($editingAgent$$11_inlineFrameDocument$$3$$.$isDesignModeReloadingFrame$() && $needsDesignMode$$) {
    $JSCompiler_StaticMethods__makeEditable$$(this, $component$$1459$$)
  }else {
    var $hiddenInputElement$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1459$$);
    $AdfAssert$$.$assertDomElement$($hiddenInputElement$$);
    if("lazy" != $component$$1459$$.getContentDelivery()) {
      $JSCompiler_StaticMethods__setInlineFrameContent$$(this, $contentField$$5$$, $hiddenInputElement$$.value)
    }else {
      var $value$$176$$ = this.$getCurrentContent$($component$$1459$$, $JSCompiler_alias_TRUE$$);
      $hiddenInputElement$$.value = $value$$176$$;
      $editingAgent$$11_inlineFrameDocument$$3$$ = $editingAgent$$11_inlineFrameDocument$$3$$.$getInlineFrameDocument$($contentField$$5$$);
      $JSCompiler_StaticMethods__setInlineFrameStyle$$(this, $editingAgent$$11_inlineFrameDocument$$3$$)
    }
    $needsDesignMode$$ && $JSCompiler_StaticMethods__makeEditable$$(this, $component$$1459$$);
    $component$$1459$$.getReadOnly() || $AdfRichTextEditorBehaviorManager$$.$getInstance$().$registerComponent$($component$$1459$$);
    $contentField$$5$$.setAttribute("data-afr-rte-loaded", "1")
  }
};
$JSCompiler_prototypeAlias$$.$_handleBlur$ = function $$JSCompiler_prototypeAlias$$$$_handleBlur$$() {
  var $agent$$494_touchEventListeners$$1$$ = $AdfAgent$$.$AGENT$;
  if(!this.$_commandBeingProcessed$) {
    var $component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$ = this.$getComponent$(), $contentNode$$58_editingAgent$$inline_3451_focusBlurElement$$inline_3454$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$), $inlineFrame$$inline_3452_lastValue$$5$$ = $AdfDhtmlInputBasePeer$$.$getLastValue$($contentNode$$58_editingAgent$$inline_3451_focusBlurElement$$inline_3454$$);
    this.$_tabForward$ ? (delete this.$_tabForward$, $AdfFocusUtils$$.$focusNextTabStop$($AdfPage$$.$PAGE$.$_activeDomNode$)) : this.$_tabBack$ && (delete this.$_tabBack$, $AdfFocusUtils$$.$focusPreviousTabStop$($AdfPage$$.$PAGE$.$_activeDomNode$));
    $JSCompiler_StaticMethods__updateValue$$(this);
    this.$_mouseDownOrTabBack$ && delete this.$_mouseDownOrTabBack$;
    var $isValueChanged$$ = $JSCompiler_alias_FALSE$$, $newValue$$115$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$).value;
    $inlineFrame$$inline_3452_lastValue$$5$$ != $newValue$$115$$ && $inlineFrame$$inline_3452_lastValue$$5$$ !== $JSCompiler_alias_VOID$$ && ($isValueChanged$$ = $JSCompiler_alias_TRUE$$);
    if($isValueChanged$$ && (!this.$_mouseDownOrTabBack$ || !$component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$.getValid($component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$.$getClientId$()))) {
      this.$Validate$($component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$, this.$GetSubmittedValue$($component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$, this.$getDomElement$())), $AdfDhtmlInputBasePeer$$.$setLastValue$($contentNode$$58_editingAgent$$inline_3451_focusBlurElement$$inline_3454$$, $newValue$$115$$)
    }
  }
  if(this.$_isTouch$ && ($agent$$494_touchEventListeners$$1$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ && $AdfAgent$$.$guessOS$() != $AdfAgent$$.$ANDROID_OS$) && ($contentNode$$58_editingAgent$$inline_3451_focusBlurElement$$inline_3454$$ = $AdfEditingAgent$$.$getInstance$(), $inlineFrame$$inline_3452_lastValue$$5$$ = $JSCompiler_StaticMethods__getContentField$$(this.$getComponent$()), $component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$ = $contentNode$$58_editingAgent$$inline_3451_focusBlurElement$$inline_3454$$.$getInlineFrameDocument$($inlineFrame$$inline_3452_lastValue$$5$$), 
  $contentNode$$58_editingAgent$$inline_3451_focusBlurElement$$inline_3454$$ = $contentNode$$58_editingAgent$$inline_3451_focusBlurElement$$inline_3454$$.$getFocusBlurElement$($inlineFrame$$inline_3452_lastValue$$5$$), $component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$ = $component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$.createElement("input"), $component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$.type = "text", $component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$.style.position = 
  "absolute", $component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$.style.left = "0px", $component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$.style.top = "0px", $component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$.style.height = "0px", $component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$.style.width = "0px", $component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$.style.opacity = "0", $contentNode$$58_editingAgent$$inline_3451_focusBlurElement$$inline_3454$$.appendChild($component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$), 
  $component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$.focus(), $component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$.blur(), $contentNode$$58_editingAgent$$inline_3451_focusBlurElement$$inline_3454$$.removeChild($component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$), $agent$$494_touchEventListeners$$1$$.$_getTouchEventListeners$ && ($agent$$494_touchEventListeners$$1$$ = $agent$$494_touchEventListeners$$1$$.$_touchEventListeners$))) {
    for($component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$ = 0;$component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$ < $agent$$494_touchEventListeners$$1$$.length;$component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$++) {
      this.$getDomDocument$().addEventListener($agent$$494_touchEventListeners$$1$$[$component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$].$eventType$, $agent$$494_touchEventListeners$$1$$[$component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$].$listener$, $agent$$494_touchEventListeners$$1$$[$component$$1460_domDoc$$inline_3453_i$$411_inputElement$$inline_3455$$].capture)
    }
  }
};
$JSCompiler_prototypeAlias$$.$_handleClick$ = function $$JSCompiler_prototypeAlias$$$$_handleClick$$() {
  this.$Focus$()
};
$JSCompiler_prototypeAlias$$.$_handleMouseDown$ = function $$JSCompiler_prototypeAlias$$$$_handleMouseDown$$() {
  this.$_mouseDownOrTabBack$ = $JSCompiler_alias_TRUE$$
};
$JSCompiler_prototypeAlias$$.$_handleDragEnd$ = function $$JSCompiler_prototypeAlias$$$$_handleDragEnd$$() {
  if($AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$) {
    var $time$$2$$ = this.$_keyTimer$;
    $time$$2$$ && clearTimeout($time$$2$$);
    $AdfPage$$.$PAGE$.$scheduleTimer$(this, $AdfDhtmlRichTextEditorPeer$$.$HandleTimerUpdate$, this.$getComponent$().$getClientId$(), 0)
  }else {
    this.$_handleContextChanged$()
  }
};
$JSCompiler_prototypeAlias$$.$_handleCopy$ = function $$JSCompiler_prototypeAlias$$$$_handleCopy$$($event$$227_rangeToSelect$$) {
  if($event$$227_rangeToSelect$$.clipboardData && this.$_lastSelectionRange$ != $JSCompiler_alias_NULL$$ && (this.$_isInPopup$() || !$AdfPage$$.$PAGE$.$getModalityManager$().$isGlassPaneVisible$())) {
    var $document$$17$$ = this.$getDomDocument$(), $copyElement$$ = $document$$17$$.createElement("div");
    $copyElement$$.style.position = "absolute";
    $copyElement$$.style.left = "-1000px";
    $copyElement$$.style.top = "-1000px";
    $copyElement$$.contentEditable = "true";
    $copyElement$$.textContent = this.$_lastSelectionRange$.toString();
    $document$$17$$.body.appendChild($copyElement$$);
    $event$$227_rangeToSelect$$ = $document$$17$$.createRange();
    $event$$227_rangeToSelect$$.selectNodeContents($copyElement$$);
    var $selection$$16$$ = window.getSelection();
    $selection$$16$$.removeAllRanges();
    $selection$$16$$.addRange($event$$227_rangeToSelect$$);
    $document$$17$$.execCommand("copy", $JSCompiler_alias_FALSE$$, $JSCompiler_alias_NULL$$);
    setTimeout(function() {
      $document$$17$$.body.removeChild($copyElement$$)
    }, 500)
  }
};
$JSCompiler_prototypeAlias$$.$_handlePaste$ = function $$JSCompiler_prototypeAlias$$$$_handlePaste$$($event$$228_pasteText$$) {
  var $agent$$495$$ = $AdfAgent$$.$AGENT$;
  if($event$$228_pasteText$$.clipboardData && (this.$_isInPopup$() || !$AdfPage$$.$PAGE$.$getModalityManager$().$isGlassPaneVisible$())) {
    if(this.$_isInPopup$() && $agent$$495$$.$getPlatform$() == $AdfAgent$$.$WEBKIT_PLATFORM$ && 536 > $agent$$495$$.$getVersion$()) {
      if(this.$_hasPasteEvent$) {
        return
      }
      this.$_hasPasteEvent$ = $JSCompiler_alias_TRUE$$;
      var $peer$$143$$ = this;
      setTimeout(function() {
        delete $peer$$143$$.$_hasPasteEvent$
      }, 500)
    }
    $event$$228_pasteText$$ = $event$$228_pasteText$$.clipboardData.getData("Text");
    this.$_execCommand$("cmd_insert", $event$$228_pasteText$$)
  }
};
function $JSCompiler_StaticMethods__updateValue$$($JSCompiler_StaticMethods__updateValue$self_newValue$$116$$) {
  var $component$$1461$$ = $JSCompiler_StaticMethods__updateValue$self_newValue$$116$$.$getComponent$(), $richTextField$$2$$ = $JSCompiler_StaticMethods__getContentField$$($component$$1461$$);
  $JSCompiler_StaticMethods__updateValue$self_newValue$$116$$.$_keyTimer$ && (clearTimeout($JSCompiler_StaticMethods__updateValue$self_newValue$$116$$.$_keyTimer$), delete $JSCompiler_StaticMethods__updateValue$self_newValue$$116$$.$_keyTimer$);
  if("none" != $richTextField$$2$$.style.display) {
    var $contentNode$$59$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1461$$), $editingAgent$$12$$ = $AdfEditingAgent$$.$getInstance$();
    $JSCompiler_StaticMethods__updateValue$self_newValue$$116$$ = $JSCompiler_StaticMethods__updateValue$self_newValue$$116$$.$getCurrentContent$($component$$1461$$);
    -1 != navigator.userAgent.toLowerCase().indexOf("chrome") && $JSCompiler_StaticMethods__updateValue$self_newValue$$116$$.$includes$("span") && ($JSCompiler_StaticMethods__updateValue$self_newValue$$116$$ = $JSCompiler_StaticMethods__updateValue$self_newValue$$116$$.replace(/; /gi, ";").replace(/: /gi, ":"));
    $contentNode$$59$$.value = $JSCompiler_StaticMethods__updateValue$self_newValue$$116$$;
    $editingAgent$$12$$.$updateValueHistory$($component$$1461$$, $richTextField$$2$$, $JSCompiler_StaticMethods__updateValue$self_newValue$$116$$)
  }
}
function $JSCompiler_StaticMethods__getSelectionStyling$$($JSCompiler_StaticMethods__getSelectionStyling$self$$, $styleKey$$2$$) {
  $AdfAssert$$.$assertString$($styleKey$$2$$);
  var $commandIdentifier$$9$$ = $AdfDhtmlRichTextEditorPeer$$.$_execCommandMap$[$styleKey$$2$$];
  $AdfAssert$$.$assertString$($commandIdentifier$$9$$);
  return $AdfEditingAgent$$.$getInstance$().queryCommandState($JSCompiler_StaticMethods__getContentField$$($JSCompiler_StaticMethods__getSelectionStyling$self$$.$getComponent$()), $commandIdentifier$$9$$)
}
$JSCompiler_prototypeAlias$$.$_addCommandBinding$ = function $$JSCompiler_prototypeAlias$$$$_addCommandBinding$$($componentId$$50$$, $bindComponent$$2$$, $command$$17$$, $commandParameter$$4$$) {
  $AdfAssert$$.$assertString$($componentId$$50$$);
  $AdfAssert$$.$assertString$($command$$17$$);
  this.$_commandObservers$ || (this.$_commandObservers$ = []);
  for(var $length$$52$$ = this.$_commandObservers$.length, $commandObserver$$1$$ = $JSCompiler_alias_NULL$$, $i$$413$$ = 0;$i$$413$$ < $length$$52$$;$i$$413$$++) {
    var $observerObj$$5$$ = this.$_commandObservers$[$i$$413$$];
    if($observerObj$$5$$.$componentId$ == $componentId$$50$$ && $observerObj$$5$$.$command$ == $command$$17$$) {
      $observerObj$$5$$.$commandParameter$ = $commandParameter$$4$$;
      $commandObserver$$1$$ = $observerObj$$5$$;
      break
    }
  }
  $commandObserver$$1$$ == $JSCompiler_alias_NULL$$ && ($commandObserver$$1$$ = {$componentId$:$componentId$$50$$, $command$:$command$$17$$, $commandParameter$:$commandParameter$$4$$}, this.$_commandObservers$.push($commandObserver$$1$$));
  $bindComponent$$2$$.$isDescendant$(this.$getComponent$()) || $bindComponent$$2$$.addEventListener($AdfActionEvent$$.$ACTION_EVENT_TYPE$, this.$_commandBindingActionListener$, this)
};
$JSCompiler_prototypeAlias$$.$_removeCommandBindings$ = function $$JSCompiler_prototypeAlias$$$$_removeCommandBindings$$($component$$1463$$) {
  var $observers$$6$$ = this.$_commandObservers$;
  if($observers$$6$$ != $JSCompiler_alias_VOID$$) {
    for(var $length$$53$$ = $observers$$6$$.length, $listener$$99$$ = this.$_commandBindingActionListener$, $i$$414$$ = 0;$i$$414$$ < $length$$53$$;$i$$414$$++) {
      var $boundComponent$$2$$ = $AdfPage$$.$PAGE$.$findComponent$($observers$$6$$[$i$$414$$].$componentId$);
      $boundComponent$$2$$ != $JSCompiler_alias_VOID$$ && ($boundComponent$$2$$.$isDescendant$($component$$1463$$) || $boundComponent$$2$$.removeEventListener($AdfActionEvent$$.$ACTION_EVENT_TYPE$, $listener$$99$$, this))
    }
  }
};
$JSCompiler_prototypeAlias$$.$_isInPopup$ = function $$JSCompiler_prototypeAlias$$$$_isInPopup$$() {
  var $parent$$54$$ = $JSCompiler_alias_NULL$$;
  try {
    $parent$$54$$ = this.$getComponent$().getParent()
  }catch($err$$1$$) {
  }
  if($parent$$54$$ == $JSCompiler_alias_NULL$$) {
    return $JSCompiler_alias_FALSE$$
  }
  for(;$parent$$54$$ != $JSCompiler_alias_NULL$$;) {
    if($parent$$54$$ instanceof AdfRichPopup) {
      return $JSCompiler_alias_TRUE$$
    }
    try {
      $parent$$54$$ = $parent$$54$$.getParent()
    }catch($err$$2$$) {
      return $JSCompiler_alias_FALSE$$
    }
    if($parent$$54$$ == $JSCompiler_alias_NULL$$) {
      return $JSCompiler_alias_FALSE$$
    }
  }
};
function $JSCompiler_StaticMethods__emptySelection$$($selRange$$) {
  return!$selRange$$ || 0 == $AdfEditingAgent$$.$getInstance$().$getSelectionRangeString$($selRange$$).length
}
$JSCompiler_prototypeAlias$$.$_toolbarPopupURLBlur$ = function $$JSCompiler_prototypeAlias$$$$_toolbarPopupURLBlur$$($componentEvent$$352_value$$177$$) {
  $componentEvent$$352_value$$177$$.$getEventPhase$() == $AdfBaseEvent$$.$AT_TARGET_PHASE$ && !$JSCompiler_StaticMethods__emptySelection$$(this.$_lastSelectionRange$) && ($componentEvent$$352_value$$177$$ = $componentEvent$$352_value$$177$$.$getCurrentTarget$().getValue(), "about:blank" !== $componentEvent$$352_value$$177$$ && (/^http:\/\//.test($componentEvent$$352_value$$177$$) || ($componentEvent$$352_value$$177$$ = "http://" + $componentEvent$$352_value$$177$$), this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$COMMAND_LINK$, 
  $componentEvent$$352_value$$177$$), $JSCompiler_StaticMethods__saveSelection$$(this)))
};
$JSCompiler_prototypeAlias$$.$_toolbarPopupDisplayedTextBlur$ = function $$JSCompiler_prototypeAlias$$$$_toolbarPopupDisplayedTextBlur$$($componentEvent$$353_value$$178$$) {
  if($componentEvent$$353_value$$178$$.$getEventPhase$() == $AdfBaseEvent$$.$AT_TARGET_PHASE$) {
    var $selRange$$2_selectionRangeString$$ = this.$_lastSelectionRange$, $editingAgent$$14$$ = $AdfEditingAgent$$.$getInstance$();
    $JSCompiler_StaticMethods__emptySelection$$($selRange$$2_selectionRangeString$$) || ($componentEvent$$353_value$$178$$ = $componentEvent$$353_value$$178$$.$getCurrentTarget$().getValue(), $selRange$$2_selectionRangeString$$ = $editingAgent$$14$$.$getSelectionRangeString$($selRange$$2_selectionRangeString$$), $componentEvent$$353_value$$178$$ !== $selRange$$2_selectionRangeString$$ && this.$_execCommand$($AdfDhtmlRichTextEditorPeer$$.$COMMAND_INSERT$, $componentEvent$$353_value$$178$$))
  }
};
function $JSCompiler_StaticMethods__getToolbarPopupNode$$($component$$1464$$) {
  return $AdfAgent$$.$AGENT$.getElementById($AdfRichUIPeer$$.$CreateSubId$($component$$1464$$.$getClientId$(), $AdfDhtmlRichTextEditorPeer$$.$_TOOLBAR_POPUP_CONTAINER_ID$))
}
function $JSCompiler_StaticMethods__getToolbarPopupInputContainer$$($component$$1465$$) {
  return $AdfAgent$$.$AGENT$.getElementById($component$$1465$$.getId() + $AdfDhtmlRichTextEditorPeer$$.$_TOOLBAR_POPUP_INPUT_CONTAINER_ID$)
}
function $JSCompiler_StaticMethods__getToolbarPopupURLComp$$($component$$1466$$) {
  return $AdfPage$$.$PAGE$.$findComponent$($component$$1466$$.getId() + $AdfDhtmlRichTextEditorPeer$$.$_TOOLBAR_POPUP_LINK_INPUT_ID$)
}
function $JSCompiler_StaticMethods__getToolbarPopupDisplayedTextComp$$($component$$1467$$) {
  return $AdfPage$$.$PAGE$.$findComponent$($component$$1467$$.getId() + $AdfDhtmlRichTextEditorPeer$$.$_TOOLBAR_POPUP_LINK_SELECTED_INPUT_ID$)
}
function $JSCompiler_StaticMethods__showToolbarPopup$$($JSCompiler_StaticMethods__showToolbarPopup$self$$) {
  var $agent$$496_toolbarPopupNode$$ = $AdfAgent$$.$AGENT$, $component$$1468$$ = $JSCompiler_StaticMethods__showToolbarPopup$self$$.$getComponent$(), $clientId$$364$$ = $component$$1468$$.$getClientId$(), $alignDom_dtComp$$1$$ = $agent$$496_toolbarPopupNode$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$364$$, $AdfDhtmlRichTextEditorPeer$$.$_CONTENT_INPUT_CONTAINER_SUBID$)), $agent$$496_toolbarPopupNode$$ = $JSCompiler_StaticMethods__getToolbarPopupNode$$($component$$1468$$), $hints$$97$$ = 
  {autodismiss:"autodismissAlways"};
  $hints$$97$$.alignElement = $alignDom_dtComp$$1$$;
  $hints$$97$$[AdfRichPopup.$HINT_ALIGN$] = AdfRichPopup.$ALIGN_BEFORE_START$;
  $hints$$97$$.focus = $JSCompiler_alias_FALSE$$;
  $AdfDomUtils$$.setVisible($agent$$496_toolbarPopupNode$$, $JSCompiler_alias_TRUE$$);
  if(!$JSCompiler_StaticMethods__showToolbarPopup$self$$.$_toolbarPopupListenerInitialized$) {
    var $alignDom_dtComp$$1$$ = $JSCompiler_StaticMethods__getToolbarPopupDisplayedTextComp$$($component$$1468$$), $urlComp$$ = $JSCompiler_StaticMethods__getToolbarPopupURLComp$$($component$$1468$$), $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$ = $JSCompiler_alias_TRUE$$
  }
  $JSCompiler_StaticMethods__showToolbarPopup$self$$.$showPopup$($component$$1468$$, $agent$$496_toolbarPopupNode$$, $hints$$97$$, $clientId$$364$$)
}
$JSCompiler_prototypeAlias$$.$PopupClosed$ = function $$JSCompiler_prototypeAlias$$$$PopupClosed$$($component$$1469$$, $contentDom$$39$$) {
  $AdfDhtmlRichTextEditorPeer$$.$superclass$.$PopupClosed$.call(this, $component$$1469$$, $contentDom$$39$$);
  var $contentNode$$60_popupDom$$6$$ = $JSCompiler_StaticMethods__getToolbarPopupNode$$($component$$1469$$);
  if($contentNode$$60_popupDom$$6$$ == $contentDom$$39$$ && $AdfDomUtils$$.$isVisible$($contentNode$$60_popupDom$$6$$)) {
    var $agent$$497_contNode$$2$$ = $AdfAgent$$.$AGENT$, $compId$$2$$ = $component$$1469$$.getId(), $cicNode$$1_clientId$$365$$ = this.$getComponent$().$getClientId$(), $contentNode$$60_popupDom$$6$$ = $agent$$497_contNode$$2$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($cicNode$$1_clientId$$365$$, "content")), $cicNode$$1_clientId$$365$$ = $agent$$497_contNode$$2$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($cicNode$$1_clientId$$365$$, $AdfDhtmlRichTextEditorPeer$$.$_CONTENT_INPUT_CONTAINER_SUBID$)), 
    $agent$$497_contNode$$2$$ = $agent$$497_contNode$$2$$.getElementById($compId$$2$$ + $AdfDhtmlRichTextEditorPeer$$.$_TOOLBAR_POPUP_INPUT_CONTAINER_ID$);
    $contentNode$$60_popupDom$$6$$.insertBefore($contentDom$$39$$, $cicNode$$1_clientId$$365$$);
    $AdfDomUtils$$.setVisible($agent$$497_contNode$$2$$, $JSCompiler_alias_FALSE$$);
    $AdfDomUtils$$.setVisible($contentDom$$39$$, $JSCompiler_alias_FALSE$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorPeer.prototype.PopupClosed", {$PopupClosed$:$AdfDhtmlRichTextEditorPeer$$.prototype.$PopupClosed$});
