         @generatePreview()
       yes
 
-    super options,data
+    super options, data
 
     @setClass "kdinputwithpreview"
 
     @showPreview = options.preview.showInitially or no
 
     @previewOnOffLabel = new KDLabelView
-      cssClass      : "preview_switch_label"
+      cssClass      : "preview_switch_label unselectable"
       title         : "Preview"
       tooltip       :
         title       : "Show/hide the Text Preview Box"


    fullscreenData.height kdmodalContentHeight - 30 - 23 + 10
    inputPreview.height kdmodalContentHeight - 0 - 21 + 10
    inputPreview.css 
      maxHeight :  kdmodalContentHeight - 0 - 21 + 10
    @modal.$(".input_preview div.preview_content").css 
      maxHeight :  kdmodalContentHeight - 0 - 21

    contentWidth = kdmodalContent.width() - 40
    halfWidth    = contentWidth / 2

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

    @text.on "PreviewShown", =>
      fullscreenData.width contentWidth - halfWidth - 5
      # inputPreview.width halfWidth - 5

    if willSetWidths
      fullscreenData.width contentWidth - halfWidth - 5
      inputPreview.width halfWidth - 5

  getEditScrollPercentage:->
      scrollPosition = @$().scrollTop()
      scrollHeight = @$().height()
      scrollMaxheight = @getDomElement()[0].scrollHeight

      scrollPosition / (scrollMaxheight - scrollHeight) * 100

      cssClass : "preview_switch"

    if @options.showHelperModal
      @markdownLink = @getMarkdownLink()
      @previewOnOffContainer.addSubView @markdownLink

    if @options.allowMaximized
      @fullscreenEditButton = @getFullscreenEditButton()
      @previewOnOffContainer.addSubView @fullscreenEditButton

    @previewOnOffContainer.addSubView @previewOnOffLabel
    @previewOnOffContainer.addSubView @previewOnOffSwitch

    @addSubView @previewOnOffContainer

    @listenWindowResize()

  setPaneSizes:(opt_setWidths = yes)->
    # For: "Uncaught TypeError: Cannot call method '$' of undefined"
    return  unless @modal

    # selector performance?
    kdmodalContent = @modal.$(".kdmodal-content")
    fullscreenData = @modal.$(".fullscreen-data")
    inputPreview   = @modal.$(".input_preview")

    # minus the margin, border pixels too..
    kdmodalContent.height @modal.$(".kdmodal-inner").height() - @modal.$(".kdmodal-buttons").height() - @modal.$(".kdmodal-title").height()
