import"./pinia.js";import{M as s}from"./vue.js";const l=s({components:{},template:`
\u4F7F\u7528 tinymce-plugin \u5E93
{}"><script src="https://unpkg.com/tinymce-plugin/plugins/tpImportword/plugin.min.js"></script><!--\u5F15\u5165-->
<!-- \u4F7F\u7528 -->
<script>
tinymce.init({
...
plugins: "tpImportword"
toolbar: "tpImportword"
...
})
</script>
{}">npm i tinymce-plugin
{}">yarn add tinymce-plugin -D
{}"> import "tinymce-plugin/plugins/tpImportword/plugin.js";
tinymce.init({
...
plugins: "tpImportword"
toolbar: "tpImportword"
...
})
\u4F7F\u7528\u5355\u72EC @tinymce-plugin/tp-importword
{}">npm i @tinymce-plugin/tp-importword
{}">yarn add @tinymce-plugin/tp-importword -D
{}"> import "@tinymce-plugin/tp-importword";
tinymce.init({
...
plugins: "tpImportword"
toolbar: "tpImportword"
...
})
\u81EA\u884C\u4E0B\u8F7D\u4F7F\u7528 \u8FD9\u4E9B\u6587\u4EF6\u53EF\u4EE5\u5728 unpkg \u6216\u8005jsDelivr \u8FD9\u4E9B CDN \u4E0A\u6D4F\u89C8\u548C\u4E0B\u8F7D,\u81EA\u884C\u5B58\u653E\u4E0E\u4F7F\u7528
\u63D0\u793A
\u5BFC\u5165word \u63D2\u4EF6\u5BFC\u5165\u7684\u56FE\u7247\u9ED8\u8BA4\u662Fbase64 \uFF0C\u9700\u8981\u914D\u7F6E automatic_uploads
\u5C5E\u6027,\u540C\u65F6\u9700\u8981\u4FDD\u8BC1\u914D\u7F6E\u4E86 images_upload_handler
, \u53EF\u5C06\u5BFC\u5165\u7684\u56FE\u7247\u81EA\u52A8\u4E0A\u4F20\u670D\u52A1\u5668\u8F6C\u6210url\u94FE\u63A5
{}"> import "@tinymce-plugin/tp-importword";
tinymce.init({
...
images_upload_handler: (blobInfo, succFun, failFun)=>{ ... }
automatic_uploads: true
plugins: "tpImportword"
toolbar: "tpImportword"
...
})