-
-
Notifications
You must be signed in to change notification settings - Fork 23
Issues when saving underlying data and Navigating away #26
Description
I receive this error when I save the underlying data and navigate back to previous screen... I've tried calling DisposeAsync on the Edit prior to navigation but for some reason this still happens... To be clear... We are going back to a page that does NOT have a MudExRichTextEdit on it at all..... here is the debug log:
quill Overwriting modules/imageCompressor with ƒ t(e, r) { var n = this; l()(this, t), this.quill = e, this.range = null, this.options = r, d = r && r.debug; var i = function () { var t = c()(a.a.mark((function t(e) { var r; return a.a.wrap((function (t) { for (; ;)switch (t.prev = t.next) { case 0: return p.log("onImageDrop", { dataUrl: e }), t.next = 3, n.downscaleImageFromUrl(e); case 3: r = t.sent, n.insertToEditor(r); case 5: case "end": return t.stop() } }), t) }))); return function (e) { return t.apply(this, arguments) } }(); this.imageDrop = new g(e, i, p), function (t) { t.maxWidth = t.maxWidth || 1e3, t.maxHeight = t.maxHeight || 1e3, t.maxWidth && "number" != typeof t.maxWidth && (p.warn("[config error] 'maxWidth' is required to be a "number" (in pixels), \nrecieved: ".concat(t.maxWidth, "\n-> using default 1000")), t.maxWidth = 1e3), t.maxHeight && "number" != typeof t.maxHeight && (p.warn("[config error] 'maxHeight' is required to be a "number" (in pixels), \nrecieved: ".concat(t.maxHeight, "\n-> using default 1000")), t.maxHeight = 1e3), t.quality && "number" != typeof t.quality && (p.warn("quill.imageCompressor: [config error] 'quality' is required to be a "number", \nrecieved: ".concat(t.quality, "\n-> using default 0.7")), t.quality = .7), !t.imageType || "string" == typeof t.imageType && t.imageType.startsWith("image/") || (p.warn('quill.imageCompressor: [config error] 'imageType' is required be in the form of "image/png" or "image/jpeg" etc ..., \nrecieved: '.concat(t.imageType, "\n-> using default image/jpeg")), t.imageType = "image/jpeg") }(r), p.log("fileChanged", { options: r, quill: e, debug: d }); var o = this.quill.getModule("toolbar"); o ? o.addHandler("image", (function () { return n.selectLocalImage() })) : p.error("Quill toolbar module not found! need { toolbar: // options } in Quill.modules for image icon to sit in") }
quill Overwriting modules/blotFormatter with ƒ e(t) { var n = this, r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; o(this, e), this.onClick = function () { n.hide() }, this.quill = t, this.options = (0, l.default)(s.default, r, { arrayMerge: p }), this.currentSpec = null, this.actions = [], this.overlay = document.createElement("div"), this.overlay.classList.add(this.options.overlay.className), this.options.overlay.style && Object.assign(this.overlay.style, this.options.overlay.style), document.execCommand("enableObjectResizing", !1, "false"), this.quill.root.parentNode.style.position = this.quill.root.parentNode.style.position || "relative", this.quill.root.addEventListener("click", this.onClick), this.specs = this.options.specs.map(function (e) { return new e(n) }), this.specs.forEach(function (e) { return e.init() }) }
TypeError: Cannot read properties of undefined (reading 'trim')
Stack trace:
at new I (https://localhost:7087/_content/MudExRichTextEditor/lib/quill/quill.js?c=8.0.1.0:2:34086)
at n.create (https://localhost:7087/_content/MudExRichTextEditor/js/components/MudExRichTextEdit.min.js:1:781)
at new n (https://localhost:7087/_content/MudExRichTextEditor/js/components/MudExRichTextEdit.min.js:1:355)
at Module.initializeMudExRichTextEdit (https://localhost:7087/_content/MudExRichTextEditor/js/components/MudExRichTextEdit.min.js:1:59)
at https://localhost:7087/_framework/blazor.webassembly.js?version=9:1:2900
at new Promise ()
at v.beginInvokeJSFromDotNet (https://localhost:7087/_framework/blazor.webassembly.js?version=9:1:2857)
at Object.Zt [as invokeJSJson] (https://localhost:7087/_framework/blazor.webassembly.js?version=9:1:56051)
at https://localhost:7087/_framework/dotnet.runtime.qrl1fuqt3c.js:3:33879
at Fc (https://localhost:7087/_framework/dotnet.runtime.qrl1fuqt3c.js:3:172155)
