I'm building a rich text editor using React and Slate.js, and I'm trying to implement alignment functionality. However, the alignment buttons I've created don't seem to be working, and I'm not sure why. The console.log statements I've added show that the alignment functions are being called, but the text doesn't actually change alignment. Can anyone help me diagnose this issue and get the alignment buttons working correctly?
It's been a week , I'm really frustrated.
Finally , I got the working code . I'm answering my own question , Feel free to use my code if anyone having the similar issues . Dependencies used :