     super
     doc.attach_textarea(@textarea)
     @textarea.disabled = false
+    @connectCallback?(@textarea)
 
   disconnect: ->
     @textarea?.detach_share?()

    @isDestroyed = true

class ShareJSTextConnector extends ShareJSConnector
  createView: ->
    return Blaze.With(Blaze.getData, -> Template._sharejsText)

  rendered: (element) ->
    super
    @textarea = element

  connect: ->
    @textarea.disabled = true


    @isCreated = false
    @docIdVar = docIdVar

    params = Blaze.getData(parentView)
    @configCallback = params.onRender
    @connectCallback = params.onConnect

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