code: public String buttonActionDirectEdit(String jsFunction, int type) {
  
          // get the action class from the OpenCms runtime property
          I_CmsEditorActionHandler actionClass = OpenCms.getWorkplaceManager().getEditorActionHandler();
          String url;
          String name;
          boolean active = false;
          if (actionClass != null) {
              // get button parameters and state from action class
              url = actionClass.getButtonUrl(getJsp(), getParamResource());
              name = actionClass.getButtonName();
              active = actionClass.isButtonActive(getJsp(), getParamResource());
          } else {
              // action class not defined, display inactive button
              url = getSkinUri() + "buttons/publish_in.png";
              name = Messages.GUI_EXPLORER_CONTEXT_PUBLISH_0;
          }
          String image = url.substring(url.lastIndexOf("/") + 1);
          if (url.endsWith(".gif")) {
              image = image.substring(0, image.length() - 4);
          }
  
          if (active) {
              // create the link for the button
              return button(
                  "javascript:" + jsFunction,
                  null,
                  image,
                  name,
                  type,
                  url.substring(0, url.lastIndexOf("/") + 1));
          } else {
              // create the inactive button
              return button(null, null, image, name, type, url.substring(0, url.lastIndexOf("/") + 1));
          }
      }
docs: Builds the html to display the special action button for the direct edit mode of the editor.<p>
  
  @param jsFunction the JavaScript function which will be executed on the mouseup event
  @param type 0: image only (default), 1: image and text, 2: text only
  @return the html to display the special action button