psmb / typo-reporter

Report typos on a web page
MIT License
19 stars 3 forks source link

Grabs a piece of code #3

Open aerohub opened 7 years ago

aerohub commented 7 years ago

Приветствую! Захватывает код вместе с текстом, (на демо воспроизводится, если выделяются последние слова). Без кода было бы лучше. Спасибо. 2017-06-27_00001

UPD (in English): Script grabs a piece of code with the highlighted text. (marked pink on screenshot)

dimaip commented 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?

aerohub commented 7 years ago

Well, I have no solution, but may be this will help?

dimaip commented 7 years ago

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 .