0

我正在使用 jsPlumb,并且在双击节点内的文本时触发了 summer-note,我想要的是在我的 summer-note jQuery 执行时禁用节点的拖动。我在 Google 上进行了搜索,但无法找到如何为单击的节点禁用拖动山墙。这是我尝试过的:

 $(document).ready(function () {
  window.is_summerNote = false;
  $(".terminator-title, .node-title, .diamond-title, .note-title ").on('click', function (e) {
    if (e.originalEvent.detail > 1) {
      if ($(window.node))
        $(window.node).summernote('destroy');
      window.is_summerNote = true;

      window.node = this;
      window.id = $(this).parent().attr("id")
      jsPlumb.draggable("#dragcodes", {
      drag: function (event, ui) { //gets called on every drag
      //Dont Know what to do here to stop dragging for that node
      }
     });
      $(this).summernote('focus');
    }
  });
});
4

0 回答 0