DEV: nullify cachedCookFunction to prevent retains (#14737)

DEV: nullify cachedCookFunction to prevent retains (#14737)

diff --git a/app/assets/javascripts/discourse/app/components/d-editor.js b/app/assets/javascripts/discourse/app/components/d-editor.js
index 312c071..cc34204 100644
--- a/app/assets/javascripts/discourse/app/components/d-editor.js
+++ b/app/assets/javascripts/discourse/app/components/d-editor.js
@@ -341,6 +341,8 @@ export default Component.extend(TextareaTextManipulation, {
     if (isTesting()) {
       this.element.removeEventListener("paste", this.paste);
     }
+
+    this._cachedCookFunction = null;
   },
 
   @discourseComputed()

GitHub sha: 184ccf449013d96e2897f95083efe514e187694a

This commit appears in #14737 which was approved by CvX. It was merged by jjaffeux.