Range.detatch is now a no-op

These lines cause a notice in many browsers. I ran the wysiwyg with the above changes and didn't notice any obvious problems.

https://developer.mozilla.org/en-US/docs/Web/API/range.detach