soscripted / sox

Stack Overflow Extras: a userscript for the Stack Exchange websites to add a bunch of optional toggle-able features
http://stackapps.com/q/6091/
MIT License
72 stars 15 forks source link

#325: remove rangyInputs dependency #354

Closed GaurangTandon closed 6 years ago

GaurangTandon commented 6 years ago

rangyInputs is useful when you've both content editable and textarea nodes, and have to handle them while maintaining some level of abstraction. In our case, it's just textareas which are quite easy to manipulate using native properties.

I also added the unwrap feature, where if you press kbd button twice repeatedly, it will unwrap the current tags (just as SE does it on pressing Ctrl-B).

Also, kbd and list insertion now work in comments as well. (via keycodes only)

shu8 commented 6 years ago

Thanks! That looks great, I'll get it merged ASAP! :)