Make autosave work with lexical

This commit is contained in:
Jorge Manrubia
2025-05-28 23:20:14 +02:00
parent 2594bf90a7
commit 594161b982
6 changed files with 10 additions and 38 deletions
@@ -47,8 +47,8 @@ export default class extends Controller {
}
#triggerChangeEvent(newValue) {
if (this.inputTarget.tagName === "HOUSE-MD") {
this.inputTarget.dispatchEvent(new CustomEvent('house-md:change', {
if (this.inputTarget.tagName === "LEXICAL-EDITOR") {
this.inputTarget.dispatchEvent(new CustomEvent('actiontext:change', {
bubbles: true,
detail: {
previousContent: '',