code: @Override
      protected void initContent() {
  
          if (CmsStringUtil.isNotEmpty(getParamContent())) {
              if (CmsStringUtil.isNotEmpty(getParamElementname())
                  && getParamElementname().equals(getParamOldelementname())) {
                  if (CmsStringUtil.isNotEmpty(getParamElementlanguage())
                      && getParamElementlanguage().equals(getParamOldelementlanguage())) {
                      return;
                  }
              }
          }
          getCms().getRequestContext().setAttribute(CmsRequestContext.ATTRIBUTE_EDITOR, Boolean.TRUE);
  
          String elementData;
          if (m_page.hasValue(getParamElementname(), getElementLocale())) {
              // element value is available in the page
              elementData = m_page.getStringValue(getCms(), getParamElementname(), getElementLocale());
          } else {
              // value is not available in the page
              if (Boolean.valueOf(getParamDirectedit()).booleanValue()) {
                  // direct edit on a non-existing element: create new element with this name
                  m_page.addValue(getParamElementname(), getElementLocale());
              }
              elementData = "";
          }
          setParamContent(elementData);
      }
docs: This method has to be called after initializing the body element name and language.<p>
  
  @see org.opencms.workplace.editors.CmsEditor#initContent()