I'm working on a text highlight interaction. In this prototype, is there a way to change the background color of the selected text alone?https://framer.cloud/emyAW
I tried to do this a while ago using http://developer.mozilla.org/en-US/docs/Web/CSS/::selection (and Utils.insertCSS) with normal layers (like yours) and Text Layers, but couldn’t get it to work. I think it gets overridden.
Thanks for your response Tes Mat. Your comment nudged me in the right direction and I got the highlighting to work:
I'm basically creating a new dom element with the selected range. With that, I'm running into an issue where I'm unable to select a previously highlighted text. Is there a way to fix that?