 
         @$dialog.render
         @$dialog.appendTo $container
+        return
 
-}));
+      destroy = () ->
+        ui.hideDialog @$dialog
+          .remove
+        return
+
+      show = () ->
+        ui.showDialog(@$dialog);
+        draftName = @$dialog.find '.note-draftName'
+          .val
+        $saveBtn = @$dialog.find '.note-link-btn'
+          .click (e) =>
+            e.preventDefault
+            @saveDraft draftName
+            false
+
+      saveDraft = (name) ->
+
+      return

(function (factory) {
    # global define
    if (typeof define === 'function' && define.amd) {
        # AMD. Register as an anonymous module.
        define(['jquery'], factory);
    } else if (typeof module === 'object' && module.exports) {
        # Node/CommonJS
        module.exports = factory(require('jquery'));
    } else {
        # Browser globals
        factory(window.jQuery);
    }
}(function ($) {

  $.extend $.summernote.options,
  sDrafts:
    storePrefix:'sDrafts',

  $.extend $.summernote.lang,
  'en-US':

            context.invoke 'sDrafts.show'
            false

        button.render

      initialize : () ->
        $container = if options.dialogsInBody then $(document.body) else $editor
        body = '<div class="form-group">' + '<label>' + lang.provideName + '</label>' + '<input class="note-draftName form-control" type="text" /></div>'
        footer = '<button href="#" class="btn btn-primary note-link-btn">' + lang.save + '</button>'

        @$dialog = ui.dialog
