[vue] Tinymce data echo problem | After the first normal echo, it shows a blank bug and cannot be edited

Tinymce data echo problem | After the first normal echo, it shows a blank bug and cannot be edited

The front-end project framework vue2 uses the rich text editor tinymce. When the el-dialog echoes tinymce data for the first time, it can be edited normally, but when the dialog is closed, clicking tinymce again is blank and cannot be edited (as shown below)
insert image description here
After reading other people's explanations, it probably said that富文本没有销毁

Solution

insert image description here

You can see whether the dialog here is bound or not , add a binding opento tinymce , so that rich text and dialog can be rendered togetherv-ifopen

insert image description here

In the follow-up, the rich text is normally echoed and edited

get off work~

Guess you like

Origin blog.csdn.net/qq_46123200/article/details/130102093