mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add deprecated rootElement property
This commit is contained in:
committed by
Antonio Scandurra
parent
a536c5950a
commit
84c20d95d4
@@ -19,6 +19,16 @@ class TextEditorElement extends HTMLElement {
|
||||
return this
|
||||
}
|
||||
|
||||
get rootElement () {
|
||||
Grim.deprecate(dedent`
|
||||
The contents of \`atom-text-editor\` elements are no longer encapsulated
|
||||
within a shadow DOM boundary. Please, stop using \`rootElement\` and access
|
||||
the editor contents directly instead.
|
||||
`)
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
createdCallback () {
|
||||
this.emitter = new Emitter()
|
||||
this.initialText = this.textContent
|
||||
|
||||
Reference in New Issue
Block a user