Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

GrehnanSondra's avatar

How to delete edges with the delete key

im trying to remove the edges when the user presses the delete key. I've been reading the docs but couldn't find anything. I can implement a custom function that will remove the edges, but I only want to do it if there is no function or property omegle.2yu.co available in mxgraph

I have these options enabled https://omegle.love atm

mxEdgeHandler.prototype.snapToTerminals = true; mxEdgeHandler.prototype.removeEnabled = true;

0 likes
1 reply
Tray2's avatar

What is it that you want to remove the edges from?

If it is an html element then the easiest would be to create a css class that removes them.

Then you can just do this

function removeEdges(el) {
	document.querySelector(el).classList.add('no-edges'):
}

Please or to participate in this conversation.