Cannot read properties of null (reading 'getRangeAt') Solve the problem that the error button cannot be clicked when using layedit in the pop-up layer of layer.open

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

Supongo que te gusta

Origin blog.csdn.net/qq_41579104/article/details/130202481
Recomendado
Clasificación