 
   setDomElement:(cssClass)->
 
+    {helpContent, helpTitle} = @getOptions()
+
+    if helpContent
+      helpButton = "<span class='showHelp'>#{helpTitle}</span>"
+    else
+      helpButton = ''
+
     @domElement = $ "
     <div class='kdmodal #{cssClass}'>
       <div class='kdmodal-shadow'>
         <div class='kdmodal-inner'>
+          #{helpButton}
           <span class='close-icon closeModal'></span>
           <div class='kdmodal-title hidden'></div>
           <div class='kdmodal-content'></div>

    options.draggable    or= handle : ".kdmodal-title"
    # TO BE IMPLEMENTED
    options.resizable    or= no            # a Boolean

    super options, data



  click:(e)->
    @destroy() if $(e.target).is(".closeModal")
    if $(e.target).is(".showHelp")
      {helpContent} = @getOptions()
      if helpContent
        helpContent = KD.utils.applyMarkdown helpContent
        new KDModalView
          # title   : "Help"
          cssClass : "help-dialog"
          overlay  : yes
          content  : "<div class='modalformline'><p>#{helpContent}</p></div>"

    # @getSingleton("windowController").setKeyView @ ---------> disabled because KDEnterinputView was not working in KDmodal

  keyUp:(e)->
