       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()
-          console.log 'preformatted'
           editor.toolbar.hideToolbar()
 
 

    @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();

  # Return medium editor's contents
  contents: ->

        #embeds: {}
    ###


    $editable.data 'mediumEditor', editor
    editor

