carbon/editable

此包扩展了 Fusion 原型 `Neos.Neos:ContentComponent`,`Neos.Neos:Content` 和 `Neos.Neos:Editable`。它全部关于切换可编辑性。

2.0.0 2022-03-29 10:19 UTC

This package is auto-updated.

Last update: 2024-08-29 04:37:22 UTC


README

Latest Stable Version Total Downloads License GitHub forks GitHub stars GitHub watchers

Neos CMS 的 Carbon.Editable 包

此包扩展了 Fusion 原型 Neos.Neos:ContentComponentNeos.Neos:ContentNeos.Neos:Editable。它全部关于切换可编辑性。

安装

Carbon.Editable 通过 packagist 提供。将 "carbon/editable" : "^1.0" 添加到您的 composer.json 的 require 部分,或运行 composer require carbon/editable

Neos.Neos:ContentComponentNeos.Neos:Content

通过新的属性 contentElement(默认为 true),您可以关闭内容元素包装。如果您想使用没有任何编辑能力的内容元素或在其他内容元素内部使用内容元素,这将非常棒。

Neos.Neos:Editable

您将为这个原型获得一些新功能

已经存在的属性 block 获得了新的默认值:this.tagName ? false : true。如果不使用 tagName,则一切保持不变。

许可协议

在 MIT 许可下发布,见 LICENSE