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

# \u4E0B\u8F7D\u5B89\u88C5

\u540C\u65F6\u66F4\u65B0\u7EF4\u62A4 tinymce-plugin \u548C @npkg/tinymce-plugin \u4E2D\u3002\uFF08\u4E8C\u8005\u540C\u6B65\uFF09

# CDN

  • 1
<script src="https://unpkg.com/tinymce-plugin"></script>
html

\u6216

  • 1
<script src="https://unpkg.com/@npkg/tinymce-plugin"></script>
html

# NPM

  • 1
npm i tinymce-plugin \u6216 npm i @npkg/tinymce-plugin
sh
  • 1
yarn add tinymce-plugin -D \u6216 yarn add @npkg/tinymce-plugin -D
sh

\u6216

# \u81EA\u884C\u4E0B\u8F7D

\u8FD9\u4E9B\u6587\u4EF6\u53EF\u4EE5\u5728 unpkg \u6216\u8005jsDelivr \u8FD9\u4E9B CDN \u4E0A\u6D4F\u89C8\u548C\u4E0B\u8F7D,\u81EA\u884C\u5B58\u653E

# \u4F7F\u7528

# \u5F15\u5165

  • 1
<script src="https://unpkg.com/@npkg/tinymce-plugin"></script>
html
  • 1
import "tinymce-plugin";
js

# \u5F00\u542F\u9AA8\u67B6\u5C4F\uFF08skeletonScreen\uFF09

\u901A\u8FC7\u914D\u7F6E\u53C2\u6570 skeletonScreen \u6765\u5F00\u542F tinymce \u5BCC\u6587\u672C\u6846\u7F16\u8F91\u5668\u7684\u9AA8\u67B6\u5C4F\u529F\u80FD \uFF0C\u6539\u5584 tinymce \u5BCC\u6587\u672C\u7F16\u8F91\u5668\u52A0\u8F7D\u8FC7\u957F\u7528\u6237\u4F53\u9A8C\u4E0D\u4F73

\u63D0\u793A

\u8981\u4F7F\u7528 skeletonScreen \u5FC5\u987B \u5F15\u5165 tinymce-plugin \u6216 @npkg/tinymce-plugin

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
import "tinymce-plugin"; tinymce.init({ ... skeletonScreen: true, ... })
js

\u4F7F\u7528\u6548\u679C skeletonScreen

# \u5F15\u5165\u4F7F\u7528\u6536\u5F55\u7684\u63D2\u4EF6\u6216\u6269\u5C55

  • 1
  • 2
  • 3
  • 4
import "tinymce-plugin"; //\u4F5C\u4E3A\u4E00\u4E9B\u63D2\u4EF6\u7684\u5FC5\u8981\u4F9D\u8D56 import "tinymce-plugin/plugins/tpIndent2em"; import "tinymce-plugin/plugins/tpLayout"; import "tinymce-plugin/plugins/tpImportword";
js

\u6216

  • 1
  • 2
  • 3
  • 4
import "@npkg/tinymce-plugin"; //\u4F5C\u4E3A\u4E00\u4E9B\u63D2\u4EF6\u7684\u5FC5\u8981\u4F9D\u8D56 import "@npkg/tinymce-plugin/plugins/tpIndent2em"; import "@npkg/tinymce-plugin/plugins/tpLayout"; import "@npkg/tinymce-plugin/plugins/tpImportword";
js
`});export{l as default};