From d76d418e5da52edd6d29301fb27ab4cbbc57723c Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 14 Oct 2021 12:14:48 +0200 Subject: [PATCH] FIX: also track textContent mutations (#14607) Tracking innerHTML was not enough to catch every mutations. --- app/assets/javascripts/discourse/app/components/d-editor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/discourse/app/components/d-editor.js b/app/assets/javascripts/discourse/app/components/d-editor.js index ac3e9a184c..a1754cb56d 100644 --- a/app/assets/javascripts/discourse/app/components/d-editor.js +++ b/app/assets/javascripts/discourse/app/components/d-editor.js @@ -913,6 +913,7 @@ export default Component.extend(TextareaTextManipulation, { childList: true, subtree: true, attributes: false, + characterData: true, }); return observer;