Add .editor and .editor-colors classes regardless of shadow DOM setting

This commit is contained in:
Nathan Sobo
2014-11-05 09:57:13 -07:00
parent 2c83c3fe17
commit 39cc463e24

View File

@@ -34,7 +34,6 @@ class TextEditorElement extends HTMLElement
@stylesElement.initialize()
@rootElement = document.createElement('div')
@rootElement.classList.add('editor', 'editor-colors')
@shadowRoot.appendChild(@stylesElement)
@shadowRoot.appendChild(@rootElement)
@@ -48,6 +47,9 @@ class TextEditorElement extends HTMLElement
@stylesElement = GlobalStylesElement
@rootElement = this
@rootElement.classList.add('editor', 'editor-colors')
createSpacePenShim: ->
TextEditorView ?= require './text-editor-view'
@__spacePenView = new TextEditorView(this)