uiwjs / react-md-editor

A simple markdown editor with preview, implemented with React.js and TypeScript.
https://uiwjs.github.io/react-md-editor
MIT License
2.03k stars 149 forks source link

The editor is stuck When value is large #620

Open QiaoLi1996 opened 5 months ago

QiaoLi1996 commented 5 months ago

When there is a lot of content, the editor will become stuck, which should be caused by textarea performance. For example, there is the following scenario! [image] (base64). The image after base64 is relatively large, which will cause the editor to be very stuck. Personally, I think this needs to be fixed.

Any feasible solutions or suggestions for improvement, I would be very grateful. image

jaywcjlove commented 4 months ago

@QiaoLi1996 This is mainly caused by the code highlighting, and you can remove the code highlighting feature using the method below.

https://github.com/uiwjs/react-md-editor/blob/c7d5acdf26e437973b826e914fb7b15493641c43/core/README.md?plain=1#L140-L166

glundgren93 commented 1 month ago

Unfortunately, changing to nohighlight doesnt make much of a difference. image