PropertyComposite 带滑块,适用于四边(左、右、右、B)。一个滑块的变动会导致其他数值重置。
谢谢你举报,@RohitLad。 关于PropertyComposite带四边滑块(左、右、右、B)的好问题。一个滑块的变动会导致其他数值重置。推荐的 StyleManager 方法是使用事件驱动的 API。 从这里开始: 查看你所在模块的[GrapesJS文档](https://grapesjs.com/docs/) 寻找“on()”事件监听器方法 大多数操作可以通过监听编辑器和组件事件来实现 常见模式: “JavaScript 留意变化 editor.on('change', () => console.log('something changed')); 组件生命周期 editor.on('component:mount',...
阅读下方完整回答 ↓问题
葡萄JS版本
- 我确认使用最新版本的GrapesJS
你用的是什么浏览器?
狩猎
可复制演示链接
https://codesandbox.io/s/funny-williamson-thb52d?file=/index.js
描述一下那个虫子
如何复现这个漏洞?
预期的行为是什么? 选择默认组件,看看样式管理器。当一个滑块(例如,底部填充)移动后,其他滑块应保持在预定义或恒定值。有趣的是,如果类型是“number”而不是“slider”,它就能正常工作
目前的行为是什么? 当移动一个滑块时(例如,底部填充),甚至其他滑块也会移动,它们的数值也会被重置。
行为准则
- 我同意遵守本项目的行为准则
回答(1)
谢谢你举报,@RohitLad。 关于PropertyComposite带四边滑块(左、右、右、B)的好问题。一个滑块的变动会导致其他数值重置。推荐的 StyleManager 方法是使用事件驱动的 API。 从这里开始: 查看你所在模块的[GrapesJS文档](https://grapesjs.com/docs/) 寻找“on()”事件监听器方法 大多数操作可以通过监听编辑器和组件事件来实现 常见模式: “JavaScript 留意变化 editor.on('change', () => console.log('something changed')); 组件生命周期 editor.o...
相关问答
通过相似的问题讨论继续研究。
问题 #4138
风格管理器中的意外行为
葡萄JS版本[X] 我确认使用最新版本的GrapesJS你用的是什么浏览器? 版本 1.35.101 Chromium:98.0.4758.87(官方版本)(64位) (64位) 可复制演示链接 https://codesandbox.io/s/strange-sun-qgdcq?fil...
问题 #5207
创建多页面时的重复CSS
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? Chrome最新款 可复制演示链接 https://codesandbox.io/s/withered-bush-wv29dx?file=/index.js 描述一下那个虫子 如何复现这个漏洞?....
问题 #5297
GetJS 无法工作
葡萄JS版本[X] 我确认使用最新版本的GrapesJS你用的是什么浏览器? 版本 115.0.5790.171(官方构建)(64位)可复制演示链接 https://codesandbox.io/s/1r0w2pk1vl?file=/index.html描述一下那个虫子 如何复...
与此问题匹配的付费插件
根据问题关键词和标签相关性精选,助你更快交付。
正在加载付费插件推荐……
相关教程
关于同一主题的深入指南。
教程
GrapesJS DevTools: A Developer Panel Inside Your Editor
If you've ever debugged GrapesJS with console.log(editor.getSelected()) 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.
浏览插件分类
直接跳转到市场上的插件分类页面。