mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Add .editor and .editor-colors classes regardless of shadow DOM setting
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user