Doubleclick option for TextEditingTool.starting

Is there any way to make the TextEditingTool start on a doubleclick? I know there is the SingleClickSelected enum, which makes it so that a user has to first click to select a part. This kind of works, but it’s too easy to start editing text when the user doesn’t mean to.


Try this:

myDiagram.toolManager.textEditingTool.canStart = function() {
  if (this.diagram.lastInput.clickCount < 2) return false;

It’s just code disallowing the textEditingTool from starting if its only a single click. Let me know if that works for you.