Open Kazimirkas opened 4 years ago
Version 2.1.1.
You will see, that each letter in a selection becomes wrapped with an additional span.
This realization is not acceptable for languages such Arabic. Because each letter in a <span> in Arabic becomes detached from the word.
<span>
For my project, I've fixed the issue using custom remove and toggle realization, based on RichUtils.toggleInlineStyle. It works ok.
RichUtils.toggleInlineStyle
Something like
const currentValue = styles.color.current(editorState); if (currentValue) { const id = `CUSTOM_COLOR_${currentValue}`; return RichUtils.toggleInlineStyle(editorState, id); }
Guys. I really appreciate your plugin. It is very handy! Could you please fix this issue, to make it even more useful?
Version 2.1.1.
Steps to reproduce.
You will see, that each letter in a selection becomes wrapped with an additional span.
This realization is not acceptable for languages such Arabic. Because each letter in a
<span>
in Arabic becomes detached from the word.Like in this example
Before
After
For my project, I've fixed the issue using custom remove and toggle realization, based on
RichUtils.toggleInlineStyle
. It works ok.Something like
Guys. I really appreciate your plugin. It is very handy! Could you please fix this issue, to make it even more useful?