This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Aravind Ravi
Posted Jun 04 - Read on Facebook

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?


Tes Mat

I tried to do this a while ago using (and Utils.insertCSS) with normal layers (like yours) and Text Layers, but couldn’t get it to work. I think it gets overridden.

Aravind Ravi

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?

Read the entire post on Facebook