     @isDestroyed = true
 
 class ShareJSTextConnector extends ShareJSConnector
+
   createView: ->
     return Blaze.With(Blaze.getData, -> Template._sharejsText)
 
   rendered: (element) ->
     super
     @textarea = element
+    @configCallback?(@textarea)
 
   connect: ->
     @textarea.disabled = true


    @isCreated = false
    @docIdVar = docIdVar

  create: ->
    throw new Error("Already created") if @isCreated

    super
    doc.attach_textarea(@textarea)
    @textarea.disabled = false
    @connectCallback?(@textarea)

  disconnect: ->
    @textarea?.detach_share?()
