Replace whole content of user's chat input

I’m developing a small Chrome extension and I need to read (could be done with only: chatInput.textContent) and change the value of the user’s chat input. When I get the current slate-leaf and change its textContent it does not save even on dispatching keydown or input event. Is there any way to replace the whole chat input?

This answer did not work for me

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.