Skip to content

irsooti-legacy/chars-index-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chars index finder

Do you have to find the character index of a selected text inside a container element? Begin and start? This is your library then.

But... Range is the native way to get end's and start's offset!

True, but if you have a very long text up to 65536 characters the DOM auto creates multiple text nodes, giving error of calculus of the offsets.

This library will count the exact indexes offsets, counting over all each text nodes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published