From b090d0d774627cfdd32f0c9d3b2dec581a5b650a Mon Sep 17 00:00:00 2001 From: blankie Date: Fri, 15 Sep 2023 11:21:27 +1000 Subject: [PATCH] Update Compass QoL Enhancer to 1.17.1 - Fix fixing links in lesson plans inside Resources --- Compass QoL Enhancer.user.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Compass QoL Enhancer.user.js b/Compass QoL Enhancer.user.js index 62c1450..ae9ce2b 100644 --- a/Compass QoL Enhancer.user.js +++ b/Compass QoL Enhancer.user.js @@ -2,7 +2,7 @@ // @name Compass QoL Enhancer // @namespace blankie-scripts // @match http*://*.compass.education/* -// @version 1.17.0 +// @version 1.17.1 // @author blankie // @description A userscript that adds small but useful features for Compass, such as the ability to close windows by clicking on the background // @inject-into page @@ -444,7 +444,9 @@ function handleNewNode(node, observer) { handleLearningTasksTable(node); } else if (node.classList.contains("x-grid-view") && unsafeWindow.Ext.getCmp(node.id).up("#submissionsPanel")) { handleLearningTaskSubmissionTable(node); - } else if (node.classList.contains("cke")) { + } + + if (node.classList.contains("cke")) { let instance = unsafeWindow.CKEDITOR.instances[node.id.substring(4)]; handleCKEditor(instance); } else if (node.localName === "a" && /\bcke_/.test(node.closest("body").className)) {