formatd / hotspot-content
Neos CMS 的热点内容元素
v2.0.0
2024-02-16 18:29 UTC
Requires
- formatd/componentloader: ~1.0.2
- formatd/hotspot-editor: ~2.0.0
- neos/nodetypes-basemixins: *
README
此软件包提供带有热点的图像内容元素。Neos 编辑器可以在图像上创建和拖动热点,并添加标签和其他描述。它还可以通过复制 FormatD.HotspotContent:Content.ImageWithHotspots
原型,并将 renderer.content
替换为其他内容,在任意内容(不仅仅是图像)上放置热点。
兼容性
版本号方案
1.0.0
| | |
| | Bugfix Releases (non breaking)
| Neos Compatibility Releases (non breaking)
Feature Releases (breaking)
版本和兼容性
屏幕截图
hotspot-with-image-backend.mp4
JS 和 CSS
如果您已经实施了全局资产捆绑,则可能有必要禁用 JS 和 CSS 自动包含并导入 Root.ts 文件。
FormatD:
HotspotContent:
includeJS: false
includeCSS: false
此软件包使用 formatd/componentloader
(https://github.com/Format-D/FormatD.ComponentLoader) 来按需在后台和前端加载、初始化(并重新初始化)JS。如果您想使用组件加载器进行更多操作,也可以禁用 JS 和 CSS 包含并自行导入 Root.ts。
可扩展性和定制
此软件包基于 formatd/hotspot-editor
(https://github.com/Format-D/FormatD.HotspotEditor) 并提供了一个具体实现。您可以直接使用此软件包,或者将其作为如何构建自己的热点元素的 neos 示例。
路线图
- 点击外部关闭图层