From 52e40517a51637bee9a5780259b88ee3f28599a2 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 21 Jun 2020 10:28:46 +0200 Subject: Enable use of mouse selection inside the title and description editor input fields. --- src/ws/node.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/ws/node.js') diff --git a/src/ws/node.js b/src/ws/node.js index 75fe1ec..5ecfdac 100644 --- a/src/ws/node.js +++ b/src/ws/node.js @@ -239,6 +239,17 @@ Node.prototype.create = function() } }; +//! Recursively set draggable property from node until root node. +Node.prototype.setDraggable = function(value) +{ + var node = this.element; + node.draggable = value; + if(this.parent != null) + { + this.parent.setDraggable(value); + } +}; + function checkHTML(html) { var doc = document.createElement('p'); -- cgit v1.2.3