jquery-textrange
jquery-textrange copied to clipboard
Extend functionality to other DOM elements
Investigate and allow get/set/replace functionality on any DOM element (beyond textareas and text inputs).
Investigate a new "replaceRange" method that would not require selecting text in order to replace text. (Currently replace simply replaces selected text.)
There are countless cases where people have needed this functionality: http://stackoverflow.com/questions/5669448/get-selected-texts-html-in-div http://stackoverflow.com/questions/5577756/selection-position-of-selected-text-of-div-using-javascript http://stackoverflow.com/questions/8802857/select-all-contents-of-a-div http://stackoverflow.com/questions/12441410/javascript-select-text-range-from-contenteditable-div http://stackoverflow.com/questions/1173194/select-all-div-text-with-single-mouse-click etc.
Also think about renaming current replace to replaceSelection and having replace be the proposed replaceRange (or replaceAt, originally).
These changes are severe enough to require a new major version.