A platform for community discussion. Free, open, simple.
FIX: click handler position on rich editor details node (#32268)
Renato Atilio381f6e64e805
diff --git a/plugins/discourse-details/assets/javascripts/lib/rich-editor-extension.js b/plugins/discourse-details/assets/javascripts/lib/rich-editor-extension.jsindex 8da47ec2700..4b69d5a7279 100644--- a/plugins/discourse-details/assets/javascripts/lib/rich-editor-extension.js+++ b/plugins/discourse-details/assets/javascripts/lib/rich-editor-extension.js@@ -69,7 +69,8 @@ const extension = {plugins: {props: {handleClickOn(view, pos, node, nodePos) {- if (pos > 2 || node.type.name !== "summary") {+ // if the click position in the document is not the first within the summary node+ if (pos > nodePos + 1 || node.type.name !== "summary") {return false;}