3.0.0
https://jsfiddle.net/bhaskar321/zp6st8h4/1/
Nodejs or browser?
Browser
Which browsers?
Chrome Version 74.0.3729.169 (Official Build) (64-bit)
Selection box should match the actual width of the whole text.
Selection box width is smaller than the text
hi @bhaskardas9475,
You need to override fabric.util.graphemeSplit with some function that is able to handle diatrical marks and unicode points for indian language.
Hello @asturur ,
Thanks for the suggestion. That would be really helpful if you elaborate little more. May be a small example of code.
check grapheme splitter https://www.npmjs.com/package/grapheme-splitter
fabric.util.graphemeSplit = function(stringOfText) {
// import a library that does this job, like grapheme splitter
return graphemeSplitter(stringOfText)
}
Works Perfectly..
--Thanks @asturur
Most helpful comment
check grapheme splitter https://www.npmjs.com/package/grapheme-splitter