     @init.apply @, arguments
 
     # Don't let the medium insert plugin submit the form
-    $('form').on 'click', (event) ->
-      if $(event.target).is '.mediumInsert' then event.preventDefault();
+    #$('form').on 'click', (event) ->
+      #if $(event.target).is '.mediumInsert' then event.preventDefault();
 
   # Return medium editor's contents
   contents: ->

        #embeds: {}
    ###

    editor.subscribe 'editableKeydownEnter', (e, el) =>
      if e.which is 13 and @inPreformatted()
        console.log 'in preformatted'
        e.preventDefault()
        editor.disableReturn = true
        document.execCommand 'insertHTML', false, "\n"
      else
        editor.disableReturn = false
    
    $editable.data 'mediumEditor', editor
    editor


      buttons:
        ['bold', 'italic', 'underline', 'anchor', 'pre', 'header1', 'header2', 'orderedlist', 'unorderedlist', 'quote', 'image']
      onShowToolbar: =>
        # Disable medium toolbar if we are in a code block
        if @inPreformatted()
          editor.toolbar.hideToolbar()


