Recently, the old project angualr was written before it was changed. It used the rich text editor layedit of layui , and then it was tested and tested that the layedit operation button was disabled in the pop-up box. Clicking reported this error Cannot read properties of null (reading 'getRangeAt') ( layui does not seem to be maintained, but it is still recorded, so that this problem occurs when old projects are used )
After looking for information for a long time, I actually guessed that it was a rendering problem, but I don't know how to fix it. Later, it was found to be very simple, just write the establishment editor after the pop-up box, in this case, the problem will be solved