code: function isInActiveContentEditable(node) {
          while (node) {
              if ( node.getAttribute &&
                   node.getAttribute("contenteditable") &&
                   node.getAttribute("contenteditable").toUpperCase() === "TRUE" ) {
                  return true
              }
  
              node = node.parentNode
          }
  
          return false
      }
docs: Returns true if the node is or is inside an active contenteditable