From a8ec8fa9d94d5b910f45bbc8fbee242e14d8c199 Mon Sep 17 00:00:00 2001
From: JediKev <kevin@enhancesoft.com>
Date: Mon, 30 Jul 2018 13:07:01 -0500
Subject: [PATCH] issue: jQuery Sortable Redactor
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This addresses issue 4372 where any Redactor text box within jQuery sortable
is not clickable. This is due to Redactor not being an actual input field,
rather a div, so sortable doesn’t see it as an input.
---
 scp/js/scp.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scp/js/scp.js b/scp/js/scp.js
index 6b68d970a..bbc7a7bf5 100644
--- a/scp/js/scp.js
+++ b/scp/js/scp.js
@@ -378,7 +378,8 @@ var scp_prep = function() {
            $('input[name^='+attr+']', ui.item.parent('tbody')).each(function(i, el) {
                $(el).val(i + 1 + offset);
            });
-       }
+       },
+       'cancel': ':input,button,div[contenteditable=true]'
    });
 
     // Scroll to a stop or top on scroll-up click
-- 
GitLab