import"./pinia.js";import{M as s}from"./vue.js";const l=s({components:{},template:`

# \u5FEB\u901F\u4E0A\u624B

# \u65B9\u5F0F1


\u4F7F\u7528 tinymce-plugin \u5E93

# CDN

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
<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>
html

# NPM

# \u4E0B\u8F7D tinymce-plugin

  • 1
npm i tinymce-plugin
sh
  • 1
yarn add tinymce-plugin -D
sh

# \u9879\u76EE\u4E2D\u4F7F\u7528

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
import "tinymce-plugin/plugins/tpImportword/plugin.js"; tinymce.init({ ... plugins: "tpImportword" toolbar: "tpImportword" ... })
js

# \u65B9\u5F0F2


\u4F7F\u7528\u5355\u72EC @tinymce-plugin/tp-importword

# \u4E0B\u8F7D @tinymce-plugin/tp-importword

  • 1
npm i @tinymce-plugin/tp-importword
sh
  • 1
yarn add @tinymce-plugin/tp-importword -D
sh

# \u9879\u76EE\u4E2D\u4F7F\u7528

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
import "@tinymce-plugin/tp-importword"; tinymce.init({ ... plugins: "tpImportword" toolbar: "tpImportword" ... })
js

# \u65B9\u5F0F3


\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

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