We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我想把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) 表格无法自适应;
The text was updated successfully, but these errors were encountered:
这个bug已经修复了吗?怎么使用最新修复的版本呢?
Sorry, something went wrong.
近期有开发计划吗? 能支持吗?
同问
大佬能修复吗?
同求大佬修复下,比较急🙏
No branches or pull requests
我想把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) 表格无法自适应;
The text was updated successfully, but these errors were encountered: