diff --git a/plugins/discourse-details/assets/javascripts/lib/rich-editor-extension.js b/plugins/discourse-details/assets/javascripts/lib/rich-editor-extension.js index 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; }