         element = editor.ui.space(spaceName)
         element and editor.focusManager.add(element, 1)
 
-      onClickHanlder = CKEDITOR.tools.addFunction(onClick)
+      
       onKeyDownHandler = CKEDITOR.tools.addFunction((elementIndex, ev) ->
         idBase = editor._.txtElementsPath.idBase
         element = undefined

        realIndex = elementIndex.substr(elementIndex.indexOf('-') + 1)
        insertType = elementIndex.substr(0, elementIndex.indexOf('-'))
        element = editor._.txtElementsPath.list[realIndex]
        console.log "addElementHandler", element, elementIndex, realIndex, insertType, ev
        if !element
          return
        editor.focus()

  pathItemTpl = CKEDITOR.addTemplate("pathItem", "<a" + " id=\"{id}\"" + " href=\"{jsTitle}\"" + " tabindex=\"-1\"" + " class=\"cke_path_item\"" + " title=\"{label}\"" + ((if (CKEDITOR.env.gecko and CKEDITOR.env.version < 10900) then " onfocus=\"event.preventBubble();\"" else "")) + extra + " hidefocus=\"true\" " + " onkeydown=\"return CKEDITOR.tools.callFunction({keyDownFn},'{index}', event );\"" + " onclick=\"CKEDITOR.tools.callFunction({clickFn},'{index}', event); return false;\"" + " role=\"button\" aria-label=\"{label}\">" + "{text}" + "</a>")
  CKEDITOR.plugins.add "txtElementsPath",
    init: (editor) ->
      # Elements path isn't available in inline mode.
      
      # Register the ui element to the focus manager.
