From c6b78e494425fbc5cbc54edefea43fbf599402a7 Mon Sep 17 00:00:00 2001 From: takahashim Date: Sat, 28 Dec 2024 16:05:57 +0900 Subject: [PATCH] make emitUpdate true in setContent to enable immediate changes --- .../src/decidim/cfj/editor/extensions/tag_edit/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/packs/src/decidim/cfj/editor/extensions/tag_edit/index.js b/app/packs/src/decidim/cfj/editor/extensions/tag_edit/index.js index c59408e51..bb6689841 100644 --- a/app/packs/src/decidim/cfj/editor/extensions/tag_edit/index.js +++ b/app/packs/src/decidim/cfj/editor/extensions/tag_edit/index.js @@ -19,7 +19,7 @@ export default Node.create({ rows: 10, cols: 80, }); - let tagsrc = this.editor.getHTML(); + const tagsrc = this.editor.getHTML(); const dialogState = await tagEditDialog.toggle({ tagsrc }); if (dialogState !== "save") { @@ -27,8 +27,7 @@ export default Node.create({ } const newTagsrc = tagEditDialog.getValue("tagsrc"); - this.editor.commands.setContent(newTagsrc); - + this.editor.commands.setContent(newTagsrc, true); this.editor.commands.focus(null, { scrollIntoView: false }); return false; }