Wordpress在可视化编辑器中删除base64图像

I have a problem in wordpress where images converted to base64 will show up on the website but not in the editor.

After some testing it happens when we switch to the visual editor.

enter image description here

When we view the text mode the image tags appear.

enter image description here

Is there a fix for this? I tried to google but always end up on wordpress support issue from over 3, 4 years ago.

I ended up writing a script to generate an image, and save it in the uploads folder, for each base64 image and updated the img tag.