[BUG] - Content Component as Angular element - produces the error - properties of undefined (reading 'data-ck-expando')
@jeriah-formio 已经在做这个了。
开始于 2024年7月10日。
评估
这个 Issue 还没有评估数据。
描述
Environment
Angular version - 15.2.0
- Hosting type
- [] Form.io
- [X ] Local deployment
- Version:
- Formio.js version:
"@formio/angular": "^5.5.0-rc.11",
"@formio/js": "^5.0.0-rc.27",
- Frontend framework:
- Browser: Chrome
- Browser version: latest
Steps to Reproduce
- Create an angular element - with formio.
- Build the project to generate the javascript and css file and include it in a HTML file.
- open HTML file and try to add content component to the form. Due to the ckeditor the following error occurs. (see video more details.)
sfs-form-designer-element.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'data-ck-expando')
at dr (emittermixin.js:256:9)
at Eu._getProxyEmitter (emittermixin.js:112:39)
at Eu.stopListening (emittermixin.js:86:23)
at Eu.destroy (view.js:492:8)
at viewcollection.js:89:26
at Array.map (<anonymous>)
at dl.map (collection.js:334:22)
at dl.destroy (viewcollection.js:89:8)
at dl.detachFromDom (bodycollection.js:94:9)
at Gl.destroy (editoruiview.js:52:13)
Note the above error occurs only if you export formio as an Angular Element. Regular angular projects work fine.
Expected behavior
Content component should work as expected.
Observed behavior
https://github.com/formio/angular/assets/17984781/b6a90082-5390-48b8-90fb-85224233d653
- 主要语言
- TypeScript
- 星标
- 706
- 派生
- 493
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
formio/angular 的其他 Issue
-
question
难度 3/5 1-2 天 新手友好度 55/100
-
[BUG] <form-builder> move icon is missing可能重新可做 @PrathameshHegde 于 99 天前认领,目前没有进行中的 PR。 未关闭bug
-
question
难度 2/5 1-3 小时 新手友好度 25/100
-
[BUG] "Left (Right-aligned)" label position causes misaligned error messages and descriptions可能重新可做 @Victoriya25 于 363 天前认领,目前没有进行中的 PR。 未关闭bug
-
question
难度 5/5 一周以上 新手友好度 25/100
相似的 Issue
-
area: batch
难度 2/5 1-3 小时 新手友好度 75/100
inabagumi/shinju-date#7294 ·
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 68/100
streaming-video-technology-alliance/common-media-library#700 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
vercel-labs/ui#809 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 67/100
KrisCris/village-in-the-shade-guide#75 ·
维护者通常 1 天内回复
-
bot:ai-assisted component:platform-js status:untriaged
难度 1/5 1 小时以内 新手友好度 74/100
midnightntwrk/platform-js#38 ·