如何在 traitManager 中隐藏“.gjs-traits-label”?
问题
也许你能帮帮我......我想在打开 TraitManager 时移除标签“.gjs-traits-label”。
 
我尝试了类似这样的方法:
留言[编辑。I18n.getLocale()] = {
traitManager: {
标签:“”,// 或 NULL
}
};
编辑。I18n.addMessages(message);
回答(2)
“''CSS .gjs-traits-label { display: none }
谢谢你举报,@alemenciones。 关于如何在traitManager中隐藏“.gjs-traits-label”的好问题。GrapesJS 推荐的方法是使用事件驱动 API。 从这里开始: 查看你所在模块的[GrapesJS文档](https://grapesjs.com/docs/) 寻找“on()”事件监听器方法 大多数操作可以通过监听编辑器和组件事件来实现 常见模式: “JavaScript 留意变化 editor.on('change', () => console.log('something changed')); 组件生命周期 editor.on('component:...
相关问答
通过相似的问题讨论继续研究。
问题 #3315
毫米或厘米单位转换为px。
我意识到毫米或厘米单位是可以转换成像素的。我该如何解决这个问题? 谢谢你 ,这是错了还是我做错了?我本以为资源不会显示出来,但它们全都可见 ) 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.
浏览插件分类
直接跳转到市场上的插件分类页面。