OverType文件上传插件
OverType文件上传插件【免费下载链接】overtypeThe markdown editor thats just a textarea https://overtype.dev项目地址: https://gitcode.com/gh_mirrors/ov/overtype安装npm install overtype-file-upload使用import OverType from overtype; import { fileUploadPlugin } from overtype-file-upload; const [editor] new OverType(#editor, { toolbar: true, toolbarButtons: [ fileUploadPlugin({ uploadUrl: /api/upload, maxSize: 5242880 }) ] });API参考fileUploadPlugin(options)- 创建上传按钮options.uploadUrl- 上传接口URLoptions.maxSize- 最大文件大小字节### 3. 发布到npm bash # 构建插件 npm run build # 发布到npm npm publish # 或者发布到私有仓库 npm publish --registryhttps://your-registry.com【免费下载链接】overtypeThe markdown editor thats just a textarea https://overtype.dev项目地址: https://gitcode.com/gh_mirrors/ov/overtype创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2442871.html
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!