Today I suddenly thought about reviewing the production principles of rich text editors. So he started to do it without saying a word. Because I wrote a simple rich text editor a year ago, I probably still have some impression. But when I ran the code I wrote, I found the problem:
Copy the code