Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TinyMCE input being written in reverse order

I am facing this issue where whenever I type in TinyMCE my cursor shifts to left automatically and I end up writing text from right to left. Its only happening in my deployed application but same works fine if I run the code locally on my machine. Any possible reason why this might be happening?

screenshot for same

Note: This was working fine few days ago

like image 210
Divjot Singh Avatar asked Apr 14 '26 15:04

Divjot Singh


1 Answers

The below answer worked for me as well, went to project github but did not find any bug, so submitted one now, https://github.com/tinymce/tinymce-react/issues/267

Here is the actual answer from TinyMCE as to how to fix this issue:

Change this line:

initialValue={blogContent}

to

value={blogContent}

The initialValue prop should only be set once. It resets the editor including the cursor position when it changes.

like image 119
Joshua Sherman Avatar answered Apr 17 '26 04:04

Joshua Sherman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!