如果在编辑文本内容时被拖拽,文本组件会被错误地移除
目前还没有社区回答。打开 GitHub 上的原始讨论,分享你的解决方案。
问题
这可以在演示中复制:https://grapesjs.com/demo.html
- 拖入文本节点
- 双击激活RTE
- 将文本组件拖曳到另一个位置
- 选择另一个组件
该组件被移除,并记录到控制台以下错误:
未捕获的类型错误:无法读取属性 null 的 'tagName'
在r.toggleEvents(ComponentTextView.js:165)
在r.disableEditing(ComponentTextView.js:71)
回答(0)
暂无回答。
相关问答
通过相似的问题讨论继续研究。
问题 #4837
HTML元素的ID会在projectData加载的不同页面上递增
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? Firefox 109 可复制演示链接 https://grapesjs.com/demo.html 描述一下那个虫子 你好, 我注意到当我在 projectData 中加载多个 HTML 中使用...
问题 #5729
编辑/替换链接内的文本
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? Chrome v122 可复制演示链接 https://grapesjs.com/demo.html 描述一下那个虫子 如何复现这个漏洞?开放演示创建带有链接的文本使用默认RTE编辑文本选择整个链...
问题 #3579
在放置“activeOnRender”组件后立即打开RTE时丢失了
版本: 0.17.4 你能重现演示中的bug吗?[x] 是的[ ] 不 繁殖步骤:前往[演示](https://grapesjs.com/demo.html)在画布内放置一个“文本”方块点击刚刚丢弃的“文本”组件打开的RTE丢失了位置(参见[附图](https://user-i...
问题 #3794
当宽度和高度为画布100%时,基本文本组件中的RTE重叠文本
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? 版本 93.0.4577.82(官方构建)(64位) 可复制演示链接 https://grapesjs.com/demo.html 描述一下那个虫子 
New to GrapesJS? See exactly what the stock editor gives you, where it falls short, and which plugins close the gaps — a beginner-friendly 2026 comparison
教程
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 We Built Composeit in Record Time Using GrapesJS Shadcn
Bypass foundational builder boilerplate and focus on what truly matters.
浏览插件分类
直接跳转到市场上的插件分类页面。