Update config-editor-card.js

This commit is contained in:
htmltiger 2022-02-01 20:59:03 +00:00 committed by GitHub
parent 8d3b767349
commit 4c2e75e0d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,10 +78,10 @@ render() {
name="plain" value="1" @change=${this.plainChange}></label>
</div>
${this.edit.plainBox ?
html`<textarea rows="10"
@change=${this.updateText} id="code">${this.code}</textarea>`:
html`<ha-code-editor id="code" @keydown=${this.saveKey} .hass=${this._hass} hasAutocomplete mode="yaml"
@value-changed=${this.updateText} dir="ltr"></ha-code-editor>`}
html`<textarea rows="10" id="code" @keydown=${this.saveKey}
@change=${this.updateText}>${this.code}</textarea>`:
html`<ha-code-editor id="code" @keydown=${this.saveKey} hasAutocomplete mode="yaml"
@value-changed=${this.updateText} dir="ltr" .hass=${this._hass}></ha-code-editor>`}
</div>
<div class="bar">
<div>${this.alertLine}</div>