[Chinese typography optimization] Insert a space between Chinese and Western automatically

When Chinese and English are mixed, spaces are usually inserted between Chinese and English for aesthetic purposes, like this:

中文english之间要有空格 → 中文 english 之间要有空格

This automatic insertion of spaces occurs when the user presses enter at the end of the block or clicks elsewhere, leaving the focus of the current block.

So I would like to have an option to enable the automatic insertion of spaces between English and Chinese by default. Of course users can turn it off by themselves

screenshots

It can also be triggered by a button, as in this gif, to insert a space between the English and Chinese text