Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编辑器导出docx文档,格式错乱 #5

Open
zhaoxuanHome opened this issue Nov 9, 2023 · 5 comments
Open

编辑器导出docx文档,格式错乱 #5

zhaoxuanHome opened this issue Nov 9, 2023 · 5 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@zhaoxuanHome
Copy link

我想把canvas-editor编辑器编写的内容导出成docx文件。
1、引入插件并使用:
import docxPlugin from '@hufe921/canvas-editor-plugin-docx';
//使用插件 导出文档方法
function executeWord() {
instance.use(docxPlugin);
if (instance && instance.command && instance.command.executeExportDocx) {
instance.command.executeExportDocx({
fileName: fileName.value
});
}
}

2、导出文档问题,导出文件使用微软office打开:
关于普通文本:
1)字体类型、大小
编辑器内:微软雅黑字体,字号大小默认小四;
导出文件使用微软office打开:中文正文,字号21;

关于图片:
1)图片宽高失真,无法像在编辑器一样被保留下来;

关于表格:
1)表格内文字大小和文字在表格中的位置无法居中或者居左;
2)表格无法设置底纹颜色;
3) 表格无法自适应;

@Hufe921 Hufe921 added enhancement New feature or request bug Something isn't working labels Nov 9, 2023
@zhaoxuanHome
Copy link
Author

这个bug已经修复了吗?怎么使用最新修复的版本呢?

@HoChine
Copy link

HoChine commented Jan 24, 2024

近期有开发计划吗? 能支持吗?

@xnnxuyuan
Copy link

同问

@yinglengfeng
Copy link

大佬能修复吗?

@weilong121388
Copy link

同求大佬修复下,比较急🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants