 
 
     editor = new MediumEditor ".medium-editable",
-        buttons: ['contextLink', 'bold', 'italic', 'underline'],
+        buttons: ['contextLink', 'bold', 'italic', 'underline', 'anchor'],
         extensions:
             contextLink: new ContextLinkExtension()
 
     console.log editor.toolbar
-    editor.toolbar.appendChild(toolbarFormContextAnchor());
-
-    editor.contextAnchorForm = editor.toolbar.querySelector('.medium-editor-toolbar-form-context-anchor');
-    editor.contextAnchorForm.style.display = 'none';
+    # editor.toolbar.appendChild(toolbarFormContextAnchor());
+
+    # editor.contextAnchorForm = editor.toolbar.querySelector('.medium-editor-toolbar-form-context-anchor');
+    # editor.contextAnchorForm.style.display = 'none';
+
+
+    # console.log editor.contextAnchorForm
 
     # Monkey Patches !!!
     editor.showToolbarActions = ->
         self = this
         timer = undefined
         @anchorForm.style.display = "none"
-        @contextAnchorForm.style.display = "none" # This is the monkey patch
+        # @contextAnchorForm.style.display = "none" # This is the monkey patch
         @toolbarActions.style.display = "block"
         @keepToolbarAlive = false
         clearTimeout timer

    ContextLinkExtension::showContextAnchorForm = (link_value) ->
        @base.toolbarActions.style.display = 'none'; # TO-DO Keep the toolbar
        @base.saveSelection();
        $(".context-anchor-menu").show()
        $(".context-anchor-menu").insertAfter(@base.toolbarActions)
        # @base.contextAnchorForm.style.display = 'block';
        @base.setToolbarPosition();
        @base.keepToolbarAlive = true;
        # @base.anchorInput.focus();
        # @base.anchorInput.value = link_value || '';

    toolbarFormContextAnchor = ->
        anchor = document.createElement("div")
        input = document.createElement("input")
        target_label = document.createElement("label")
        target = document.createElement("input")
        button_label = document.createElement("label")
        button = document.createElement("input")
        close = document.createElement("a")
        save = document.createElement("a")
        close.setAttribute "href", "#"
        close.className = "medium-editor-toobar-anchor-close"
        close.innerHTML = "&times;"
        save.setAttribute "href", "#"
        save.className = "medium-editor-toobar-anchor-save"
        save.innerHTML = "&#10003;"
        input.setAttribute "type", "text"
        input.className = "medium-editor-toolbar-anchor-input"
        # input.setAttribute "placeholder", @options.anchorInputPlaceholder
        target.setAttribute "type", "checkbox"
        target.className = "medium-editor-toolbar-anchor-target"
        target_label.innerHTML = "Open in New Window?"
        target_label.insertBefore target, target_label.firstChild
        button.setAttribute "type", "checkbox"
        button.className = "medium-editor-toolbar-anchor-button"
        button_label.innerHTML = "Button"
        button_label.insertBefore button, button_label.firstChild
        anchor.className = "medium-editor-toolbar-form-context-anchor"
        anchor.id = "medium-editor-toolbar-form-context-anchor"
        anchor.appendChild input
        anchor.appendChild save
        anchor.appendChild close
        # anchor.appendChild target_label  if @options.anchorTarget
        # anchor.appendChild button_label  if @options.anchorButton
        anchor
    #####
    #
    # End stuff from Medium-editor.js

        , 100)
        return

    # editor.clickingIntoArchorForm = (e) ->
    #     self = this
    #     console.log e
    #     # console.log e.type

    #     # console.log $(self.contextAnchorForm).has(e.target)
    #     if e.type and e.type.toLowerCase() is "blur" and e.relatedTarget and e.relatedTarget in [self.anchorInput, self.contextAnchorForm]
    #         return true
    #     else
    #         return false

    # End of monkey patches

