ji-devs / draft-canvas

https://jewish-interactive.github.io/draft-canvas
MIT License
0 stars 0 forks source link

When Hebrew and Eng on same line, highlighting changes order of the Hebrew #26

Open corinnewo opened 6 years ago

corinnewo commented 6 years ago

When Hebrew is alone on a line, and you highlight, it works beautifully.

But when there is English and Hebrew together on a line, and you highlight a word in the Hebrew, the correct word gets highlighted, but the order of the words in the Hebrew phrase gets mixed.

hebrew and english - no highlighting hebrew and english on one line - highlighting changes order of hebrew words

jpuri commented 6 years ago

@corinnewo , @dakom: I checked this issue, it hard to fix as it appears to be bug with underlying library DraftJS. Its reversing the text style ranges for Hebrew. Fixing it will take longer.