De locale 的遗漏定位键
问题
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? 与浏览器无关 可复制演示链接 https://codesandbox.io/s/pensive-river-417grm?file=/index.js 描述一下那个虫子 如何复现这个漏洞?import grapesjs/src/i18n/locale/de.js在编辑器配置中将它用作一个位置 预期的行为是什么? 一切德语 目前的行为是什么? 除了英语缺少关键字外,还有“background-repeat-sub”、“border-width-sub”、“padding-top-sub”等。因此,即使你用的是德语本地编辑器,编辑器部分是英语的 如果需要执行某些代码以重现该漏洞,请将其粘贴到下面: “''js 从“grapesjs”导入葡萄; import deLocale from “grapesjs/src/i18n/locale/de.js”; 导入“grapesjs-blocks-basic”; const editor = Grapesjs.init({ 容器:“#gjs”, fromElement: 1, storageManager: { type: 0 }, i18n: { 地点:“德”, detectLocale: false, 消息添加:{ de: deLocale } }, 插件:...
回答(2)
谢谢@c9a2334你愿意为这个修复贡献一下吗?
谢谢你举报,@c9a2334。 关于遗漏de locale的本地化密钥,这是个很好的问题。GrapesJS 推荐的方法是使用事件驱动 API。 从这里开始: 查看你所在模块的[GrapesJS文档](https://grapesjs.com/docs/) 寻找“on()”事件监听器方法 大多数操作可以通过监听编辑器和组件事件来实现 常见模式: “JavaScript 留意变化 editor.on('change', () => console.log('something changed')); 组件生命周期 editor.on('component:mount', (c) => conso...
相关问答
通过相似的问题讨论继续研究。
问题 #6641
在设置扩展模型默认值时出现错误
GrapesJS版本 [x] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? 版本 141.0.7390.123(官方构建)(64位) 可复制演示链接 https://codesandbox.io/p/sandbox/jovial-elion-js8zgy?file...
问题 #4537
RangeError 最大呼叫堆栈大小超过。
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? 勇敢 1.33.105 铬:96.0.4664.93 可复制演示链接 https://codesandbox.io/s/relaxed-mccarthy-v2e37w 描述一下那个虫子 如何复现这...
问题 #3806
添加视频时目标为零
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? Chrome新版本 可复制演示链接 https://codesandbox.io/s/react-redux-toolkit-application-forked-l5rhp?file=/src/...
问题 #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.
浏览插件分类
直接跳转到市场上的插件分类页面。