code: public void openEditDialog(
          final I_CmsEditableData editableData,
          boolean isNew,
          String mode,
          final DialogOptions dlgOptions,
          I_CmsContentEditorHandler editorHandler) {
  
          m_mode = mode;
  
          if ((m_dialog != null) && m_dialog.isShowing()) {
              CmsDebugLog.getInstance().printLine("Dialog is already open, cannot open another one.");
              return;
          }
          m_isNew = isNew;
          m_editableData = editableData;
          m_editorHandler = editorHandler;
          if (m_isNew || (editableData.getStructureId() == null)) {
              openDialog(dlgOptions);
          } else {
              CmsRpcAction<String> action = new CmsRpcAction<String>() {
  
                  @Override
                  public void execute() {
  
                      show(true);
                      CmsCoreProvider.getVfsService().getSitePath(getEditableData().getStructureId(), this);
                  }
  
                  @Override
                  protected void onResponse(String result) {
  
                      if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(result)) {
                          getEditableData().setSitePath(result);
                          openDialog(dlgOptions);
                      } else {
                          CmsAlertDialog alert = new CmsAlertDialog(
                              Messages.get().key(Messages.ERR_TITLE_ERROR_0),
                              Messages.get().key(Messages.ERR_RESOURCE_UNAVAILABLE_1, getEditableData().getSitePath()));
                          alert.center();
                      }
                      stop(false);
                  }
              };
              action.execute();
          }
      }
docs: Opens the content editor dialog for the given element.<p>
  
  @param editableData the editable data
  @param isNew <code>true</code> when creating a new resource
  @param mode the content creation mode
  @param dlgOptions the additional dialog options
  @param editorHandler the editor handler