如何添加视频上传并保存到后端?
感谢你报告,@san-123。 关于如何添加视频上传并保存到后台的好问题。GrapesJS 推荐的方法是使用事件驱动 API。 从这里开始: 查看你所在模块的[GrapesJS文档](https://grapesjs.com/docs/) 寻找“on()”事件监听器方法 大多数操作可以通过监听编辑器和组件事件来实现 常见模式: “JavaScript 留意变化 editor.on('change', () => console.log('something changed')); 组件生命周期 editor.on('component:mount', (c) => console.log('component ready', c)...
阅读下方完整回答 ↓问题
你好,artf,
我已经实现了多张图片上传并保存到远程数据库。
就像如何上传单视频并保存远程数据库一样
因为每次我们都需要把所有视频放到远程文件夹,然后配置成视频标签的src。这需要很多时间
请指导我实现它。
回答(1)
感谢你报告,@san-123。 关于如何添加视频上传并保存到后台的好问题。GrapesJS 推荐的方法是使用事件驱动 API。 从这里开始: 查看你所在模块的[GrapesJS文档](https://grapesjs.com/docs/) 寻找“on()”事件监听器方法 大多数操作可以通过监听编辑器和组件事件来实现 常见模式: “JavaScript 留意变化 editor.on('change', () => console.log('something changed')); 组件生命周期 editor.on('component:mount', (c) => console.log('...
相关问答
通过相似的问题讨论继续研究。
问题 #3432
我们能在 GrapesJS 编辑器中使用 [Wistia](https://wistia.com/) 吗?我想像Vimeo在编辑器中使用的那样使用它。
你好,@artf, 我们能在 GrapesJS 编辑器中使用 [Wistia](https://wistia.com/) 吗?我想像Vimeo在编辑器中使用的那样使用它。 ) and a dozen throwaway event listeners — this post is for you.
教程
How to Build a Production GrapesJS Editor: The Complete Walkthrough of Brief, Preset, Plugins, and Services
A complete walkthrough of building a production GrapesJS editor: how to choose a preset, pick plugins, and scope setup services without burning a sprint.
教程
Big Updates: TinyMCE 8 and Placeholder 2.0 for GrapesJS
In May we shipped major updates to two of our most popular GrapesJS plugins — TinyMCE Inline Text Editor and Placeholder.
浏览插件分类
直接跳转到市场上的插件分类页面。