@Override
  public void copyFrameworkAttributes(
      FacesContext facesContext, InputRichText inputRichText, InputEditorTag inputEditorTag) {

    inputEditorTag.setCssClass(inputRichText.getStyleClass());

    // When ckeditor.jsp renders a hidden textarea, the name is rendered as the id and name
    // attributes of the
    // textarea element. Since this renderer creates its own textarea, it is necessary to set a name
    // that will
    // not interfere when decoding.
    String editorType = getEditorType(inputRichText);
    String escapedEditorName = inputRichText.getClientId();

    char separatorChar = UINamingContainer.getSeparatorChar(facesContext);
    escapedEditorName = escapedEditorName.replace(separatorChar, '_').concat("_jsptag");

    if ("bbcode".equals(editorType)) {
      inputEditorTag.setName(escapedEditorName + "_bbcodeInput");
    } else {
      inputEditorTag.setName(escapedEditorName + "_nonInput");
    }
  }