我花了很多时间来解决一个问题。如何让事件可编辑,但不启用拖放功能。我可能找到了一个很酷的解决方案。使用“revertFunc();”
revertFunc();
Run Code Online (Sandbox Code Playgroud)
该函数用于 eventDrop 事件的每个事件。代码是:
eventDrop: function(event, delta, revertFunc) {
revertFunc();
},
Run Code Online (Sandbox Code Playgroud)
当事件被放下时,他回到原来的位置=>拖放被禁用,但点击的可能性仍然存在^^。
享受。