多租户商城-商户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.2 KiB

2 years ago
  1. [![](https://data.jsdelivr.com/v1/package/npm/tinymce-all-in-one/badge)](https://www.jsdelivr.com/package/npm/tinymce-all-in-one)
  2. # Why
  3. Now tinymce's cdn, all plugins are downloaded separately, but there are dozens of plugins. So the init is very slow. Therefore, this project will build all plugins into `tinymce.min.js` through [Offical Build](https://www.tiny.cloud/get-tiny/custom-builds/), speeding up the init speed. Didn't do anything else.
  4. And
  5. Currently Tinymce's lang does not have cdn. So create an npm package, let lang supports cdn.
  6. # Use
  7. Cnd in [jsdelivr](https://www.jsdelivr.com/package/npm/tinymce-all-in-one)
  8. **If you don't mind the init speed, it is recommended to use the official [cdn](https://www.jsdelivr.com/package/npm/tinymce).**
  9. ## Langs
  10. Cnd in [jsdelivr](https://www.jsdelivr.com/package/npm/tinymce-lang?path=langs)
  11. - [zh_CN](https://cdn.jsdelivr.net/npm/tinymce-lang/langs/zh_CN.js)
  12. - [ja](https://cdn.jsdelivr.net/npm/tinymce-lang/langs/ja.js)
  13. - ...
  14. ```js
  15. tinymce.init({
  16. selector: "textarea", // change this value according to your HTML
  17. language: "zh_CN", // select language
  18. language_url: "https://cdn.jsdelivr.net/npm/tinymce-lang/langs/zh_CN.js" // site absolute URL
  19. });
  20. ```