New answers tagged

0

Inspired by https://stackoverflow.com/questions/5393922/javascript-replace-selection-all-browsers by @tim-down Getting close, but needs a tweak if you see it, maybe edit my answer here: <!-- language: lang-js --> function wrapSelection(wrapSt, wrapEd, selectInserted) { var sel, range, fragment; if (typeof window.getSelection != "undefined") { ...


Top 50 recent answers are included