code: protected void initEditOverlay(Element element) {
  
          CmsInlineEditOverlay.removeAll();
          m_editOverlay = CmsInlineEditOverlay.addOverlayForElement(element);
          if (m_resizeHandlerRegistration != null) {
              m_resizeHandlerRegistration.removeHandler();
          }
          // add a handler to ensure the edit overlays get adjusted to changed window size
          m_resizeHandlerRegistration = Window.addResizeHandler(new ResizeHandler() {
  
              private Timer m_resizeTimer;
  
              public void onResize(ResizeEvent event) {
  
                  if (m_resizeTimer == null) {
                      m_resizeTimer = new Timer() {
  
                          @Override
                          public void run() {
  
                              handleResize();
                          }
                      };
                      m_resizeTimer.schedule(300);
                  }
              }
  
              /**
               * Handles the window resize.<p>
               */
              void handleResize() {
  
                  m_resizeTimer = null;
                  CmsInlineEditOverlay.updateCurrentOverlayPosition();
              }
          });
      }
docs: Initializes the edit overlay to be positioned around the given element.<p>
  
  @param element the element