     options.preview.showInitially ?= yes
     options.preview.mirrorScroll  ?= yes
     options.allowMaximized        ?= yes
+    options.openMaximized         ?= no
     options.showHelperModal       ?= yes
 
     options.keyup ?= (event)=>


  setValue:(value)->
    super value
    @generatePreview()

  generatePreview:=>


      @previewOnOffContainer.addSubView @markdownLink

    # if @options.openMaximized
    #   log 'opening maximized'
    #   @hide()
    #   @textContainer = new KDView
    #     cssClass:"modal-fullscreen-text"

    #   @text = new KDInputViewWithPreview
    #     type : "textarea"
    #     cssClass : "fullscreen-data kdinput text"
    #     allowMaximized : no
    #     defaultValue : @getValue()

    #   @textContainer.addSubView @text

    #   modal = new KDModalView
    #     title       : "Please enter your content here."
    #     cssClass    : "modal-fullscreen"
    #     width       : window.innerWidth-100
    #     height      : window.innerHeight-100
    #     # width       : $(window).width()-100
    #     # height      : $(window).height()-100
    #     view        : @textContainer
    #     position:
    #       top       : 35
    #       left      : 35
    #     overlay     : yes
    #     buttons     :
    #       Cancel    :
    #         title   : "Discard changes"
    #         style   : "modal-clean-gray"
    #         callback:=>
    #           modal.destroy()
    #       Apply     :
    #         title   : "Apply changes"
    #         style   : "modal-clean-gray"
    #         callback:=>
    #           @setValue @text.getValue()
    #           @generatePreview()
    #           modal.destroy()


    #   @utils.wait =>

    #     modal.$(".kdmodal-content").height modal.$(".kdmodal-inner").height()-modal.$(".kdmodal-buttons").height()-modal.$(".kdmodal-title").height() # minus the margin, border pixels too..
    #     modal.$(".fullscreen-data").height modal.$(".kdmodal-content").height()-30-23+10
    #     modal.$(".input_preview").height   modal.$(".kdmodal-content").height()-0-21+10
    #     modal.$(".input_preview").css maxHeight:  modal.$(".kdmodal-content").height()-0-21+10
    #     modal.$(".input_preview div.preview_content").css maxHeight:  modal.$(".kdmodal-content").height()-0-21

    #     contentWidth = modal.$(".kdmodal-content").width()-40
    #     halfWidth  = contentWidth / 2

    #     @text.on "PreviewHidden", =>
    #       modal.$(".fullscreen-data").width contentWidth #-(modal.$("div.preview_switch").width()+20)-10
    #       # modal.$(".input_preview").width (modal.$("div.preview_switch").width()+20)

    #     @text.on "PreviewShown", =>
    #       modal.$(".fullscreen-data").width contentWidth-halfWidth-5
    #       # modal.$(".input_preview").width halfWidth-5

    #     modal.$(".fullscreen-data").width contentWidth-halfWidth-5
    #     modal.$(".input_preview").width halfWidth-5

    if @options.allowMaximized
      @fullScreenBtn = new KDButtonView
        style           : "clean-gray small"
