Open augustom87 opened 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!
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!