contextualcode / ezplatform-alloyeditor-source
eZ Platform 扩展包,提供在线编辑器中编辑源代码的界面
v3.1.3
2020-05-15 14:17 UTC
Requires
- ezsystems/ezplatform-admin-ui: ^2.0
- ezsystems/ezplatform-richtext: ^2.0
- symfony/flex: ^1.6.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
README
此扩展包允许编辑 eZ Platform 在线编辑器管理的字段的 HTML 源代码。因此,它提供了从 eZ Publish Legacy 的“禁用编辑器”功能。
安装
通过 composer 安装
composer require contextualcode/ezplatform-alloyeditor-source
使用管理界面将“内容/在线编辑器/编辑源代码”策略添加到所需的安全角色中:
清除浏览器缓存,享受使用吧!
用法
- 在 eZ Platform 管理界面中开始编辑任何包含富文本字段的任何内容。然后在富文本在线编辑器工具栏中点击“编辑源代码”按钮:
- 将显示一个新窗口,您可以在其中编辑源代码:
在 eZ Platform UI 中使用 CKEditor 插件
要查看 eZ Platform 中使用 CK Editor 插件的示例,请使用 1.0 分支。