 
   viewAppended:->
     super
+
+    @$("div.preview_content").addClass("has-"+@options.preview.language)
 
     unless @showPreview
       @$("div.preview_content").addClass "hidden"

  setDomElement:(CssClass="")->
    super CssClass

    # basically, here we can add aynthing like modals, overlays and the liek

    @$().after """
      <div class='input_preview preview-#{@options.preview.language}'>
        <div class="preview_content"><span class="data"></span></div>

    @$("label").on "click",=>
      @$("input.checkbox").get(0).click()


    # hotfix for random display:none that can sometimes come up
    @utils.wait  =>
      @$("span.data").css display:"block"

    if @options.preview.mirrorScroll then @$().scroll (event)=>
      @setPreviewScrollPercentage @getEditScrollPercentage()
