neos / neos-ui-extensibilityexamples
此包的最新版本(dev-master)没有提供许可证信息。
dev-master
2023-01-02 13:28 UTC
Requires
- neos/flow: *
This package is auto-updated.
Last update: 2024-09-07 08:05:50 UTC
README
在 "Resources/Private" 和 Configuration/Settings.yaml 中查看示例。
要查看API,请查看UI扩展文档。
安装
cd Packages/Application/
git clone git@github.com:neos/neos-ui-extensibility-examples.git Neos.Neos.Ui.ExtensibilityExamples
cd ../../
./flow flow:package:rescan
如何构建示例
目前,示例仅适用于yarn,不适用于NPM安装。
- 转到
Resources/Private/[ExampleName]
- (可选): 使用NVM确保您使用的是正确的node.js版本:
nvm install
- 全局安装yarn
npm install -g yarn
- 在
Resources/Private/[ExampleName]
文件夹中,运行yarn
。 - 然后,使用
npm run build
或npm run watch
。
示例
CustomStylingForEditor
- 为CKEditor 5添加自定义按钮,以添加自定义CSS样式
ModifyDataWithCommandCKEditor
- 为CKEditor 5添加自定义按钮来操作内容。在这种情况下,我们将内容更改为大写文本。
CustomEditor
- 为检查器添加自定义编辑器
ColorPickerEditor
- 一个关于颜色选择编辑器的更复杂示例。
通过未计划的扩展替换组件
- 展示如何添加自定义主题