var $AdfDhtmlRichTextEditorBasePeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfDhtmlEditableValuePeer$$, "AdfDhtmlRichTextEditorBasePeer", !1);
$goog$exportSymbol$$("AdfDhtmlRichTextEditorBasePeer", $AdfDhtmlRichTextEditorBasePeer$$);
$AdfDhtmlRichTextEditorBasePeer$$.$InitSubclass$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$InitSubclass$$() {
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$FOCUS_EVENT_TYPE$, $AdfActionEvent$$.$ACTION_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_UP_EVENT_TYPE$);
  $AdfRichUIPeer$$.$addSuppressedPPRAttributes$(this, "editMode");
  $AdfRichUIPeer$$.$addComponentPropertyGetters$(this, "label");
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, "label");
  $AdfObject$$.$ensureClassInitialization$($AdfDhtmlInputBasePeer$$);
  $AdfDhtmlRichTextEditorBasePeer$$.$InitConstants$();
};
$goog$exportSymbol$$("AdfDhtmlRichTextEditorBasePeer.InitSubclass", $AdfDhtmlRichTextEditorBasePeer$$.$InitSubclass$);
$AdfDhtmlRichTextEditorBasePeer$$.$InitConstants$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$InitConstants$$() {
  null == this.$_CONTENT_FIELD_SUB_ID$ && (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");
};
$goog$exportSymbol$$("AdfDhtmlRichTextEditorBasePeer.InitConstants", $AdfDhtmlRichTextEditorBasePeer$$.$InitConstants$);
$AdfDhtmlRichTextEditorBasePeer$$.prototype.Init = function $$AdfDhtmlRichTextEditorBasePeer$$$$Init$($component$$1952$$) {
  $AdfDhtmlRichTextEditorBasePeer$$.$superclass$.Init.call(this, $component$$1952$$);
  this.$_ignoreEvents$ = {};
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.Init", {Init:$AdfDhtmlRichTextEditorBasePeer$$.prototype.Init});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$InitDomElement$$($component$$1953$$, $domElement$$428$$) {
  $AdfDhtmlRichTextEditorBasePeer$$.$superclass$.$InitDomElement$.call(this, $component$$1953$$, $domElement$$428$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$InitDomElement$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$needsResizeNotify$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$needsResizeNotify$$() {
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.needsResizeNotify", {$needsResizeNotify$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$needsResizeNotify$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$GetInlineEditor$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$GetInlineEditor$$() {
  return $AdfDhtmlSimpleLabelEditor$$.$getInlineEditor$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.GetInlineEditor", {$GetInlineEditor$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$GetInlineEditor$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$getCurrentContent$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$getCurrentContent$$($component$$1955$$, $keepOriginal$$5$$) {
  return $AdfEditingAgent$$.$getInstance$().$getInlineFrameContent$(this.$_getContentField$($component$$1955$$), $keepOriginal$$5$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.getCurrentContent", {$getCurrentContent$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$getCurrentContent$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$isEmpty$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$isEmpty$$($value$$237$$) {
  $value$$237$$ || ($value$$237$$ = this.$GetSubmittedValue$(this.$getComponent$(), this.$getDomElement$()));
  $value$$237$$ = $AdfStrings$$.trim($value$$237$$);
  return 0 == $value$$237$$.length || $value$$237$$.toUpperCase() == $AdfEditingAgent$$.$getInstance$().$getDefaultContent$().toUpperCase();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.isEmpty", {$isEmpty$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$isEmpty$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$addBinding$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$addBinding$$($componentClientId$$4$$, $componentClient$$, $command$$13$$, $commandParameter$$3$$, $propertyName$$50$$, $eventType$$50$$) {
  $AdfAssert$$.$assertString$($componentClientId$$4$$);
  $AdfAssert$$.$assertString$($command$$13$$);
  "style" == $command$$13$$.substring(0, 5) ? ($AdfAssert$$.$assertString$($propertyName$$50$$), $AdfAssert$$.$assertStringOrNull$($eventType$$50$$), void 0 == $eventType$$50$$ && ($eventType$$50$$ = $AdfActionEvent$$.$ACTION_EVENT_TYPE$), this.$AddStyleBinding$($componentClientId$$4$$, $propertyName$$50$$, $command$$13$$, $eventType$$50$$)) : "cmd" == $command$$13$$.substring(0, 3) ? this.$_addCommandBinding$($componentClientId$$4$$, $componentClient$$, $command$$13$$, $commandParameter$$3$$) : 
  $AdfLogger$$.$LOGGER$.severe("Unable to add binding [", $command$$13$$, "] for ", $componentClientId$$4$$, " to ", this.$getComponent$().$getClientId$());
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.addBinding", {$addBinding$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$addBinding$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$executeCommand$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$executeCommand$$($cmd$$, $value$$238$$) {
  this.$_execCommand$($cmd$$, $value$$238$$);
};
$AdfDhtmlRichTextEditorBasePeer$$.prototype.executeCommand = $AdfDhtmlRichTextEditorBasePeer$$.prototype.$executeCommand$;
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.executeCommand", {$executeCommand$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$executeCommand$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$setCodeEditingMode$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$setCodeEditingMode$$($newCodeEditingMode$$1$$) {
  if (this.$isCodeEditingMode$() != $newCodeEditingMode$$1$$) {
    var $component$$1956$$ = this.$getComponent$();
    $newCodeEditingMode$$1$$ ? $component$$1956$$.setProperty("editMode", "source", !0) : $component$$1956$$.setProperty("editMode", "wysiwyg", !0);
    this.$HandleCodeEditingModeChange$($component$$1956$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.setCodeEditingMode", {$setCodeEditingMode$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$setCodeEditingMode$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$isCodeEditingMode$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$isCodeEditingMode$$() {
  return "source" == this.$getComponent$().getEditMode();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.isCodeEditingMode", {$isCodeEditingMode$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$isCodeEditingMode$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$HandleCodeEditingModeChange$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$HandleCodeEditingModeChange$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.HandleCodeEditingModeChange", {$HandleCodeEditingModeChange$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$HandleCodeEditingModeChange$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$GetComponentLabel$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$GetComponentLabel$$($component$$1958$$, $domElement$$429$$) {
  var $labelElement$$6_labelElements$$4$$ = $domElement$$429$$.getElementsByTagName("LABEL"), $labelElement$$6_labelElements$$4$$ = $labelElement$$6_labelElements$$4$$.length ? $labelElement$$6_labelElements$$4$$[0] : null;
  if (null != $labelElement$$6_labelElements$$4$$) {
    var $clientId$$416_sourceFieldSubId$$1$$ = $component$$1958$$.$getClientId$(), $fieldSubId$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$416_sourceFieldSubId$$1$$, "content");
    if ($labelElement$$6_labelElements$$4$$.htmlFor == $fieldSubId$$) {
      return $AdfAgent$$.$AGENT$.$getTextContent$($labelElement$$6_labelElements$$4$$);
    }
    $clientId$$416_sourceFieldSubId$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$416_sourceFieldSubId$$1$$, $AdfDhtmlRichTextEditorBasePeer$$.$_SOURCE_FIELD_SUB_ID$);
    if ($labelElement$$6_labelElements$$4$$.htmlFor == $clientId$$416_sourceFieldSubId$$1$$) {
      return $AdfAgent$$.$AGENT$.$getTextContent$($labelElement$$6_labelElements$$4$$);
    }
  }
  return null;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.GetComponentLabel", {$GetComponentLabel$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$GetComponentLabel$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$HandleComponentFocus$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$HandleComponentFocus$$($component$$1959_componentEvent$$424$$) {
  $AdfDhtmlRichTextEditorBasePeer$$.$superclass$.$HandleComponentFocus$.call(this, $component$$1959_componentEvent$$424$$);
  $component$$1959_componentEvent$$424$$ = this.$getComponent$();
  if (!$component$$1959_componentEvent$$424$$.getReadOnly() && (this.$StopDialogsFromBeingInactivatedDueToIframes$(), !this.$_commandBeingProcessed$)) {
    var $activeNode_value$$239$$ = $AdfPage$$.$PAGE$.$_activeDomNode$, $contentNode$$87$$ = this.$_getContentField$($component$$1959_componentEvent$$424$$);
    $activeNode_value$$239$$ == $contentNode$$87$$ && (this.focus($component$$1959_componentEvent$$424$$), $activeNode_value$$239$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1959_componentEvent$$424$$).value, $AdfAgent$$.$AGENT$.$setExpandoProperty$($contentNode$$87$$, $AdfDhtmlInputBasePeer$$.$_LAST_VALUE$, $activeNode_value$$239$$));
    $component$$1959_componentEvent$$424$$.getToolbarDisplay && "popup" === $component$$1959_componentEvent$$424$$.getToolbarDisplay() && !$AdfDomUtils$$.$isVisible$($JSCompiler_StaticMethods__getToolbarPopupNode$$($component$$1959_componentEvent$$424$$)) && $JSCompiler_StaticMethods__showToolbarPopup$$(this);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.HandleComponentFocus", {$HandleComponentFocus$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$HandleComponentFocus$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$HandleComponentClick$$($componentEvent$$425_target$$173$$) {
  $AdfDhtmlRichTextEditorBasePeer$$.$superclass$.$HandleComponentClick$.call(this, $componentEvent$$425_target$$173$$);
  ($componentEvent$$425_target$$173$$ = $componentEvent$$425_target$$173$$.$getNativeEventTarget$()) && "LABEL" == $componentEvent$$425_target$$173$$.nodeName && this.focus(this.$getComponent$());
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$GetSubmittedValue$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$GetSubmittedValue$$($component$$1960$$, $domElement$$430$$) {
  if (this.$_isTouch$ && this.$WasSubmitted$($component$$1960$$)) {
    var $lastValue$$7_richTextField$$1$$ = this.$_getContentField$($component$$1960$$), $domNode$$82_newValue$$130$$ = this.$getCurrentContent$($component$$1960$$), $lastValue$$7_richTextField$$1$$ = $AdfAgent$$.$AGENT$.$getExpandoProperty$($lastValue$$7_richTextField$$1$$, $AdfDhtmlInputBasePeer$$.$_LAST_VALUE$);
    $lastValue$$7_richTextField$$1$$ != $domNode$$82_newValue$$130$$ && void 0 !== $lastValue$$7_richTextField$$1$$ && this.$UpdateValue$();
  }
  if ($component$$1960$$.getReadOnly()) {
    return $domNode$$82_newValue$$130$$ = $AdfDhtmlEditableValuePeer$$.$GetContentNode$($component$$1960$$, $domElement$$430$$), $domNode$$82_newValue$$130$$.innerHTML;
  }
  $domNode$$82_newValue$$130$$ = $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1960$$);
  return $domNode$$82_newValue$$130$$.value;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.GetSubmittedValue", {$GetSubmittedValue$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$GetSubmittedValue$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$SetDisplayValue$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$SetDisplayValue$$($component$$1961$$, $domElement$$431$$, $newValue$$131$$) {
  $AdfAssert$$.$assertString$($newValue$$131$$);
  $component$$1961$$.getReadOnly() ? $domElement$$431$$.innerHTML = $newValue$$131$$ : this.$SetContentFieldValue$($component$$1961$$, $newValue$$131$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.SetDisplayValue", {$SetDisplayValue$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$SetDisplayValue$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$SetContentFieldValue$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$SetContentFieldValue$$($component$$1962$$, $newValue$$132$$) {
  var $contentField$$ = this.$_getContentField$($component$$1962$$);
  $JSCompiler_StaticMethods__setInlineFrameContent$$(this, $contentField$$, $newValue$$132$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.SetContentFieldValue", {$SetContentFieldValue$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$SetContentFieldValue$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$HandleComponentAction$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$HandleComponentAction$$($componentEvent$$426$$) {
  this.$_styleBindingActionListener$($componentEvent$$426$$);
  this.$_commandBindingActionListener$($componentEvent$$426$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.HandleComponentAction", {$HandleComponentAction$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$HandleComponentAction$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$_styleBindingActionListener$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$_styleBindingActionListener$$() {
};
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$ShowFormatHint$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$ShowFormatHint$$() {
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.ShowFormatHint", {$ShowFormatHint$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$ShowFormatHint$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$ComponentRemoved$$($component$$1963$$) {
  var $readOnly$$5$$ = $component$$1963$$.getReadOnly();
  $readOnly$$5$$ || page.$unregisterLoadingComponent$($component$$1963$$);
  $readOnly$$5$$ || $component$$1963$$.getDisabled() || (this.$RemoveStyleBindings$($component$$1963$$), this.$_removeCommandBindings$($component$$1963$$), this.$RemoveContextChangeListeners$($component$$1963$$), this.$DestroyEditor$($component$$1963$$), this.$_loadCallback$ && ($AdfAgent$$.$AGENT$.$removeBubbleEventListener$(this.$_getContentField$($component$$1963$$), "load", this.$_loadCallback$), delete this.$_loadCallback$), $AdfRichTextEditorBehaviorManager$$.$getInstance$().$unregisterComponent$($component$$1963$$), 
  delete this.$_hadFirstFocus$, delete this.$_lastSelectionRange$);
  $AdfDhtmlRichTextEditorBasePeer$$.$superclass$.$ComponentRemoved$.call(this, $component$$1963$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$ScrollIntoView$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$ScrollIntoView$$($component$$1964_subTargetElement$$2$$, $focus$$9$$, $subTargetId$$8$$) {
  this.$getDomElement$().scrollIntoView();
  var $domDoc$$8$$ = this.$getDomDocument$(), $readOnly$$6$$ = $component$$1964_subTargetElement$$2$$.getReadOnly(), $inlineFrame$$85$$;
  $readOnly$$6$$ || ($inlineFrame$$85$$ = this.$_getContentField$($component$$1964_subTargetElement$$2$$), $domDoc$$8$$ = $AdfEditingAgent$$.$getInstance$().$getInlineFrameDocument$($inlineFrame$$85$$));
  $component$$1964_subTargetElement$$2$$ = null;
  null != $subTargetId$$8$$ && (($component$$1964_subTargetElement$$2$$ = $domDoc$$8$$.getElementById($subTargetId$$8$$)) ? $component$$1964_subTargetElement$$2$$.scrollIntoView() : $AdfLogger$$.$LOGGER$.warning("Invalid subTargetId specified:" + $subTargetId$$8$$));
  $focus$$9$$ && ($component$$1964_subTargetElement$$2$$ ? $AdfFocusUtils$$.$focusElement$($component$$1964_subTargetElement$$2$$) : $readOnly$$6$$ || $AdfFocusUtils$$.$focusElement$($inlineFrame$$85$$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.ScrollIntoView", {$ScrollIntoView$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$ScrollIntoView$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$RemoveStyleBindings$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$RemoveStyleBindings$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.RemoveStyleBindings", {$RemoveStyleBindings$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$RemoveStyleBindings$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$RemoveContextChangeListeners$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$RemoveContextChangeListeners$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.RemoveContextChangeListeners", {$RemoveContextChangeListeners$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$RemoveContextChangeListeners$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$DestroyEditor$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$DestroyEditor$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.DestroyEditor", {$DestroyEditor$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$DestroyEditor$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$HandleContextChanged$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$HandleContextChanged$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.HandleContextChanged", {$HandleContextChanged$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$HandleContextChanged$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$UpdateValue$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$UpdateValue$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.UpdateValue", {$UpdateValue$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$UpdateValue$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$StopDialogsFromBeingInactivatedDueToIframes$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$StopDialogsFromBeingInactivatedDueToIframes$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.StopDialogsFromBeingInactivatedDueToIframes", {$StopDialogsFromBeingInactivatedDueToIframes$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$StopDialogsFromBeingInactivatedDueToIframes$});
$AdfDhtmlRichTextEditorBasePeer$$.prototype.$AddStyleBinding$ = function $$AdfDhtmlRichTextEditorBasePeer$$$$$AddStyleBinding$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRichTextEditorBasePeer.prototype.AddStyleBinding", {$AddStyleBinding$:$AdfDhtmlRichTextEditorBasePeer$$.prototype.$AddStyleBinding$});
$JSCompiler_prototypeAlias$$ = $AdfDhtmlRichTextEditorBasePeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_commandBindingActionListener$ = function $$JSCompiler_prototypeAlias$$$$_commandBindingActionListener$$($component$$1968_event$$286$$) {
  if (void 0 != this.$_commandObservers$ && !this.$_commandBeingProcessed$) {
    this.$_commandBeingProcessed$ = !0;
    for (var $eventComponentId$$1$$ = $component$$1968_event$$286$$.getSource().$getClientId$(), $observers$$3$$ = this.$_commandObservers$, $length$$72$$ = $observers$$3$$.length, $insertCmdExecuted$$ = !1, $i$$517$$ = 0;$i$$517$$ < $length$$72$$;$i$$517$$++) {
      var $observer$$3$$ = $observers$$3$$[$i$$517$$];
      if ($observer$$3$$.$componentId$ == $eventComponentId$$1$$) {
        $component$$1968_event$$286$$.$setPartial$(!0);
        var $commandKey$$1$$ = $observer$$3$$.$command$;
        this.$_execCommand$($commandKey$$1$$, $observer$$3$$.$commandParameter$);
        this.$HandleContextChanged$();
        $component$$1968_event$$286$$.cancel();
        $commandKey$$1$$ == $AdfDhtmlRichTextEditorBasePeer$$.$COMMAND_INSERT$ && ($insertCmdExecuted$$ = !0);
      }
    }
    this.$UpdateValue$();
    $insertCmdExecuted$$ && ($component$$1968_event$$286$$ = this.$getComponent$(), this.$Validate$($component$$1968_event$$286$$, this.$GetSubmittedValue$($component$$1968_event$$286$$, this.$getDomElement$())));
    delete this.$_commandBeingProcessed$;
  }
};
$JSCompiler_prototypeAlias$$.$_addCommandBinding$ = function $$JSCompiler_prototypeAlias$$$$_addCommandBinding$$($componentId$$52$$, $bindComponent$$1$$, $command$$14$$, $commandParameter$$4$$) {
  $AdfAssert$$.$assertString$($componentId$$52$$);
  $AdfAssert$$.$assertString$($command$$14$$);
  this.$_commandObservers$ || (this.$_commandObservers$ = []);
  for (var $length$$73$$ = this.$_commandObservers$.length, $commandObserver$$1$$ = null, $i$$518$$ = 0;$i$$518$$ < $length$$73$$;$i$$518$$++) {
    var $observerObj$$3$$ = this.$_commandObservers$[$i$$518$$];
    if ($observerObj$$3$$.$componentId$ == $componentId$$52$$ && $observerObj$$3$$.$command$ == $command$$14$$) {
      $observerObj$$3$$.$commandParameter$ = $commandParameter$$4$$;
      $commandObserver$$1$$ = $observerObj$$3$$;
      break;
    }
  }
  null == $commandObserver$$1$$ && ($commandObserver$$1$$ = {$componentId$:$componentId$$52$$, $command$:$command$$14$$, $commandParameter$:$commandParameter$$4$$}, this.$_commandObservers$.push($commandObserver$$1$$));
  $bindComponent$$1$$.$isDescendant$(this.$getComponent$()) || $bindComponent$$1$$.addEventListener($AdfActionEvent$$.$ACTION_EVENT_TYPE$, this.$_commandBindingActionListener$, this);
};
$JSCompiler_prototypeAlias$$.$_removeCommandBindings$ = function $$JSCompiler_prototypeAlias$$$$_removeCommandBindings$$($component$$1969$$) {
  var $observers$$4$$ = this.$_commandObservers$;
  if (void 0 != $observers$$4$$) {
    for (var $length$$74$$ = $observers$$4$$.length, $listener$$111$$ = this.$_commandBindingActionListener$, $i$$519$$ = 0;$i$$519$$ < $length$$74$$;$i$$519$$++) {
      var $boundComponent$$1$$ = $AdfPage$$.$PAGE$.$findComponent$($observers$$4$$[$i$$519$$].$componentId$);
      void 0 != $boundComponent$$1$$ && ($boundComponent$$1$$.$isDescendant$($component$$1969$$) || $boundComponent$$1$$.removeEventListener($AdfActionEvent$$.$ACTION_EVENT_TYPE$, $listener$$111$$, this));
    }
  }
};
$JSCompiler_prototypeAlias$$.$_isInPopup$ = function $$JSCompiler_prototypeAlias$$$$_isInPopup$$() {
  var $parent$$57$$ = null;
  try {
    $parent$$57$$ = this.$getComponent$().getParent();
  } catch ($err$$2$$) {
  }
  if (null == $parent$$57$$) {
    return !1;
  }
  for (;null != $parent$$57$$;) {
    if ($parent$$57$$ instanceof AdfRichPopup) {
      return !0;
    }
    try {
      $parent$$57$$ = $parent$$57$$.getParent();
    } catch ($err$$3$$) {
      return !1;
    }
    if (null == $parent$$57$$) {
      return !1;
    }
  }
};
$JSCompiler_prototypeAlias$$.$_isContainerStretched$ = function $$JSCompiler_prototypeAlias$$$$_isContainerStretched$$() {
  return $AdfDomUtils$$.$containsCSSClassName$($AdfRichUIPeer$$.$getDomNodeForComponent$(this.$getComponent$()), "p_AFStretched");
};
$JSCompiler_prototypeAlias$$.$_getContentField$ = function $$JSCompiler_prototypeAlias$$$$_getContentField$$($component$$1970_domNode$$83_subId$$39$$) {
  $component$$1970_domNode$$83_subId$$39$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1970_domNode$$83_subId$$39$$.$getClientId$(), $AdfDhtmlRichTextEditorBasePeer$$.$_CONTENT_FIELD_SUB_ID$);
  $component$$1970_domNode$$83_subId$$39$$ = $AdfAgent$$.$AGENT$.getElementById($component$$1970_domNode$$83_subId$$39$$);
  $AdfAssert$$.$assertDomElement$($component$$1970_domNode$$83_subId$$39$$);
  return $component$$1970_domNode$$83_subId$$39$$;
};
function $JSCompiler_StaticMethods__getSourceCodeField$$($component$$1971_domNode$$84_subId$$40$$) {
  $component$$1971_domNode$$84_subId$$40$$ = $AdfAgent$$.$AGENT$.$getExpandoProperty$($AdfRichUIPeer$$.$getDomElementForComponent$($component$$1971_domNode$$84_subId$$40$$), $AdfDhtmlRichTextEditorBasePeer$$.$_SOURCE_FIELD_ID_ATTR_NAME$);
  $component$$1971_domNode$$84_subId$$40$$ = $AdfAgent$$.$AGENT$.getElementById($component$$1971_domNode$$84_subId$$40$$);
  $AdfAssert$$.$assertDomElement$($component$$1971_domNode$$84_subId$$40$$);
  return $component$$1971_domNode$$84_subId$$40$$;
}
function $JSCompiler_StaticMethods__getReadOnlyContentField$$($component$$1972_domNode$$85_subId$$41$$) {
  $component$$1972_domNode$$85_subId$$41$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1972_domNode$$85_subId$$41$$.$getClientId$(), "content");
  $component$$1972_domNode$$85_subId$$41$$ = $AdfAgent$$.$AGENT$.getElementById($component$$1972_domNode$$85_subId$$41$$);
  $AdfAssert$$.$assertDomElement$($component$$1972_domNode$$85_subId$$41$$);
  return $component$$1972_domNode$$85_subId$$41$$;
}
;