cjrd / directed-graph-creator

Interactive tool for creating directed graphs
285 stars 123 forks source link

Not able to change text of node in IE #6

Open augustom87 opened 9 years ago

augustom87 commented 9 years ago

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!