Skip to main content

Allan Deutsch

Member since Oct 28, 2024

Recent Blog Comments By Allan Deutsch

  • Detecting Rendered Line Breaks In A Text Node In JavaScript

    Posted on Oct 30, 2024 at 6:49 PM

    @Ben Nadel, If you've ever used the inline commenting feature for a document in Microsoft word or a google doc, I'm basically building that UI for any website. So I can capture anything I want when the comment is made, but I need to reliably reproduce the highlight on the same content in f... read more »

  • Detecting Rendered Line Breaks In A Text Node In JavaScript

    Posted on Oct 28, 2024 at 10:55 PM

    Great demo Ben! This is a pretty clever use of Range. Couple things I've noticed that could be improved: the way you collapse whitespace would result in incorrect text indentation for pre-formatted content such as a code block. Maybe this is not an issue for you, but I've been having... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel