DEV Community

Discussion on: How do you detect what line it is in wrapped text elements?

 
itsarnavb profile image
Arnav Bansal

Just deployed it. You can try the functionality here: laughing-gates-6a6364.netlify.com

If you press the up/down arrows, you move between the paragraphs (two separate contenteditable divs) only on the first and last lines.

(It's not a completely usable editor yet; still needs much fixing)

Thread Thread
 
erikwhiting88 profile image
Erik

very nice. Is this mostly just an exercise or do you have plans for this kind of feature?

Thread Thread
 
itsarnavb profile image
Arnav Bansal

I'm developing a platform where I need an editor with some custom features. I felt the need to understand all the moving parts of an editor.

My platform: deeplink.space