These are chat archives for eysteinn13/FraunhoferDBWebsite

19th
Jun 2015
Freyr12
@Freyr12
Jun 19 2015 15:49
ta.value.substring(ta.selectionStart, ta.selectionEnd);
if (window.getSelection) {
        try {
            var ta = $('textarea').get(0);
            return ta.value.substring(ta.selectionStart, ta.selectionEnd);
        } catch (e) {
            console.log('Cant get selection text')
        }
    }
Eysteinn Gunnlaugsson
@eysteinn13
Jun 19 2015 20:44