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

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

    @$("div.preview_content").addClass("has-"+@options.preview.language)

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

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

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