System.register(["./pinia-legacy.js","./vue-legacy.js"],(function(s){"use strict";var n;return{setters:[function(){},function(s){n=s.M}],execute:function(){s("default",n({components:{},template:'

# 🚀 tpImportword

\n

tinymce-plugin \nrelease candidate \ntinymce Version \nGitHub license \ntinymce Version

\n

tpImportword 插件用于 tinymce 富文本编辑器 实现导入word功能, 并且最大可能保存布局样式与颜色等

\n

欢迎提供好的建议 或者反馈bug

\n

\n

# 注意

\n

目前及支持 docx 文件

\n
\n

提示

\n

导入word 插件导入的图片默认是base64 ,需要配置 automatic_uploads 属性,同时需要保证配置了 images_upload_handler, 可将导入的图片自动上传服务器转成url链接

\n
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
import "@tinymce-plugin/tp-importword";\n tinymce.init({\n ...\n images_upload_handler: (blobInfo, succFun, failFun)=>{ ... }\n automatic_uploads: true\n plugins: "tpImportword"\n toolbar: "tpImportword"\n ...\n })\n
js
\n
\n
'}))}}}));