directed-graph-creator icon indicating copy to clipboard operation
directed-graph-creator copied to clipboard

Not able to change text of node in IE

Open augustom87 opened this issue 11 years ago • 0 comments

I follow the error to :

/* select all text in element: taken from http://stackoverflow.com/questions/6139107/programatically-select-text-in-a-contenteditable-html-element */ GraphCreator.prototype.selectElementContents = function(el) { var range = document.createRange(); range.selectNodeContents(el); var sel = window.getSelection(); sel.removeAllRanges(); sel.addRange(range); };

sel.addRange gives unspecified error.

Have you noticed this? do you have any idea of what can be the issue?

Thanks!

augustom87 avatar Apr 16 '15 20:04 augustom87