 
   writeEmptyText: (length, options) ->
     if not @currentWhitespaceStyle?
-      @currentWhitespaceStyle = $.extend true, {}, @currentStyle
+      @currentWhitespaceStyle = new Style @currentStyle
       @currentWhitespaceStyle.inverse = false
     @currentWhitespaceStyle
     options ?= {}

    kd.utils.stopDOMEvent event
    @server.input event.originalEvent.clipboardData.getData "text/plain"
    @setKeyFocus()



    text = text.replace /[ ]/g, "\xA0" # NBSP
    switch @currentCharacterSets[@currentCharacterSetIndex]
      when "0"
        nonBoldStyle = new Style style
        nonBoldStyle.bold = false
        for i in [0..text.length]
          c = text.charCodeAt i
