       if conf.textShadow
         @elements.css.innerText="atom-text-editor::shadow .line{text-shadow:"+conf.textShadow+" !important;}"
 
+      @updateBox conf.boxDepth
+
       if conf.backgroundSize!='original'
         inline @elements.body, 'background-size:'+conf.backgroundSize+' !important;'
       else

    loaded = (@elements[k] for k in keys when @elements[k]?)

    if loaded.length == keys.length
      @elements.plane = document.createElement('div')
      @elements.plane.style.cssText = planeInitialCss
      @elements.body.insertBefore @elements.plane,@elements.body.childNodes[0]

    cssstyle.setAttribute 'id','#editor-background-css'
    @elements.body.insertBefore cssstyle,@elements.body.childNodes[0]
    @elements.css = cssstyle

  createBox: (depth) ->
    #body=(qr 'atom-text-editor').shadowRoot.querySelector('.editor--private')
    body = qr 'body'
    jest = qr 'body .eb-box-wrapper'
    if not jest? or jest.length==0
      left = document.createElement 'div'
      top = document.createElement 'div'
      right = document.createElement 'div'
      bottom = document.createElement 'div'
      back = document.createElement 'div'
      wrapper = document.createElement 'div'
      wrapper.appendChild left
      wrapper.appendChild top
      wrapper.appendChild right
      wrapper.appendChild bottom
      wrapper.appendChild back
      wrapper.setAttribute 'class','eb-box-wrapper'
      left.setAttribute 'class','eb-left'
      top.setAttribute 'class','eb-top'
      right.setAttribute 'class','eb-right'
      bottom.setAttribute 'class','eb-bottom'
      back.setAttribute 'class','eb-back'
      body.insertBefore wrapper,body.childNodes[0]
      boxStyle = document.createElement 'style'
      boxStyle.type = "text/css"
      body.insertBefore boxStyle,body.childNodes[0]
    boxStyle

  initialize: ->
    @elements.body = qr 'body'
