Open aerohub opened 7 years ago
Thanks, I'll reply in English so others could follow. I'm aware of this issue, but didn't get around to fixing it. I'm using document.getSelection().toString()
to get the highlighted text snippet. Do you have ideas how to get it without contents of script tags?
Not really, looks like the same thing, just with fallback for compatibility.
On Tue, 27 Jun 2017, 14:37 Pavel Kanyshev, notifications@github.com wrote:
Well, I have no solution, but may be this https://github.com/tarampampam/jquery.textmistake/blob/master/src/jquery.textmistake.js#L197 will help?
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/psmb/typo-reporter/issues/3#issuecomment-311332358, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzFqLCpoz9tt834zP0YpEagBLNMHpVjks5sIOl7gaJpZM4OGd7m .
Приветствую! Захватывает код вместе с текстом, (на демо воспроизводится, если выделяются последние слова). Без кода было бы лучше. Спасибо.
UPD (in English): Script grabs a piece of code with the highlighted text. (marked pink on screenshot)