从 word 中复制的文本内容粘贴到编辑器中会丢失 font-family
Closed this issue · 1 comments
MrWamG commented
version
0.9.80
Link to minimal reproduction
No response
Steps to reproduce
从 word 中复制的文本内容粘贴到编辑器中会丢失 font-family,我修改了 canvas-editor.es.js 中的 convertTextNodeToElement 达到了我自己想要保留 word 中 font-family 的目地:
What is expected?
我希望从 word 中复制的文本可以保留 font-family
What is actually happening?
从 word 中复制的文本粘贴到编辑器后字体全部变成了微软雅黑。
System Info
No response
Any additional comments?
No response
Hufe921 commented
字体会涉及到字体族及设备兼容性问题编辑器暂不处理。你可以简单那样写