Depending on how far along you are, I'd recommend checking out: https://lexical.dev/
I'm in the process of migrating my companies RTE from Slate to Lexical.
I've been able to remove thousands of lines of custom code and increase the performance and reliability